diff --git a/components/dashboard/package.json b/components/dashboard/package.json
index 274a91d2cc6158..bfe2ea82e5e265 100644
--- a/components/dashboard/package.json
+++ b/components/dashboard/package.json
@@ -10,6 +10,7 @@
"@gitpod/gitpod-protocol": "0.1.5",
"@gitpod/public-api": "0.1.5",
"@gitpod/public-api-common": "0.1.5",
+ "@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
diff --git a/components/dashboard/src/Insights.tsx b/components/dashboard/src/Insights.tsx
new file mode 100644
index 00000000000000..f6ce940049864b
--- /dev/null
+++ b/components/dashboard/src/Insights.tsx
@@ -0,0 +1,203 @@
+/**
+ * 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.
+ */
+
+import { LoadingState } from "@podkit/loading/LoadingState";
+import { Heading2, Subheading } from "@podkit/typography/Headings";
+import classNames from "classnames";
+import { useCallback, useMemo, useState } from "react";
+import { Accordion } from "./components/accordion/Accordion";
+import Alert from "./components/Alert";
+import Header from "./components/Header";
+import { Item, ItemField, ItemsList } from "./components/ItemsList";
+import { useWorkspaceSessions } from "./data/insights/list-workspace-sessions-query";
+import { WorkspaceSessionGroup } from "./insights/WorkspaceSessionGroup";
+import { gitpodHostUrl } from "./service/service";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@podkit/select/Select";
+import dayjs from "dayjs";
+import { Timestamp } from "@bufbuild/protobuf";
+import { LoadingButton } from "@podkit/buttons/LoadingButton";
+import { TextMuted } from "@podkit/typography/TextMuted";
+import { DownloadInsightsToast } from "./insights/download/DownloadInsights";
+import { useCurrentOrg } from "./data/organizations/orgs-query";
+import { useToast } from "./components/toasts/Toasts";
+import { useTemporaryState } from "./hooks/use-temporary-value";
+import { DownloadIcon } from "lucide-react";
+import { Button } from "@podkit/buttons/Button";
+
+export const Insights = () => {
+ const [prebuildsFilter, setPrebuildsFilter] = useState<"week" | "month" | "year">("week");
+ const [upperBound, lowerBound] = useMemo(() => {
+ const from = dayjs().subtract(1, prebuildsFilter).startOf("day");
+
+ const fromTimestamp = Timestamp.fromDate(from.toDate());
+ const toTimestamp = Timestamp.fromDate(new Date());
+ return [fromTimestamp, toTimestamp];
+ }, [prebuildsFilter]);
+ const {
+ data,
+ error: errorMessage,
+ isLoading,
+ isFetchingNextPage,
+ hasNextPage,
+ fetchNextPage,
+ } = useWorkspaceSessions({
+ from: upperBound,
+ to: lowerBound,
+ });
+
+ const hasMoreThanOnePage = (data?.pages.length ?? 0) > 1;
+ const sessions = useMemo(() => data?.pages.flatMap((p) => p) ?? [], [data]);
+ const grouped = Object.groupBy(sessions, (ws) => ws.workspace?.id ?? "unknown");
+ const [page, setPage] = useState(0);
+
+ return (
+ <>
+
{error.message}
+ + {readableSize} · {formattedCount} {data.count !== 1 ? "entries" : "entry"} exported +
+
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -20863,7 +20863,7 @@ public interface WorkspaceSpecOrBuilder extends
int getTypeValue();
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -21020,7 +21020,7 @@ io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariabl
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -21029,7 +21029,7 @@ io.gitpod.publicapi.v1.Envvar.EnvironmentVariableOrBuilder getEnvironmentVariabl
int getAdmissionValue();
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -21423,7 +21423,7 @@ public interface TimeoutOrBuilder extends
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -21433,7 +21433,7 @@ public interface TimeoutOrBuilder extends
boolean hasInactivity();
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -21443,7 +21443,7 @@ public interface TimeoutOrBuilder extends
com.google.protobuf.Duration getInactivity();
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -21453,7 +21453,7 @@ public interface TimeoutOrBuilder extends
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -21463,7 +21463,7 @@ public interface TimeoutOrBuilder extends
boolean hasDisconnected();
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -21473,7 +21473,7 @@ public interface TimeoutOrBuilder extends
com.google.protobuf.Duration getDisconnected();
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -21554,7 +21554,7 @@ private Timeout() {
private com.google.protobuf.Duration inactivity_;
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -21567,7 +21567,7 @@ public boolean hasInactivity() {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -21580,7 +21580,7 @@ public com.google.protobuf.Duration getInactivity() {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -21595,7 +21595,7 @@ public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() {
private com.google.protobuf.Duration disconnected_;
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -21608,7 +21608,7 @@ public boolean hasDisconnected() {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -21621,7 +21621,7 @@ public com.google.protobuf.Duration getDisconnected() {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22070,7 +22070,7 @@ public Builder mergeFrom(
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
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22082,7 +22082,7 @@ public boolean hasInactivity() {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22098,7 +22098,7 @@ public com.google.protobuf.Duration getInactivity() {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22119,7 +22119,7 @@ public Builder setInactivity(com.google.protobuf.Duration value) {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22138,7 +22138,7 @@ public Builder setInactivity(
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22164,7 +22164,7 @@ public Builder mergeInactivity(com.google.protobuf.Duration value) {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22182,7 +22182,7 @@ public Builder clearInactivity() {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22195,7 +22195,7 @@ public com.google.protobuf.Duration.Builder getInactivityBuilder() {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22211,7 +22211,7 @@ public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() {
}
/**
*
- * inacitivity is the maximum time of inactivity before the workspace is
+ * inactivity is the maximum time of inactivity before the workspace is
* stopped or paused
*
*
@@ -22236,7 +22236,7 @@ public com.google.protobuf.DurationOrBuilder getInactivityOrBuilder() {
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
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22248,7 +22248,7 @@ public boolean hasDisconnected() {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22264,7 +22264,7 @@ public com.google.protobuf.Duration getDisconnected() {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22285,7 +22285,7 @@ public Builder setDisconnected(com.google.protobuf.Duration value) {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22304,7 +22304,7 @@ public Builder setDisconnected(
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22330,7 +22330,7 @@ public Builder mergeDisconnected(com.google.protobuf.Duration value) {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22348,7 +22348,7 @@ public Builder clearDisconnected() {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22361,7 +22361,7 @@ public com.google.protobuf.Duration.Builder getDisconnectedBuilder() {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -22377,7 +22377,7 @@ public com.google.protobuf.DurationOrBuilder getDisconnectedOrBuilder() {
}
/**
*
- * inacitivity is the maximum time of disconnection before the workspace is
+ * disconnected is the maximum time of disconnection before the workspace is
* stopped or paused set to zero to disable.
*
*
@@ -23386,7 +23386,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder
private int type_ = 0;
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -23397,7 +23397,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder
}
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -23615,7 +23615,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder
private int admission_ = 0;
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -23626,7 +23626,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -24858,7 +24858,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder
private int type_ = 0;
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -24869,7 +24869,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceInitializerOrBuilder
}
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -24884,7 +24884,7 @@ public Builder setTypeValue(int value) {
}
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -24897,7 +24897,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.WorkspaceType ge
}
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -24915,7 +24915,7 @@ public Builder setType(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.
}
/**
*
- * Type denots the kind of workspace we ought to start
+ * Type denotes the kind of workspace we ought to start
*
*
* .gitpod.v1.WorkspaceSpec.WorkspaceType type = 2 [json_name = "type"];
@@ -25887,7 +25887,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder
private int admission_ = 0;
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -25898,7 +25898,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSpec.TimeoutOrBuilder
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -25913,7 +25913,7 @@ public Builder setAdmissionValue(int value) {
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -25926,7 +25926,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission()
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -25944,7 +25944,7 @@ public Builder setAdmission(io.gitpod.publicapi.v1.WorkspaceOuterClass.Admission
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* .gitpod.v1.AdmissionLevel admission = 7 [json_name = "admission"];
@@ -26803,8 +26803,8 @@ public interface WorkspaceStatusOrBuilder extends
/**
*
* 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),
+ * unversioned, but their status has different versions. The value of this
+ * field has no semantic meaning (e.g. don't interpret it as as a timestamp),
* but it can be used to impose a partial order. If a.status_version <
* b.status_version then a was the status before b.
*
@@ -28821,8 +28821,8 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceStatus.PrebuildResult
/**
*
* 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),
+ * unversioned, but their status has different versions. The value of this
+ * field has no semantic meaning (e.g. don't interpret it as as a timestamp),
* but it can be used to impose a partial order. If a.status_version <
* b.status_version then a was the status before b.
*
@@ -29607,8 +29607,8 @@ public Builder mergeFrom(
/**
*
* 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),
+ * unversioned, but their status has different versions. The value of this
+ * field has no semantic meaning (e.g. don't interpret it as as a timestamp),
* but it can be used to impose a partial order. If a.status_version <
* b.status_version then a was the status before b.
*
@@ -29623,8 +29623,8 @@ public long getStatusVersion() {
/**
*
* 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),
+ * unversioned, but their status has different versions. The value of this
+ * field has no semantic meaning (e.g. don't interpret it as as a timestamp),
* but it can be used to impose a partial order. If a.status_version <
* b.status_version then a was the status before b.
*
@@ -29643,8 +29643,8 @@ public Builder setStatusVersion(long value) {
/**
*
* 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),
+ * unversioned, but their status has different versions. The value of this
+ * field has no semantic meaning (e.g. don't interpret it as as a timestamp),
* but it can be used to impose a partial order. If a.status_version <
* b.status_version then a was the status before b.
*
@@ -33820,7 +33820,7 @@ public enum Phase
*
* 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
+ * example the cluster needs to scale up to accommodate the workspace, the
* workspace will be in Pending state until that happened.
*
*
@@ -33938,7 +33938,7 @@ public enum Phase
*
* 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
+ * example the cluster needs to scale up to accommodate the workspace, the
* workspace will be in Pending state until that happened.
*
*
@@ -46767,7 +46767,7 @@ public interface UpdateWorkspaceSpecOrBuilder extends
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -46776,7 +46776,7 @@ public interface UpdateWorkspaceSpecOrBuilder extends
boolean hasAdmission();
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -46785,7 +46785,7 @@ public interface UpdateWorkspaceSpecOrBuilder extends
int getAdmissionValue();
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -46926,7 +46926,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateT
private int admission_ = 0;
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -46937,7 +46937,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateT
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -46948,7 +46948,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateT
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -47563,7 +47563,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateT
private int admission_ = 0;
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -47574,7 +47574,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateT
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -47585,7 +47585,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.UpdateWorkspaceRequest.UpdateT
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -47600,7 +47600,7 @@ public Builder setAdmissionValue(int value) {
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -47613,7 +47613,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.AdmissionLevel getAdmission()
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -47631,7 +47631,7 @@ public Builder setAdmission(io.gitpod.publicapi.v1.WorkspaceOuterClass.Admission
}
/**
*
- * admission controlls who can access the workspace and its ports.
+ * admission controls who can access the workspace and its ports.
*
*
* optional .gitpod.v1.AdmissionLevel admission = 2 [json_name = "admission"];
@@ -58645,6 +58645,36 @@ public interface WorkspaceSessionOrBuilder extends
* .gitpod.v1.WorkspaceSession.Metrics metrics = 8 [json_name = "metrics"];
*/
io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.MetricsOrBuilder getMetricsOrBuilder();
+
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ * @return Whether the owner field is set.
+ */
+ boolean hasOwner();
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ * @return The owner.
+ */
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner getOwner();
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.OwnerOrBuilder getOwnerOrBuilder();
+
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ * @return Whether the context field is set.
+ */
+ boolean hasContext();
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ * @return The context.
+ */
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext getContext();
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContextOrBuilder getContextOrBuilder();
}
/**
* Protobuf type {@code gitpod.v1.WorkspaceSession}
@@ -58684,37 +58714,77 @@ private WorkspaceSession() {
io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Builder.class);
}
- public interface MetricsOrBuilder extends
- // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSession.Metrics)
+ public interface OwnerOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:gitpod.v1.WorkspaceSession.Owner)
com.google.protobuf.MessageOrBuilder {
/**
*
- * workspace_image_size is the size of the workspace image in bytes
+ * id is the ID of the user who created the workspace
*
*
- * int64 workspace_image_size = 1 [json_name = "workspaceImageSize"];
- * @return The workspaceImageSize.
+ * string id = 1 [json_name = "id"];
+ * @return The id.
*/
- long getWorkspaceImageSize();
+ java.lang.String getId();
+ /**
+ * + * id is the ID of the user who created the workspace + *+ * + *
string id = 1 [json_name = "id"];
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
/**
*
- * total_image_size is the total size of the image in bytes (includes Gitpod-specific layers like IDE)
+ * name is the full name of the user who created the workspace
*
*
- * int64 total_image_size = 2 [json_name = "totalImageSize"];
- * @return The totalImageSize.
+ * string name = 2 [json_name = "name"];
+ * @return The name.
*/
- long getTotalImageSize();
+ java.lang.String getName();
+ /**
+ * + * name is the full name of the user who created the workspace + *+ * + *
string name = 2 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * avatar_url is the URL of the user's avatar + *+ * + *
string avatar_url = 3 [json_name = "avatarUrl"];
+ * @return The avatarUrl.
+ */
+ java.lang.String getAvatarUrl();
+ /**
+ * + * avatar_url is the URL of the user's avatar + *+ * + *
string avatar_url = 3 [json_name = "avatarUrl"];
+ * @return The bytes for avatarUrl.
+ */
+ com.google.protobuf.ByteString
+ getAvatarUrlBytes();
}
/**
- * Protobuf type {@code gitpod.v1.WorkspaceSession.Metrics}
+ * Protobuf type {@code gitpod.v1.WorkspaceSession.Owner}
*/
- public static final class Metrics extends
+ public static final class Owner extends
com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSession.Metrics)
- MetricsOrBuilder {
+ // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSession.Owner)
+ OwnerOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
@@ -58723,56 +58793,170 @@ public static final class Metrics extends
/* minor= */ 27,
/* patch= */ 2,
/* suffix= */ "",
- Metrics.class.getName());
+ Owner.class.getName());
}
- // Use Metrics.newBuilder() to construct.
- private Metrics(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ // Use Owner.newBuilder() to construct.
+ private Owner(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private Metrics() {
+ private Owner() {
+ id_ = "";
+ name_ = "";
+ avatarUrl_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_Metrics_descriptor;
+ return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_Owner_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_Metrics_fieldAccessorTable
+ return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_Owner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics.Builder.class);
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.Builder.class);
}
- public static final int WORKSPACE_IMAGE_SIZE_FIELD_NUMBER = 1;
- private long workspaceImageSize_ = 0L;
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
/**
*
- * workspace_image_size is the size of the workspace image in bytes
+ * id is the ID of the user who created the workspace
*
*
- * int64 workspace_image_size = 1 [json_name = "workspaceImageSize"];
- * @return The workspaceImageSize.
+ * string id = 1 [json_name = "id"];
+ * @return The id.
*/
@java.lang.Override
- public long getWorkspaceImageSize() {
- return workspaceImageSize_;
+ 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 user who created the workspace + *+ * + *
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 TOTAL_IMAGE_SIZE_FIELD_NUMBER = 2;
- private long totalImageSize_ = 0L;
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
*
- * total_image_size is the total size of the image in bytes (includes Gitpod-specific layers like IDE)
+ * name is the full name of the user who created the workspace
*
*
- * int64 total_image_size = 2 [json_name = "totalImageSize"];
- * @return The totalImageSize.
+ * string name = 2 [json_name = "name"];
+ * @return The name.
*/
@java.lang.Override
- public long getTotalImageSize() {
- return totalImageSize_;
+ 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 who created the workspace + *+ * + *
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 the URL of the user's 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 the URL of the user's 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;
+ }
}
private byte memoizedIsInitialized = -1;
@@ -58789,11 +58973,14 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (workspaceImageSize_ != 0L) {
- output.writeInt64(1, workspaceImageSize_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
}
- if (totalImageSize_ != 0L) {
- output.writeInt64(2, totalImageSize_);
+ 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_);
}
getUnknownFields().writeTo(output);
}
@@ -58804,13 +58991,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (workspaceImageSize_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, workspaceImageSize_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
}
- if (totalImageSize_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, totalImageSize_);
+ 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_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -58822,15 +59010,17 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics)) {
+ if (!(obj instanceof io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner)) {
return super.equals(obj);
}
- io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics) obj;
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner) obj;
- if (getWorkspaceImageSize()
- != other.getWorkspaceImageSize()) return false;
- if (getTotalImageSize()
- != other.getTotalImageSize()) return false;
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getAvatarUrl()
+ .equals(other.getAvatarUrl())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -58842,55 +59032,55 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + WORKSPACE_IMAGE_SIZE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getWorkspaceImageSize());
- hash = (37 * hash) + TOTAL_IMAGE_SIZE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTotalImageSize());
+ 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();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseFrom(
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.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseFrom(
com.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.Metrics parseFrom(byte[] data)
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner 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.Metrics parseFrom(java.io.InputStream input)
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner 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.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -58898,26 +59088,26 @@ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metric
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseDelimitedFrom(java.io.InputStream input)
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner 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.Metrics parseDelimitedFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseDelimitedFrom(
java.io.InputStream 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.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner 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.Metrics parseFrom(
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -58930,7 +59120,7 @@ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metric
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics prototype) {
+ public static Builder newBuilder(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -58946,26 +59136,26 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code gitpod.v1.WorkspaceSession.Metrics}
+ * Protobuf type {@code gitpod.v1.WorkspaceSession.Owner}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder+ * id is the ID of the user who created the workspace + *+ * + *
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 user who created the workspace + *+ * + *
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 user who created the workspace + *+ * + *
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 user who created the workspace + *+ * + *
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 user who created the workspace + *+ * + *
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 full name of the user who created the workspace + *+ * + *
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 full name of the user who created the workspace + *+ * + *
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 full name of the user who created the workspace + *+ * + *
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 full name of the user who created the workspace + *+ * + *
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 full name of the user who created the workspace + *+ * + *
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 the URL of the user's 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 the URL of the user's 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 the URL of the user's 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 the URL of the user's 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 the URL of the user's 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSession.Owner)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSession.Owner)
+ private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner();
+ }
+
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @return The path.
+ */
+ java.lang.String getPath();
+ /**
+ * + * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @return The bytes for path.
+ */
+ com.google.protobuf.ByteString
+ getPathBytes();
+
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [json_name = "ref"];
+ * @return The ref.
+ */
+ java.lang.String getRef();
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [json_name = "ref"];
+ * @return The bytes for ref.
+ */
+ com.google.protobuf.ByteString
+ getRefBytes();
+
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @return The enum numeric value on the wire for refType.
+ */
+ int getRefTypeValue();
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @return The refType.
+ */
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType getRefType();
+
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @return The revision.
+ */
+ java.lang.String getRevision();
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @return The bytes for revision.
+ */
+ com.google.protobuf.ByteString
+ getRevisionBytes();
+
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ * @return Whether the repository field is set.
+ */
+ boolean hasRepository();
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ * @return The repository.
+ */
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository getRepository();
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder();
+ }
+ /**
+ * + * WorkspaceContext is the git context from which the workspace is created + *+ * + * Protobuf type {@code gitpod.v1.WorkspaceSession.WorkspaceContext} + */ + public static final class WorkspaceContext extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSession.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= */ 2, + /* suffix= */ "", + WorkspaceContext.class.getName()); + } + // Use WorkspaceContext.newBuilder() to construct. + private WorkspaceContext(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + private WorkspaceContext() { + path_ = ""; + ref_ = ""; + refType_ = 0; + revision_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Builder.class); + } + + /** + * Protobuf enum {@code gitpod.v1.WorkspaceSession.WorkspaceContext.RefType} + */ + public enum RefType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
REF_TYPE_UNSPECIFIED = 0;
+ */
+ REF_TYPE_UNSPECIFIED(0),
+ /**
+ * REF_TYPE_BRANCH = 1;
+ */
+ REF_TYPE_BRANCH(1),
+ /**
+ * REF_TYPE_TAG = 2;
+ */
+ REF_TYPE_TAG(2),
+ /**
+ * REF_TYPE_REVISION = 3;
+ */
+ REF_TYPE_REVISION(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ RefType.class.getName());
+ }
+ /**
+ * REF_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int REF_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ * REF_TYPE_BRANCH = 1;
+ */
+ public static final int REF_TYPE_BRANCH_VALUE = 1;
+ /**
+ * REF_TYPE_TAG = 2;
+ */
+ public static final int REF_TYPE_TAG_VALUE = 2;
+ /**
+ * REF_TYPE_REVISION = 3;
+ */
+ public static final int REF_TYPE_REVISION_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 RefType 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 RefType forNumber(int value) {
+ switch (value) {
+ case 0: return REF_TYPE_UNSPECIFIED;
+ case 1: return REF_TYPE_BRANCH;
+ case 2: return REF_TYPE_TAG;
+ case 3: return REF_TYPE_REVISION;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * clone_url is the repository url as you would pass it to "git clone". + *+ * + *
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". + *+ * + *
string clone_url = 1 [json_name = "cloneUrl"];
+ * @return The bytes for cloneUrl.
+ */
+ com.google.protobuf.ByteString
+ getCloneUrlBytes();
+
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [json_name = "host"];
+ * @return The host.
+ */
+ java.lang.String getHost();
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [json_name = "host"];
+ * @return The bytes for host.
+ */
+ com.google.protobuf.ByteString
+ getHostBytes();
+
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [json_name = "owner"];
+ * @return The owner.
+ */
+ java.lang.String getOwner();
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [json_name = "owner"];
+ * @return The bytes for owner.
+ */
+ com.google.protobuf.ByteString
+ getOwnerBytes();
+
+ /**
+ * + * name is the name of the repository + *+ * + *
string name = 4 [json_name = "name"];
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * + * name is the name of the repository + *+ * + *
string name = 4 [json_name = "name"];
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.WorkspaceSession.WorkspaceContext.Repository}
+ */
+ public static final class Repository extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSession.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= */ 2,
+ /* suffix= */ "",
+ Repository.class.getName());
+ }
+ // Use Repository.newBuilder() to construct.
+ private Repository(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Repository() {
+ cloneUrl_ = "";
+ host_ = "";
+ owner_ = "";
+ name_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_Repository_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_Repository_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.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". + *+ * + *
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". + *+ * + *
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 HOST_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object host_ = "";
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [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;
+ }
+ }
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [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 = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object owner_ = "";
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [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;
+ }
+ }
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [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 NAME_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * + * name is the name of the repository + *+ * + *
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 repository + *+ * + *
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;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (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(host_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, host_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, owner_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, 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(cloneUrl_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, cloneUrl_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, host_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, owner_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, 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.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository) obj;
+
+ if (!getCloneUrl()
+ .equals(other.getCloneUrl())) return false;
+ if (!getHost()
+ .equals(other.getHost())) return false;
+ if (!getOwner()
+ .equals(other.getOwner())) return false;
+ 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) + CLONE_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getCloneUrl().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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository 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.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository 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.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.v1.WorkspaceOuterClass.WorkspaceSession.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.v1.WorkspaceOuterClass.WorkspaceSession.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.v1.WorkspaceOuterClass.WorkspaceSession.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;
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.WorkspaceSession.WorkspaceContext.Repository}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder+ * clone_url is the repository url as you would pass it to "git clone". + *+ * + *
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". + *+ * + *
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". + *+ * + *
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". + *+ * + *
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". + *+ * + *
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 host_ = "";
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [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;
+ }
+ }
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [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;
+ }
+ }
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [json_name = "host"];
+ * @return This builder for chaining.
+ */
+ public Builder clearHost() {
+ host_ = getDefaultInstance().getHost();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * host is the host of the SCM + *+ * + *
string host = 2 [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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object owner_ = "";
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [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;
+ }
+ }
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [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;
+ }
+ }
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [json_name = "owner"];
+ * @return This builder for chaining.
+ */
+ public Builder clearOwner() {
+ owner_ = getDefaultInstance().getOwner();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * owner is the owner of the repository + *+ * + *
string owner = 3 [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_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * + * name is the name of the repository + *+ * + *
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 repository + *+ * + *
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 repository + *+ * + *
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_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * name is the name of the repository + *+ * + *
string name = 4 [json_name = "name"];
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * name is the name of the repository + *+ * + *
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_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSession.WorkspaceContext.Repository)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSession.WorkspaceContext.Repository)
+ private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository();
+ }
+
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @return The path.
+ */
+ @java.lang.Override
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ path_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @return The bytes for path.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REF_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object ref_ = "";
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [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;
+ }
+ }
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [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 REF_TYPE_FIELD_NUMBER = 3;
+ private int refType_ = 0;
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @return The enum numeric value on the wire for refType.
+ */
+ @java.lang.Override public int getRefTypeValue() {
+ return refType_;
+ }
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @return The refType.
+ */
+ @java.lang.Override public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType getRefType() {
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType.forNumber(refType_);
+ return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType.UNRECOGNIZED : result;
+ }
+
+ public static final int REVISION_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object revision_ = "";
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @return The revision.
+ */
+ @java.lang.Override
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revision_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @return The bytes for revision.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REPOSITORY_FIELD_NUMBER = 5;
+ private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository repository_;
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ * @return Whether the repository field is set.
+ */
+ @java.lang.Override
+ public boolean hasRepository() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ * @return The repository.
+ */
+ @java.lang.Override
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository getRepository() {
+ return repository_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.getDefaultInstance() : repository_;
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ @java.lang.Override
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() {
+ return repository_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.getDefaultInstance() : repository_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (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(path_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, path_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, ref_);
+ }
+ if (refType_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType.REF_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(3, refType_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, revision_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(5, getRepository());
+ }
+ 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(path_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, path_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ref_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, ref_);
+ }
+ if (refType_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType.REF_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(3, refType_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revision_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, revision_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getRepository());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ 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.WorkspaceContext)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext) obj;
+
+ if (!getPath()
+ .equals(other.getPath())) return false;
+ if (!getRef()
+ .equals(other.getRef())) return false;
+ if (refType_ != other.refType_) return false;
+ if (!getRevision()
+ .equals(other.getRevision())) return false;
+ if (hasRepository() != other.hasRepository()) return false;
+ if (hasRepository()) {
+ if (!getRepository()
+ .equals(other.getRepository())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getPath().hashCode();
+ hash = (37 * hash) + REF_FIELD_NUMBER;
+ hash = (53 * hash) + getRef().hashCode();
+ hash = (37 * hash) + REF_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + refType_;
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getRevision().hashCode();
+ if (hasRepository()) {
+ hash = (37 * hash) + REPOSITORY_FIELD_NUMBER;
+ hash = (53 * hash) + getRepository().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext 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.WorkspaceContext 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.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext 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.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.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext 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.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.v1.WorkspaceOuterClass.WorkspaceSession.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 is the git context from which the workspace is created + *+ * + * Protobuf type {@code gitpod.v1.WorkspaceSession.WorkspaceContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
+ * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @return The path.
+ */
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ path_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @return The bytes for path.
+ */
+ public com.google.protobuf.ByteString
+ getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @param value The path to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPath(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ path_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @return This builder for chaining.
+ */
+ public Builder clearPath() {
+ path_ = getDefaultInstance().getPath();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * path is the path of the context (the path following the base repository URL) + *+ * + *
string path = 1 [json_name = "path"];
+ * @param value The bytes for path to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPathBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ path_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object ref_ = "";
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [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;
+ }
+ }
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [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;
+ }
+ }
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [json_name = "ref"];
+ * @return This builder for chaining.
+ */
+ public Builder clearRef() {
+ ref_ = getDefaultInstance().getRef();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * ref is the branch or tag name of the repository + *+ * + *
string ref = 2 [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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int refType_ = 0;
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @return The enum numeric value on the wire for refType.
+ */
+ @java.lang.Override public int getRefTypeValue() {
+ return refType_;
+ }
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @param value The enum numeric value on the wire for refType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRefTypeValue(int value) {
+ refType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @return The refType.
+ */
+ @java.lang.Override
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType getRefType() {
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType result = io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType.forNumber(refType_);
+ return result == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType.UNRECOGNIZED : result;
+ }
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @param value The refType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRefType(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RefType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ refType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * ref_type is the type of the ref + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.RefType ref_type = 3 [json_name = "refType"];
+ * @return This builder for chaining.
+ */
+ public Builder clearRefType() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ refType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object revision_ = "";
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @return The revision.
+ */
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revision_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @return The bytes for revision.
+ */
+ public com.google.protobuf.ByteString
+ getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @param value The revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevision(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ revision_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @return This builder for chaining.
+ */
+ public Builder clearRevision() {
+ revision_ = getDefaultInstance().getRevision();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * revision is the commit hash of the context + *+ * + *
string revision = 4 [json_name = "revision"];
+ * @param value The bytes for revision to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRevisionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ revision_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository repository_;
+ private com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RepositoryOrBuilder> repositoryBuilder_;
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ * @return Whether the repository field is set.
+ */
+ public boolean hasRepository() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ * @return The repository.
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository getRepository() {
+ if (repositoryBuilder_ == null) {
+ return repository_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.getDefaultInstance() : repository_;
+ } else {
+ return repositoryBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ public Builder setRepository(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository value) {
+ if (repositoryBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ repository_ = value;
+ } else {
+ repositoryBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ public Builder setRepository(
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.Builder builderForValue) {
+ if (repositoryBuilder_ == null) {
+ repository_ = builderForValue.build();
+ } else {
+ repositoryBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ public Builder mergeRepository(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository value) {
+ if (repositoryBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ repository_ != null &&
+ repository_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.getDefaultInstance()) {
+ getRepositoryBuilder().mergeFrom(value);
+ } else {
+ repository_ = value;
+ }
+ } else {
+ repositoryBuilder_.mergeFrom(value);
+ }
+ if (repository_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ public Builder clearRepository() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ repository_ = null;
+ if (repositoryBuilder_ != null) {
+ repositoryBuilder_.dispose();
+ repositoryBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.Builder getRepositoryBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getRepositoryFieldBuilder().getBuilder();
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() {
+ if (repositoryBuilder_ != null) {
+ return repositoryBuilder_.getMessageOrBuilder();
+ } else {
+ return repository_ == null ?
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.getDefaultInstance() : repository_;
+ }
+ }
+ /**
+ * + * repository is the repository of the context + *+ * + *
.gitpod.v1.WorkspaceSession.WorkspaceContext.Repository repository = 5 [json_name = "repository"];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RepositoryOrBuilder>
+ getRepositoryFieldBuilder() {
+ if (repositoryBuilder_ == null) {
+ repositoryBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.RepositoryOrBuilder>(
+ getRepository(),
+ getParentForChildren(),
+ isClean());
+ repository_ = null;
+ }
+ return repositoryBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSession.WorkspaceContext)
+ }
+
+ // @@protoc_insertion_point(class_scope:gitpod.v1.WorkspaceSession.WorkspaceContext)
+ private static final io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext();
+ }
+
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * workspace_image_size is the size of the workspace image in bytes + *+ * + *
int64 workspace_image_size = 1 [json_name = "workspaceImageSize"];
+ * @return The workspaceImageSize.
+ */
+ long getWorkspaceImageSize();
+
+ /**
+ * + * total_image_size is the total size of the image in bytes (includes Gitpod-specific layers like IDE) + *+ * + *
int64 total_image_size = 2 [json_name = "totalImageSize"];
+ * @return The totalImageSize.
+ */
+ long getTotalImageSize();
+ }
+ /**
+ * Protobuf type {@code gitpod.v1.WorkspaceSession.Metrics}
+ */
+ public static final class Metrics extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:gitpod.v1.WorkspaceSession.Metrics)
+ MetricsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 27,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ Metrics.class.getName());
+ }
+ // Use Metrics.newBuilder() to construct.
+ private Metrics(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Metrics() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_Metrics_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.gitpod.publicapi.v1.WorkspaceOuterClass.internal_static_gitpod_v1_WorkspaceSession_Metrics_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics.class, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics.Builder.class);
+ }
+
+ public static final int WORKSPACE_IMAGE_SIZE_FIELD_NUMBER = 1;
+ private long workspaceImageSize_ = 0L;
+ /**
+ * + * workspace_image_size is the size of the workspace image in bytes + *+ * + *
int64 workspace_image_size = 1 [json_name = "workspaceImageSize"];
+ * @return The workspaceImageSize.
+ */
+ @java.lang.Override
+ public long getWorkspaceImageSize() {
+ return workspaceImageSize_;
+ }
+
+ public static final int TOTAL_IMAGE_SIZE_FIELD_NUMBER = 2;
+ private long totalImageSize_ = 0L;
+ /**
+ * + * total_image_size is the total size of the image in bytes (includes Gitpod-specific layers like IDE) + *+ * + *
int64 total_image_size = 2 [json_name = "totalImageSize"];
+ * @return The totalImageSize.
+ */
+ @java.lang.Override
+ public long getTotalImageSize() {
+ return totalImageSize_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (workspaceImageSize_ != 0L) {
+ output.writeInt64(1, workspaceImageSize_);
+ }
+ if (totalImageSize_ != 0L) {
+ output.writeInt64(2, totalImageSize_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (workspaceImageSize_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, workspaceImageSize_);
+ }
+ if (totalImageSize_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, totalImageSize_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ 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.Metrics)) {
+ return super.equals(obj);
+ }
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics other = (io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics) obj;
+
+ if (getWorkspaceImageSize()
+ != other.getWorkspaceImageSize()) return false;
+ if (getTotalImageSize()
+ != other.getTotalImageSize()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) 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_IMAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getWorkspaceImageSize());
+ hash = (37 * hash) + TOTAL_IMAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalImageSize());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseFrom(
+ 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.Metrics parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics parseFrom(
+ com.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.Metrics parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Metrics 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.Metrics 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.Metrics parseFrom(
+ java.io.InputStream 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.Metrics 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.Metrics parseDelimitedFrom(
+ java.io.InputStream 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.Metrics 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.Metrics parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, 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.Metrics prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(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.Metrics}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder.gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ * @return Whether the owner field is set.
+ */
+ @java.lang.Override
+ public boolean hasOwner() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ * @return The owner.
+ */
+ @java.lang.Override
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner getOwner() {
+ return owner_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.getDefaultInstance() : owner_;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ @java.lang.Override
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.OwnerOrBuilder getOwnerOrBuilder() {
+ return owner_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.getDefaultInstance() : owner_;
+ }
+
+ public static final int CONTEXT_FIELD_NUMBER = 10;
+ private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext context_;
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ * @return Whether the context field is set.
+ */
+ @java.lang.Override
+ public boolean hasContext() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ * @return The context.
+ */
+ @java.lang.Override
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext getContext() {
+ return context_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.getDefaultInstance() : context_;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ @java.lang.Override
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContextOrBuilder getContextOrBuilder() {
+ return context_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.getDefaultInstance() : context_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -59492,6 +63052,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(8, getMetrics());
}
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeMessage(9, getOwner());
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeMessage(10, getContext());
+ }
getUnknownFields().writeTo(output);
}
@@ -59532,6 +63098,14 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getMetrics());
}
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, getOwner());
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getContext());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -59584,6 +63158,16 @@ public boolean equals(final java.lang.Object obj) {
if (!getMetrics()
.equals(other.getMetrics())) return false;
}
+ if (hasOwner() != other.hasOwner()) return false;
+ if (hasOwner()) {
+ if (!getOwner()
+ .equals(other.getOwner())) return false;
+ }
+ if (hasContext() != other.hasContext()) return false;
+ if (hasContext()) {
+ if (!getContext()
+ .equals(other.getContext())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -59625,6 +63209,14 @@ public int hashCode() {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
+ if (hasOwner()) {
+ hash = (37 * hash) + OWNER_FIELD_NUMBER;
+ hash = (53 * hash) + getOwner().hashCode();
+ }
+ if (hasContext()) {
+ hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getContext().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -59762,6 +63354,8 @@ private void maybeForceBuilderInitialization() {
getStoppingTimeFieldBuilder();
getStoppedTimeFieldBuilder();
getMetricsFieldBuilder();
+ getOwnerFieldBuilder();
+ getContextFieldBuilder();
}
}
@java.lang.Override
@@ -59804,6 +63398,16 @@ public Builder clear() {
metricsBuilder_.dispose();
metricsBuilder_ = null;
}
+ owner_ = null;
+ if (ownerBuilder_ != null) {
+ ownerBuilder_.dispose();
+ ownerBuilder_ = null;
+ }
+ context_ = null;
+ if (contextBuilder_ != null) {
+ contextBuilder_.dispose();
+ contextBuilder_ = null;
+ }
return this;
}
@@ -59883,6 +63487,18 @@ private void buildPartial0(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceS
: metricsBuilder_.build();
to_bitField0_ |= 0x00000040;
}
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.owner_ = ownerBuilder_ == null
+ ? owner_
+ : ownerBuilder_.build();
+ to_bitField0_ |= 0x00000080;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.context_ = contextBuilder_ == null
+ ? context_
+ : contextBuilder_.build();
+ to_bitField0_ |= 0x00000100;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -59924,6 +63540,12 @@ public Builder mergeFrom(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSes
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
+ if (other.hasOwner()) {
+ mergeOwner(other.getOwner());
+ }
+ if (other.hasContext()) {
+ mergeContext(other.getContext());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -60004,6 +63626,20 @@ public Builder mergeFrom(
bitField0_ |= 0x00000080;
break;
} // case 66
+ case 74: {
+ input.readMessage(
+ getOwnerFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 82: {
+ input.readMessage(
+ getContextFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -60940,6 +64576,248 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.MetricsOrBuil
return metricsBuilder_;
}
+ private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner owner_;
+ private com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.OwnerOrBuilder> ownerBuilder_;
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ * @return Whether the owner field is set.
+ */
+ public boolean hasOwner() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ * @return The owner.
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner getOwner() {
+ if (ownerBuilder_ == null) {
+ return owner_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.getDefaultInstance() : owner_;
+ } else {
+ return ownerBuilder_.getMessage();
+ }
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ public Builder setOwner(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner value) {
+ if (ownerBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ owner_ = value;
+ } else {
+ ownerBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ public Builder setOwner(
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.Builder builderForValue) {
+ if (ownerBuilder_ == null) {
+ owner_ = builderForValue.build();
+ } else {
+ ownerBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ public Builder mergeOwner(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner value) {
+ if (ownerBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0) &&
+ owner_ != null &&
+ owner_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.getDefaultInstance()) {
+ getOwnerBuilder().mergeFrom(value);
+ } else {
+ owner_ = value;
+ }
+ } else {
+ ownerBuilder_.mergeFrom(value);
+ }
+ if (owner_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ public Builder clearOwner() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ owner_ = null;
+ if (ownerBuilder_ != null) {
+ ownerBuilder_.dispose();
+ ownerBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.Builder getOwnerBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getOwnerFieldBuilder().getBuilder();
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.OwnerOrBuilder getOwnerOrBuilder() {
+ if (ownerBuilder_ != null) {
+ return ownerBuilder_.getMessageOrBuilder();
+ } else {
+ return owner_ == null ?
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.getDefaultInstance() : owner_;
+ }
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.Owner owner = 9 [json_name = "owner"];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.OwnerOrBuilder>
+ getOwnerFieldBuilder() {
+ if (ownerBuilder_ == null) {
+ ownerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.Owner.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.OwnerOrBuilder>(
+ getOwner(),
+ getParentForChildren(),
+ isClean());
+ owner_ = null;
+ }
+ return ownerBuilder_;
+ }
+
+ private io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext context_;
+ private com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContextOrBuilder> contextBuilder_;
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ * @return Whether the context field is set.
+ */
+ public boolean hasContext() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ * @return The context.
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext getContext() {
+ if (contextBuilder_ == null) {
+ return context_ == null ? io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.getDefaultInstance() : context_;
+ } else {
+ return contextBuilder_.getMessage();
+ }
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ public Builder setContext(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext value) {
+ if (contextBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ context_ = value;
+ } else {
+ contextBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ public Builder setContext(
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Builder builderForValue) {
+ if (contextBuilder_ == null) {
+ context_ = builderForValue.build();
+ } else {
+ contextBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ public Builder mergeContext(io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext value) {
+ if (contextBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0) &&
+ context_ != null &&
+ context_ != io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.getDefaultInstance()) {
+ getContextBuilder().mergeFrom(value);
+ } else {
+ context_ = value;
+ }
+ } else {
+ contextBuilder_.mergeFrom(value);
+ }
+ if (context_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ public Builder clearContext() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ context_ = null;
+ if (contextBuilder_ != null) {
+ contextBuilder_.dispose();
+ contextBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Builder getContextBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getContextFieldBuilder().getBuilder();
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContextOrBuilder getContextOrBuilder() {
+ if (contextBuilder_ != null) {
+ return contextBuilder_.getMessageOrBuilder();
+ } else {
+ return context_ == null ?
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.getDefaultInstance() : context_;
+ }
+ }
+ /**
+ * .gitpod.v1.WorkspaceSession.WorkspaceContext context = 10 [json_name = "context"];
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContextOrBuilder>
+ getContextFieldBuilder() {
+ if (contextBuilder_ == null) {
+ contextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContext.Builder, io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession.WorkspaceContextOrBuilder>(
+ getContext(),
+ getParentForChildren(),
+ isClean());
+ context_ = null;
+ }
+ return contextBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:gitpod.v1.WorkspaceSession)
}
@@ -61316,6 +65194,21 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getDefaultIns
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_gitpod_v1_WorkspaceSession_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_gitpod_v1_WorkspaceSession_Owner_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_gitpod_v1_WorkspaceSession_Owner_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_Repository_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_Repository_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_gitpod_v1_WorkspaceSession_Metrics_descriptor;
private static final
@@ -61596,7 +65489,7 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getDefaultIns
"onse\"\207\001\n\021WorkspaceSnapshot\022\016\n\002id\030\001 \001(\tR\002" +
"id\022!\n\014workspace_id\030\002 \001(\tR\013workspaceId\022?\n" +
"\rcreation_time\030\003 \001(\0132\032.google.protobuf.T" +
- "imestampR\014creationTime\"\275\004\n\020WorkspaceSess" +
+ "imestampR\014creationTime\"\327\t\n\020WorkspaceSess" +
"ion\022\016\n\002id\030\001 \001(\tR\002id\0222\n\tworkspace\030\002 \001(\0132\024" +
".gitpod.v1.WorkspaceR\tworkspace\022?\n\rcreat" +
"ion_time\030\003 \001(\0132\032.google.protobuf.Timesta" +
@@ -61608,61 +65501,78 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getDefaultIns
"ppingTime\022=\n\014stopped_time\030\007 \001(\0132\032.google" +
".protobuf.TimestampR\013stoppedTime\022=\n\007metr" +
"ics\030\010 \001(\0132#.gitpod.v1.WorkspaceSession.M" +
- "etricsR\007metrics\032e\n\007Metrics\0220\n\024workspace_" +
- "image_size\030\001 \001(\003R\022workspaceImageSize\022(\n\020" +
- "total_image_size\030\002 \001(\003R\016totalImageSize*o" +
- "\n\016AdmissionLevel\022\037\n\033ADMISSION_LEVEL_UNSP" +
- "ECIFIED\020\000\022\036\n\032ADMISSION_LEVEL_OWNER_ONLY\020" +
- "\001\022\034\n\030ADMISSION_LEVEL_EVERYONE\020\0022\323\016\n\020Work" +
- "spaceService\022Q\n\014GetWorkspace\022\036.gitpod.v1" +
- ".GetWorkspaceRequest\032\037.gitpod.v1.GetWork" +
- "spaceResponse\"\000\022k\n\024WatchWorkspaceStatus\022" +
- "&.gitpod.v1.WatchWorkspaceStatusRequest\032" +
- "\'.gitpod.v1.WatchWorkspaceStatusResponse" +
- "\"\0000\001\022W\n\016ListWorkspaces\022 .gitpod.v1.ListW" +
- "orkspacesRequest\032!.gitpod.v1.ListWorkspa" +
- "cesResponse\"\000\022l\n\025ListWorkspaceSessions\022\'" +
- ".gitpod.v1.ListWorkspaceSessionsRequest\032" +
- "(.gitpod.v1.ListWorkspaceSessionsRespons" +
- "e\"\000\022r\n\027CreateAndStartWorkspace\022).gitpod." +
- "v1.CreateAndStartWorkspaceRequest\032*.gitp" +
- "od.v1.CreateAndStartWorkspaceResponse\"\000\022" +
- "W\n\016StartWorkspace\022 .gitpod.v1.StartWorks" +
- "paceRequest\032!.gitpod.v1.StartWorkspaceRe" +
- "sponse\"\000\022Z\n\017UpdateWorkspace\022!.gitpod.v1." +
- "UpdateWorkspaceRequest\032\".gitpod.v1.Updat" +
- "eWorkspaceResponse\"\000\022T\n\rStopWorkspace\022\037." +
- "gitpod.v1.StopWorkspaceRequest\032 .gitpod." +
- "v1.StopWorkspaceResponse\"\000\022Z\n\017DeleteWork" +
- "space\022!.gitpod.v1.DeleteWorkspaceRequest" +
- "\032\".gitpod.v1.DeleteWorkspaceResponse\"\000\022i" +
- "\n\024ListWorkspaceClasses\022&.gitpod.v1.ListW" +
- "orkspaceClassesRequest\032\'.gitpod.v1.ListW" +
- "orkspaceClassesResponse\"\000\022Z\n\017ParseContex" +
- "tURL\022!.gitpod.v1.ParseContextURLRequest\032" +
- "\".gitpod.v1.ParseContextURLResponse\"\000\022u\n" +
- "\030GetWorkspaceDefaultImage\022*.gitpod.v1.Ge" +
- "tWorkspaceDefaultImageRequest\032+.gitpod.v" +
- "1.GetWorkspaceDefaultImageResponse\"\000\022T\n\r" +
- "SendHeartBeat\022\037.gitpod.v1.SendHeartBeatR" +
- "equest\032 .gitpod.v1.SendHeartBeatResponse" +
- "\"\000\022o\n\026GetWorkspaceOwnerToken\022(.gitpod.v1" +
- ".GetWorkspaceOwnerTokenRequest\032).gitpod." +
- "v1.GetWorkspaceOwnerTokenResponse\"\000\022\204\001\n\035" +
- "GetWorkspaceEditorCredentials\022/.gitpod.v" +
- "1.GetWorkspaceEditorCredentialsRequest\0320" +
- ".gitpod.v1.GetWorkspaceEditorCredentials" +
- "Response\"\000\022r\n\027CreateWorkspaceSnapshot\022)." +
- "gitpod.v1.CreateWorkspaceSnapshotRequest" +
- "\032*.gitpod.v1.CreateWorkspaceSnapshotResp" +
- "onse\"\000\022u\n\030WaitForWorkspaceSnapshot\022*.git" +
- "pod.v1.WaitForWorkspaceSnapshotRequest\032+" +
- ".gitpod.v1.WaitForWorkspaceSnapshotRespo" +
- "nse\"\000\022f\n\023UpdateWorkspacePort\022%.gitpod.v1" +
- ".UpdateWorkspacePortRequest\032&.gitpod.v1." +
- "UpdateWorkspacePortResponse\"\000BQ\n\026io.gitp" +
- "od.publicapi.v1Z7github.com/gitpod-io/gi" +
- "tpod/components/public-api/go/v1b\006proto3"
+ "etricsR\007metrics\0227\n\005owner\030\t \001(\0132!.gitpod." +
+ "v1.WorkspaceSession.OwnerR\005owner\022F\n\007cont" +
+ "ext\030\n \001(\0132,.gitpod.v1.WorkspaceSession.W" +
+ "orkspaceContextR\007context\032J\n\005Owner\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\tavatarUrl\032\312\003\n\020WorkspaceContex" +
+ "t\022\022\n\004path\030\001 \001(\tR\004path\022\020\n\003ref\030\002 \001(\tR\003ref\022" +
+ "O\n\010ref_type\030\003 \001(\01624.gitpod.v1.WorkspaceS" +
+ "ession.WorkspaceContext.RefTypeR\007refType" +
+ "\022\032\n\010revision\030\004 \001(\tR\010revision\022W\n\nreposito" +
+ "ry\030\005 \001(\01327.gitpod.v1.WorkspaceSession.Wo" +
+ "rkspaceContext.RepositoryR\nrepository\032g\n" +
+ "\nRepository\022\033\n\tclone_url\030\001 \001(\tR\010cloneUrl" +
+ "\022\022\n\004host\030\002 \001(\tR\004host\022\024\n\005owner\030\003 \001(\tR\005own" +
+ "er\022\022\n\004name\030\004 \001(\tR\004name\"a\n\007RefType\022\030\n\024REF" +
+ "_TYPE_UNSPECIFIED\020\000\022\023\n\017REF_TYPE_BRANCH\020\001" +
+ "\022\020\n\014REF_TYPE_TAG\020\002\022\025\n\021REF_TYPE_REVISION\020" +
+ "\003\032e\n\007Metrics\0220\n\024workspace_image_size\030\001 \001" +
+ "(\003R\022workspaceImageSize\022(\n\020total_image_si" +
+ "ze\030\002 \001(\003R\016totalImageSize*o\n\016AdmissionLev" +
+ "el\022\037\n\033ADMISSION_LEVEL_UNSPECIFIED\020\000\022\036\n\032A" +
+ "DMISSION_LEVEL_OWNER_ONLY\020\001\022\034\n\030ADMISSION" +
+ "_LEVEL_EVERYONE\020\0022\323\016\n\020WorkspaceService\022Q" +
+ "\n\014GetWorkspace\022\036.gitpod.v1.GetWorkspaceR" +
+ "equest\032\037.gitpod.v1.GetWorkspaceResponse\"" +
+ "\000\022k\n\024WatchWorkspaceStatus\022&.gitpod.v1.Wa" +
+ "tchWorkspaceStatusRequest\032\'.gitpod.v1.Wa" +
+ "tchWorkspaceStatusResponse\"\0000\001\022W\n\016ListWo" +
+ "rkspaces\022 .gitpod.v1.ListWorkspacesReque" +
+ "st\032!.gitpod.v1.ListWorkspacesResponse\"\000\022" +
+ "l\n\025ListWorkspaceSessions\022\'.gitpod.v1.Lis" +
+ "tWorkspaceSessionsRequest\032(.gitpod.v1.Li" +
+ "stWorkspaceSessionsResponse\"\000\022r\n\027CreateA" +
+ "ndStartWorkspace\022).gitpod.v1.CreateAndSt" +
+ "artWorkspaceRequest\032*.gitpod.v1.CreateAn" +
+ "dStartWorkspaceResponse\"\000\022W\n\016StartWorksp" +
+ "ace\022 .gitpod.v1.StartWorkspaceRequest\032!." +
+ "gitpod.v1.StartWorkspaceResponse\"\000\022Z\n\017Up" +
+ "dateWorkspace\022!.gitpod.v1.UpdateWorkspac" +
+ "eRequest\032\".gitpod.v1.UpdateWorkspaceResp" +
+ "onse\"\000\022T\n\rStopWorkspace\022\037.gitpod.v1.Stop" +
+ "WorkspaceRequest\032 .gitpod.v1.StopWorkspa" +
+ "ceResponse\"\000\022Z\n\017DeleteWorkspace\022!.gitpod" +
+ ".v1.DeleteWorkspaceRequest\032\".gitpod.v1.D" +
+ "eleteWorkspaceResponse\"\000\022i\n\024ListWorkspac" +
+ "eClasses\022&.gitpod.v1.ListWorkspaceClasse" +
+ "sRequest\032\'.gitpod.v1.ListWorkspaceClasse" +
+ "sResponse\"\000\022Z\n\017ParseContextURL\022!.gitpod." +
+ "v1.ParseContextURLRequest\032\".gitpod.v1.Pa" +
+ "rseContextURLResponse\"\000\022u\n\030GetWorkspaceD" +
+ "efaultImage\022*.gitpod.v1.GetWorkspaceDefa" +
+ "ultImageRequest\032+.gitpod.v1.GetWorkspace" +
+ "DefaultImageResponse\"\000\022T\n\rSendHeartBeat\022" +
+ "\037.gitpod.v1.SendHeartBeatRequest\032 .gitpo" +
+ "d.v1.SendHeartBeatResponse\"\000\022o\n\026GetWorks" +
+ "paceOwnerToken\022(.gitpod.v1.GetWorkspaceO" +
+ "wnerTokenRequest\032).gitpod.v1.GetWorkspac" +
+ "eOwnerTokenResponse\"\000\022\204\001\n\035GetWorkspaceEd" +
+ "itorCredentials\022/.gitpod.v1.GetWorkspace" +
+ "EditorCredentialsRequest\0320.gitpod.v1.Get" +
+ "WorkspaceEditorCredentialsResponse\"\000\022r\n\027" +
+ "CreateWorkspaceSnapshot\022).gitpod.v1.Crea" +
+ "teWorkspaceSnapshotRequest\032*.gitpod.v1.C" +
+ "reateWorkspaceSnapshotResponse\"\000\022u\n\030Wait" +
+ "ForWorkspaceSnapshot\022*.gitpod.v1.WaitFor" +
+ "WorkspaceSnapshotRequest\032+.gitpod.v1.Wai" +
+ "tForWorkspaceSnapshotResponse\"\000\022f\n\023Updat" +
+ "eWorkspacePort\022%.gitpod.v1.UpdateWorkspa" +
+ "cePortRequest\032&.gitpod.v1.UpdateWorkspac" +
+ "ePortResponse\"\000BQ\n\026io.gitpod.publicapi.v" +
+ "1Z7github.com/gitpod-io/gitpod/component" +
+ "s/public-api/go/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -62062,9 +65972,27 @@ public io.gitpod.publicapi.v1.WorkspaceOuterClass.WorkspaceSession getDefaultIns
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", "Metrics", });
- internal_static_gitpod_v1_WorkspaceSession_Metrics_descriptor =
+ new java.lang.String[] { "Id", "Workspace", "CreationTime", "DeployedTime", "StartedTime", "StoppingTime", "StoppedTime", "Metrics", "Owner", "Context", });
+ internal_static_gitpod_v1_WorkspaceSession_Owner_descriptor =
internal_static_gitpod_v1_WorkspaceSession_descriptor.getNestedTypes().get(0);
+ internal_static_gitpod_v1_WorkspaceSession_Owner_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_gitpod_v1_WorkspaceSession_Owner_descriptor,
+ new java.lang.String[] { "Id", "Name", "AvatarUrl", });
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_descriptor =
+ internal_static_gitpod_v1_WorkspaceSession_descriptor.getNestedTypes().get(1);
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_descriptor,
+ new java.lang.String[] { "Path", "Ref", "RefType", "Revision", "Repository", });
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_Repository_descriptor =
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_descriptor.getNestedTypes().get(0);
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_Repository_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_gitpod_v1_WorkspaceSession_WorkspaceContext_Repository_descriptor,
+ new java.lang.String[] { "CloneUrl", "Host", "Owner", "Name", });
+ internal_static_gitpod_v1_WorkspaceSession_Metrics_descriptor =
+ internal_static_gitpod_v1_WorkspaceSession_descriptor.getNestedTypes().get(2);
internal_static_gitpod_v1_WorkspaceSession_Metrics_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_gitpod_v1_WorkspaceSession_Metrics_descriptor,
diff --git a/components/public-api/typescript-common/fixtures/toWorkspaceSession_1.golden b/components/public-api/typescript-common/fixtures/toWorkspaceSession_1.golden
index a87fcdc95bea0b..0dd07916581932 100644
--- a/components/public-api/typescript-common/fixtures/toWorkspaceSession_1.golden
+++ b/components/public-api/typescript-common/fixtures/toWorkspaceSession_1.golden
@@ -1,6 +1,6 @@
{
"result": {
- "id": "",
+ "id": "226695b4-f10a-471a-a219-9b657645bf78",
"workspace": {
"id": "akosyakov-parceldemo-4crqn25qlwi",
"metadata": {
@@ -89,6 +89,23 @@
"metrics": {
"workspaceImageSize": "25600000",
"totalImageSize": "35600000"
+ },
+ "owner": {
+ "id": "123",
+ "name": "Kum Quat",
+ "avatarUrl": ""
+ },
+ "context": {
+ "path": "",
+ "ref": "master",
+ "refType": "REF_TYPE_BRANCH",
+ "revision": "60dbf818194082ef1a368bacd49cfd25a34c9256",
+ "repository": {
+ "cloneUrl": "https://github.com/akosyakov/parcel-demo.git",
+ "host": "github.com",
+ "owner": "akosyakov",
+ "name": "parcel-demo"
+ }
}
},
"err": ""
diff --git a/components/public-api/typescript-common/fixtures/toWorkspaceSession_2.golden b/components/public-api/typescript-common/fixtures/toWorkspaceSession_2.golden
index 1e379c588d737c..ed6c40f640a7de 100644
--- a/components/public-api/typescript-common/fixtures/toWorkspaceSession_2.golden
+++ b/components/public-api/typescript-common/fixtures/toWorkspaceSession_2.golden
@@ -1,6 +1,6 @@
{
"result": {
- "id": "",
+ "id": "8e8c7061-f312-4265-8d78-d824c0470dde",
"workspace": {
"id": "sveneffting-2048intermi-5vb9hvqev88",
"metadata": {
@@ -91,6 +91,23 @@
"metrics": {
"workspaceImageSize": "25600000",
"totalImageSize": "0"
+ },
+ "owner": {
+ "id": "123",
+ "name": "Kum Quat",
+ "avatarUrl": ""
+ },
+ "context": {
+ "path": "",
+ "ref": "master",
+ "refType": "REF_TYPE_BRANCH",
+ "revision": "aac9c200a79e37ebe216bb90c829d5ab2771f2ee",
+ "repository": {
+ "cloneUrl": "https://github.com/svenefftinge/2048-in-terminal.git",
+ "host": "github.com",
+ "owner": "svenefftinge",
+ "name": "2048-in-terminal"
+ }
}
},
"err": ""
diff --git a/components/public-api/typescript-common/fixtures/toWorkspaceSession_3.golden b/components/public-api/typescript-common/fixtures/toWorkspaceSession_3.golden
index fb76ed3629bb2a..d1e65f14c847e8 100644
--- a/components/public-api/typescript-common/fixtures/toWorkspaceSession_3.golden
+++ b/components/public-api/typescript-common/fixtures/toWorkspaceSession_3.golden
@@ -1,6 +1,6 @@
{
"result": {
- "id": "",
+ "id": "dfdd9f48-2176-47b5-9c38-c85d099c8e6d",
"workspace": {
"id": "sveneffting-2048intermi-5vb9hvqev88",
"metadata": {
@@ -91,6 +91,23 @@
"metrics": {
"workspaceImageSize": "0",
"totalImageSize": "0"
+ },
+ "owner": {
+ "id": "123",
+ "name": "Kum Quat",
+ "avatarUrl": ""
+ },
+ "context": {
+ "path": "",
+ "ref": "master",
+ "refType": "REF_TYPE_BRANCH",
+ "revision": "aac9c200a79e37ebe216bb90c829d5ab2771f2ee",
+ "repository": {
+ "cloneUrl": "https://github.com/svenefftinge/2048-in-terminal.git",
+ "host": "github.com",
+ "owner": "svenefftinge",
+ "name": "2048-in-terminal"
+ }
}
},
"err": ""
diff --git a/components/public-api/typescript-common/fixtures/toWorkspaceSession_4.golden b/components/public-api/typescript-common/fixtures/toWorkspaceSession_4.golden
index f9a8d050976f9e..916e99fea97ccf 100644
--- a/components/public-api/typescript-common/fixtures/toWorkspaceSession_4.golden
+++ b/components/public-api/typescript-common/fixtures/toWorkspaceSession_4.golden
@@ -1,6 +1,6 @@
{
"result": {
- "id": "",
+ "id": "36cd2611-fd7e-4462-832c-4122bd4ce6ef",
"workspace": {
"id": "sveneffting-2048intermi-5vb9hvqev88",
"metadata": {
@@ -91,6 +91,23 @@
"metrics": {
"workspaceImageSize": "0",
"totalImageSize": "0"
+ },
+ "owner": {
+ "id": "123",
+ "name": "Kum Quat",
+ "avatarUrl": ""
+ },
+ "context": {
+ "path": "",
+ "ref": "master",
+ "refType": "REF_TYPE_BRANCH",
+ "revision": "aac9c200a79e37ebe216bb90c829d5ab2771f2ee",
+ "repository": {
+ "cloneUrl": "https://github.com/svenefftinge/2048-in-terminal.git",
+ "host": "github.com",
+ "owner": "svenefftinge",
+ "name": "2048-in-terminal"
+ }
}
},
"err": ""
diff --git a/components/public-api/typescript-common/src/public-api-converter.spec.ts b/components/public-api/typescript-common/src/public-api-converter.spec.ts
index 6c885a81f275ac..93c2a03d9646a3 100644
--- a/components/public-api/typescript-common/src/public-api-converter.spec.ts
+++ b/components/public-api/typescript-common/src/public-api-converter.spec.ts
@@ -28,7 +28,7 @@ import { startFixtureTest } from "./fixtures.spec";
import { OrganizationRole } from "@gitpod/public-api/lib/gitpod/v1/organization_pb";
import { BranchMatchingStrategy } from "@gitpod/public-api/lib/gitpod/v1/configuration_pb";
import { AuthProviderType } from "@gitpod/public-api/lib/gitpod/v1/authprovider_pb";
-import { Workspace, WorkspacePhase_Phase } from "@gitpod/public-api/lib/gitpod/v1/workspace_pb";
+import { Workspace, WorkspacePhase_Phase, WorkspaceSession_Owner } from "@gitpod/public-api/lib/gitpod/v1/workspace_pb";
import { WorkspaceAndInstance } from "@gitpod/gitpod-protocol";
describe("PublicAPIConverter", () => {
@@ -86,7 +86,7 @@ describe("PublicAPIConverter", () => {
input.arg1,
input.arg2 ? Workspace.fromJson(input.arg2) : undefined,
);
- // Use toJsonString since JSON.stringify cann't decode BigInt
+ // Use toJsonString since JSON.stringify can't decode BigInt
return JSON.parse(result.toJsonString());
});
});
@@ -106,7 +106,10 @@ describe("PublicAPIConverter", () => {
it("toWorkspaceSession", async () => {
await startFixtureTest("../fixtures/toWorkspaceSession_*.json", async (input) =>
- converter.toWorkspaceSession(input),
+ converter.toWorkspaceSession(input, new WorkspaceSession_Owner({
+ id: "123",
+ name: "Kum Quat"
+ })),
);
});
diff --git a/components/public-api/typescript-common/src/public-api-converter.ts b/components/public-api/typescript-common/src/public-api-converter.ts
index eaa97558260671..94ffb10c2177fc 100644
--- a/components/public-api/typescript-common/src/public-api-converter.ts
+++ b/components/public-api/typescript-common/src/public-api-converter.ts
@@ -40,6 +40,8 @@ import {
WorkspaceInfo,
WorkspaceSession as WorkspaceSessionProtocol,
Configuration as GitpodServerInstallationConfiguration,
+ NavigatorContext,
+ RefType,
} from "@gitpod/gitpod-protocol/lib/protocol";
import { AuditLog as AuditLogProtocol } from "@gitpod/gitpod-protocol/lib/audit-log";
import {
@@ -165,6 +167,10 @@ import {
WorkspaceStatus,
WorkspaceStatus_PrebuildResult,
WorkspaceStatus_WorkspaceConditions,
+ WorkspaceSession_Owner,
+ WorkspaceSession_WorkspaceContext,
+ WorkspaceSession_WorkspaceContext_Repository,
+ WorkspaceSession_WorkspaceContext_RefType
} from "@gitpod/public-api/lib/gitpod/v1/workspace_pb";
import { BigIntToJson } from "@gitpod/gitpod-protocol/lib/util/stringify";
import { getPrebuildLogPath } from "./prebuild-utils";
@@ -181,7 +187,7 @@ export type PartialConfiguration = DeepPartial