From 9a672c9182f78febb2570cfb5a18003daaf8771a Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 19:31:03 +0000 Subject: [PATCH 1/9] Update proto --- .../gitpod/experimental/v1/workspaces.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/public-api/gitpod/experimental/v1/workspaces.proto b/components/public-api/gitpod/experimental/v1/workspaces.proto index 700e930821b5ce..002bb472e8ede3 100644 --- a/components/public-api/gitpod/experimental/v1/workspaces.proto +++ b/components/public-api/gitpod/experimental/v1/workspaces.proto @@ -153,6 +153,18 @@ message Workspace { // status is the current status of this Workspace. WorkspaceStatus status = 6; + + // editor is the editor to be used in this workspace + EditorReference editor = 7; +} + +message EditorReference { + string name = 1; + string version = 2; + + // prefer_toolbox indicates whether the editor should be launched with the + // JetBrains Toolbox instead of JetBrains Gateway + bool prefer_toolbox = 3; } // WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace. From 42a14caecc2d4acc51f26545a103ae6947b856a5 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 19:47:35 +0000 Subject: [PATCH 2/9] proto gen --- .../go/experimental/v1/workspaces.pb.go | 1082 ++++++----- .../publicapi/experimental/v1/Workspaces.java | 1674 +++++++++++++---- .../gitpod/experimental/v1/workspaces_pb.ts | 60 + 3 files changed, 2003 insertions(+), 813 deletions(-) diff --git a/components/public-api/go/experimental/v1/workspaces.pb.go b/components/public-api/go/experimental/v1/workspaces.pb.go index 6bdf00ae1b90c2..5d55f29deaae53 100644 --- a/components/public-api/go/experimental/v1/workspaces.pb.go +++ b/components/public-api/go/experimental/v1/workspaces.pb.go @@ -272,7 +272,7 @@ func (x WorkspaceInstanceStatus_Phase) Number() protoreflect.EnumNumber { // Deprecated: Use WorkspaceInstanceStatus_Phase.Descriptor instead. func (WorkspaceInstanceStatus_Phase) EnumDescriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23, 0} } type GetDefaultWorkspaceImageResponse_ImageSource int32 @@ -323,7 +323,7 @@ func (x GetDefaultWorkspaceImageResponse_ImageSource) Number() protoreflect.Enum // Deprecated: Use GetDefaultWorkspaceImageResponse_ImageSource.Descriptor instead. func (GetDefaultWorkspaceImageResponse_ImageSource) EnumDescriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{32, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{33, 0} } type ListWorkspacesRequest struct { @@ -1286,6 +1286,8 @@ type Workspace struct { Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // status is the current status of this Workspace. Status *WorkspaceStatus `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` + // editor is the editor to be used in this workspace + Editor *EditorReference `protobuf:"bytes,7,opt,name=editor,proto3" json:"editor,omitempty"` } func (x *Workspace) Reset() { @@ -1362,6 +1364,78 @@ func (x *Workspace) GetStatus() *WorkspaceStatus { return nil } +func (x *Workspace) GetEditor() *EditorReference { + if x != nil { + return x.Editor + } + return nil +} + +type EditorReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // prefer_toolbox indicates whether the editor should be launched with the + // JetBrains Toolbox instead of JetBrains Gateway + PreferToolbox bool `protobuf:"varint,3,opt,name=prefer_toolbox,json=preferToolbox,proto3" json:"prefer_toolbox,omitempty"` +} + +func (x *EditorReference) Reset() { + *x = EditorReference{} + if protoimpl.UnsafeEnabled { + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EditorReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EditorReference) ProtoMessage() {} + +func (x *EditorReference) ProtoReflect() protoreflect.Message { + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EditorReference.ProtoReflect.Descriptor instead. +func (*EditorReference) Descriptor() ([]byte, []int) { + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{19} +} + +func (x *EditorReference) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *EditorReference) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *EditorReference) GetPreferToolbox() bool { + if x != nil { + return x.PreferToolbox + } + return false +} + // WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace. type WorkspaceStatus struct { state protoimpl.MessageState @@ -1375,7 +1449,7 @@ type WorkspaceStatus struct { func (x *WorkspaceStatus) Reset() { *x = WorkspaceStatus{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1388,7 +1462,7 @@ func (x *WorkspaceStatus) String() string { func (*WorkspaceStatus) ProtoMessage() {} func (x *WorkspaceStatus) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1401,7 +1475,7 @@ func (x *WorkspaceStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceStatus.ProtoReflect.Descriptor instead. func (*WorkspaceStatus) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{19} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20} } func (x *WorkspaceStatus) GetInstance() *WorkspaceInstance { @@ -1431,7 +1505,7 @@ type WorkspaceContext struct { func (x *WorkspaceContext) Reset() { *x = WorkspaceContext{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1444,7 +1518,7 @@ func (x *WorkspaceContext) String() string { func (*WorkspaceContext) ProtoMessage() {} func (x *WorkspaceContext) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1457,7 +1531,7 @@ func (x *WorkspaceContext) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext.ProtoReflect.Descriptor instead. func (*WorkspaceContext) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21} } func (x *WorkspaceContext) GetContextUrl() string { @@ -1534,7 +1608,7 @@ type WorkspaceInstance struct { func (x *WorkspaceInstance) Reset() { *x = WorkspaceInstance{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1547,7 +1621,7 @@ func (x *WorkspaceInstance) String() string { func (*WorkspaceInstance) ProtoMessage() {} func (x *WorkspaceInstance) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1560,7 +1634,7 @@ func (x *WorkspaceInstance) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceInstance.ProtoReflect.Descriptor instead. func (*WorkspaceInstance) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22} } func (x *WorkspaceInstance) GetInstanceId() string { @@ -1626,7 +1700,7 @@ type WorkspaceInstanceStatus struct { func (x *WorkspaceInstanceStatus) Reset() { *x = WorkspaceInstanceStatus{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1639,7 +1713,7 @@ func (x *WorkspaceInstanceStatus) String() string { func (*WorkspaceInstanceStatus) ProtoMessage() {} func (x *WorkspaceInstanceStatus) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1652,7 +1726,7 @@ func (x *WorkspaceInstanceStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceInstanceStatus.ProtoReflect.Descriptor instead. func (*WorkspaceInstanceStatus) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23} } func (x *WorkspaceInstanceStatus) GetStatusVersion() uint64 { @@ -1736,7 +1810,7 @@ type Port struct { func (x *Port) Reset() { *x = Port{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1749,7 +1823,7 @@ func (x *Port) String() string { func (*Port) ProtoMessage() {} func (x *Port) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1762,7 +1836,7 @@ func (x *Port) ProtoReflect() protoreflect.Message { // Deprecated: Use Port.ProtoReflect.Descriptor instead. func (*Port) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{24} } func (x *Port) GetPort() uint64 { @@ -1807,7 +1881,7 @@ type StartWorkspaceSpec struct { func (x *StartWorkspaceSpec) Reset() { *x = StartWorkspaceSpec{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1820,7 +1894,7 @@ func (x *StartWorkspaceSpec) String() string { func (*StartWorkspaceSpec) ProtoMessage() {} func (x *StartWorkspaceSpec) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1833,7 +1907,7 @@ func (x *StartWorkspaceSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use StartWorkspaceSpec.ProtoReflect.Descriptor instead. func (*StartWorkspaceSpec) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{24} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{25} } func (x *StartWorkspaceSpec) GetWorkspaceClass() string { @@ -1869,7 +1943,7 @@ type IDESettings struct { func (x *IDESettings) Reset() { *x = IDESettings{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1882,7 +1956,7 @@ func (x *IDESettings) String() string { func (*IDESettings) ProtoMessage() {} func (x *IDESettings) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1895,7 +1969,7 @@ func (x *IDESettings) ProtoReflect() protoreflect.Message { // Deprecated: Use IDESettings.ProtoReflect.Descriptor instead. func (*IDESettings) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{25} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{26} } func (x *IDESettings) GetDefaultIde() string { @@ -1928,7 +2002,7 @@ type PortSpec struct { func (x *PortSpec) Reset() { *x = PortSpec{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1941,7 +2015,7 @@ func (x *PortSpec) String() string { func (*PortSpec) ProtoMessage() {} func (x *PortSpec) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1954,7 +2028,7 @@ func (x *PortSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use PortSpec.ProtoReflect.Descriptor instead. func (*PortSpec) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{26} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{27} } func (x *PortSpec) GetPort() uint64 { @@ -1990,7 +2064,7 @@ type UpdatePortRequest struct { func (x *UpdatePortRequest) Reset() { *x = UpdatePortRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2003,7 +2077,7 @@ func (x *UpdatePortRequest) String() string { func (*UpdatePortRequest) ProtoMessage() {} func (x *UpdatePortRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2016,7 +2090,7 @@ func (x *UpdatePortRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdatePortRequest.ProtoReflect.Descriptor instead. func (*UpdatePortRequest) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{27} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{28} } func (x *UpdatePortRequest) GetWorkspaceId() string { @@ -2042,7 +2116,7 @@ type UpdatePortResponse struct { func (x *UpdatePortResponse) Reset() { *x = UpdatePortResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2055,7 +2129,7 @@ func (x *UpdatePortResponse) String() string { func (*UpdatePortResponse) ProtoMessage() {} func (x *UpdatePortResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2068,7 +2142,7 @@ func (x *UpdatePortResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdatePortResponse.ProtoReflect.Descriptor instead. func (*UpdatePortResponse) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{28} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{29} } // GitStatus describes the current working copy status, akin to a combination of "git status" and "git branch" @@ -2098,7 +2172,7 @@ type GitStatus struct { func (x *GitStatus) Reset() { *x = GitStatus{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2111,7 +2185,7 @@ func (x *GitStatus) String() string { func (*GitStatus) ProtoMessage() {} func (x *GitStatus) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2124,7 +2198,7 @@ func (x *GitStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use GitStatus.ProtoReflect.Descriptor instead. func (*GitStatus) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{29} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{30} } func (x *GitStatus) GetBranch() string { @@ -2201,7 +2275,7 @@ type WorkspaceClass struct { func (x *WorkspaceClass) Reset() { *x = WorkspaceClass{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2214,7 +2288,7 @@ func (x *WorkspaceClass) String() string { func (*WorkspaceClass) ProtoMessage() {} func (x *WorkspaceClass) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2227,7 +2301,7 @@ func (x *WorkspaceClass) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceClass.ProtoReflect.Descriptor instead. func (*WorkspaceClass) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{30} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{31} } func (x *WorkspaceClass) GetId() string { @@ -2269,7 +2343,7 @@ type GetDefaultWorkspaceImageRequest struct { func (x *GetDefaultWorkspaceImageRequest) Reset() { *x = GetDefaultWorkspaceImageRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2282,7 +2356,7 @@ func (x *GetDefaultWorkspaceImageRequest) String() string { func (*GetDefaultWorkspaceImageRequest) ProtoMessage() {} func (x *GetDefaultWorkspaceImageRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2295,7 +2369,7 @@ func (x *GetDefaultWorkspaceImageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDefaultWorkspaceImageRequest.ProtoReflect.Descriptor instead. func (*GetDefaultWorkspaceImageRequest) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{31} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{32} } func (x *GetDefaultWorkspaceImageRequest) GetWorkspaceId() string { @@ -2319,7 +2393,7 @@ type GetDefaultWorkspaceImageResponse struct { func (x *GetDefaultWorkspaceImageResponse) Reset() { *x = GetDefaultWorkspaceImageResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2332,7 +2406,7 @@ func (x *GetDefaultWorkspaceImageResponse) String() string { func (*GetDefaultWorkspaceImageResponse) ProtoMessage() {} func (x *GetDefaultWorkspaceImageResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2345,7 +2419,7 @@ func (x *GetDefaultWorkspaceImageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDefaultWorkspaceImageResponse.ProtoReflect.Descriptor instead. func (*GetDefaultWorkspaceImageResponse) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{32} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{33} } func (x *GetDefaultWorkspaceImageResponse) GetImage() string { @@ -2377,7 +2451,7 @@ type WorkspaceContext_GitProvider struct { func (x *WorkspaceContext_GitProvider) Reset() { *x = WorkspaceContext_GitProvider{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2390,7 +2464,7 @@ func (x *WorkspaceContext_GitProvider) String() string { func (*WorkspaceContext_GitProvider) ProtoMessage() {} func (x *WorkspaceContext_GitProvider) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2403,7 +2477,7 @@ func (x *WorkspaceContext_GitProvider) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_GitProvider.ProtoReflect.Descriptor instead. func (*WorkspaceContext_GitProvider) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 0} } func (x *WorkspaceContext_GitProvider) GetType() string { @@ -2433,7 +2507,7 @@ type WorkspaceContext_Repository struct { func (x *WorkspaceContext_Repository) Reset() { *x = WorkspaceContext_Repository{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2446,7 +2520,7 @@ func (x *WorkspaceContext_Repository) String() string { func (*WorkspaceContext_Repository) ProtoMessage() {} func (x *WorkspaceContext_Repository) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2459,7 +2533,7 @@ func (x *WorkspaceContext_Repository) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Repository.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Repository) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 1} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 1} } func (x *WorkspaceContext_Repository) GetName() string { @@ -2491,7 +2565,7 @@ type WorkspaceContext_Git struct { func (x *WorkspaceContext_Git) Reset() { *x = WorkspaceContext_Git{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2504,7 +2578,7 @@ func (x *WorkspaceContext_Git) String() string { func (*WorkspaceContext_Git) ProtoMessage() {} func (x *WorkspaceContext_Git) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2517,7 +2591,7 @@ func (x *WorkspaceContext_Git) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Git.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Git) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 2} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 2} } func (x *WorkspaceContext_Git) GetNormalizedContextUrl() string { @@ -2557,7 +2631,7 @@ type WorkspaceContext_Prebuild struct { func (x *WorkspaceContext_Prebuild) Reset() { *x = WorkspaceContext_Prebuild{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2570,7 +2644,7 @@ func (x *WorkspaceContext_Prebuild) String() string { func (*WorkspaceContext_Prebuild) ProtoMessage() {} func (x *WorkspaceContext_Prebuild) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2583,7 +2657,7 @@ func (x *WorkspaceContext_Prebuild) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Prebuild.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Prebuild) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 3} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 3} } func (x *WorkspaceContext_Prebuild) GetOriginalContext() *WorkspaceContext_Git { @@ -2612,7 +2686,7 @@ type WorkspaceContext_Snapshot struct { func (x *WorkspaceContext_Snapshot) Reset() { *x = WorkspaceContext_Snapshot{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2625,7 +2699,7 @@ func (x *WorkspaceContext_Snapshot) String() string { func (*WorkspaceContext_Snapshot) ProtoMessage() {} func (x *WorkspaceContext_Snapshot) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2638,7 +2712,7 @@ func (x *WorkspaceContext_Snapshot) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Snapshot.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Snapshot) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 4} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 4} } func (x *WorkspaceContext_Snapshot) GetSnapshotId() string { @@ -2669,7 +2743,7 @@ type WorkspaceInstanceStatus_Conditions struct { func (x *WorkspaceInstanceStatus_Conditions) Reset() { *x = WorkspaceInstanceStatus_Conditions{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2682,7 +2756,7 @@ func (x *WorkspaceInstanceStatus_Conditions) String() string { func (*WorkspaceInstanceStatus_Conditions) ProtoMessage() {} func (x *WorkspaceInstanceStatus_Conditions) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2695,7 +2769,7 @@ func (x *WorkspaceInstanceStatus_Conditions) ProtoReflect() protoreflect.Message // Deprecated: Use WorkspaceInstanceStatus_Conditions.ProtoReflect.Descriptor instead. func (*WorkspaceInstanceStatus_Conditions) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23, 0} } func (x *WorkspaceInstanceStatus_Conditions) GetFailed() string { @@ -2854,7 +2928,7 @@ var file_gitpod_experimental_v1_workspaces_proto_rawDesc = []byte{ 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x8f, 0x02, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xd0, 0x02, 0x0a, 0x09, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x19, @@ -2871,347 +2945,357 @@ var file_gitpod_experimental_v1_workspaces_proto_rawDesc = []byte{ 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, - 0x58, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x45, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, - 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xb2, 0x06, 0x0a, 0x10, 0x57, 0x6f, - 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x12, - 0x40, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, - 0x74, 0x12, 0x4f, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x50, 0x72, - 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, - 0x6c, 0x64, 0x12, 0x4f, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x1a, 0x3d, 0x0a, 0x0b, 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, - 0x6d, 0x65, 0x1a, 0x36, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0xe2, 0x01, 0x0a, 0x03, 0x47, - 0x69, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, - 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x14, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x43, 0x6f, - 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x53, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x3f, 0x0a, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, + 0x22, 0x66, 0x0a, 0x0f, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6f, 0x6c, + 0x62, 0x6f, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x54, 0x6f, 0x6f, 0x6c, 0x62, 0x6f, 0x78, 0x22, 0x58, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x45, 0x0a, 0x08, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x22, 0xb2, 0x06, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x78, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x40, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, + 0x47, 0x69, 0x74, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, 0x74, 0x12, 0x4f, 0x0a, 0x08, 0x70, 0x72, + 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, - 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x50, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x48, + 0x00, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x4f, 0x0a, 0x08, 0x73, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x48, 0x00, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x1a, 0x3d, 0x0a, 0x0b, + 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x36, 0x0a, 0x0a, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x1a, 0xe2, 0x01, 0x0a, 0x03, 0x47, 0x69, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6e, + 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6e, 0x6f, 0x72, + 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, + 0x6c, 0x12, 0x53, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x84, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x65, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, + 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, - 0x84, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x10, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, - 0x2e, 0x47, 0x69, 0x74, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, - 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x1a, 0x2b, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x49, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xdb, - 0x01, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x47, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xab, 0x07, 0x0a, - 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x4b, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, - 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, - 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0a, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x52, 0x0f, 0x6f, + 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x1a, + 0x2b, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x64, 0x42, 0x09, 0x0a, 0x07, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xdb, 0x01, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, + 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, + 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x47, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, + 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xab, 0x07, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x63, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x6c, 0x12, 0x44, 0x0a, 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, - 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x70, 0x6f, - 0x72, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, + 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x25, - 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, - 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x67, 0x69, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0xd4, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x18, - 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x4a, 0x0a, 0x13, 0x66, 0x69, 0x72, 0x73, - 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x11, 0x66, 0x69, 0x72, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x69, 0x74, 0x79, 0x12, 0x31, 0x0a, 0x12, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, - 0x62, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, - 0x48, 0x00, 0x52, 0x10, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x42, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x88, 0x01, 0x01, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x73, 0x74, 0x6f, 0x70, - 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd9, - 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x48, 0x41, 0x53, - 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x13, 0x0a, 0x0f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x49, - 0x4e, 0x47, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4d, - 0x41, 0x47, 0x45, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, - 0x41, 0x53, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x12, 0x0a, - 0x0e, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, - 0x04, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, - 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, - 0x53, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, - 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x52, 0x55, 0x50, 0x54, 0x45, - 0x44, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x4f, - 0x50, 0x50, 0x49, 0x4e, 0x47, 0x10, 0x08, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, - 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x09, 0x22, 0xaa, 0x01, 0x0a, 0x04, 0x50, - 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, - 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x9d, 0x01, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x27, - 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x64, 0x65, 0x5f, 0x73, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x45, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x5c, 0x0a, 0x0b, 0x49, 0x44, 0x45, 0x53, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x5f, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x49, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x75, 0x73, 0x65, 0x5f, 0x6c, - 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x10, 0x75, 0x73, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x9c, 0x01, 0x0a, 0x08, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x70, - 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x44, 0x0a, + 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, + 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, + 0x74, 0x5f, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0d, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x12, 0x40, + 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x67, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x1a, 0xd4, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x12, 0x4a, 0x0a, 0x13, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x11, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x31, 0x0a, + 0x12, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x10, 0x73, 0x74, 0x6f, + 0x70, 0x70, 0x65, 0x64, 0x42, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x88, 0x01, 0x01, + 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd9, 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, + 0x65, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x48, 0x41, 0x53, + 0x45, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x14, 0x0a, + 0x10, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x42, 0x55, 0x49, 0x4c, + 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x45, 0x4e, + 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, + 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x48, + 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, + 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, + 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x52, 0x55, 0x50, 0x54, 0x45, 0x44, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, + 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x10, 0x08, + 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, + 0x44, 0x10, 0x09, 0x22, 0xaa, 0x01, 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, + 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x40, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x22, 0x9d, 0x01, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x64, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, - 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x6c, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x04, - 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x70, 0x6f, - 0x72, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe7, 0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x23, - 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, - 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, - 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x34, - 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, - 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, - 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x75, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, - 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, - 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, - 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x70, - 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x16, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, - 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, - 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x5a, 0x0a, 0x1f, 0x47, 0x65, 0x74, - 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0c, - 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x81, 0x02, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x12, 0x5c, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x44, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x69, - 0x0a, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, - 0x18, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x49, - 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x54, - 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4d, - 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, - 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x0a, 0x50, 0x6f, 0x72, - 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x52, 0x54, 0x5f, - 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, - 0x49, 0x43, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x16, 0x0a, - 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x50, 0x55, 0x42, - 0x4c, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x5e, 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, - 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, 0x4f, - 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, - 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, - 0x54, 0x50, 0x53, 0x10, 0x02, 0x2a, 0x6f, 0x0a, 0x0e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x44, 0x4d, 0x49, 0x53, - 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x44, 0x4d, 0x49, - 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, 0x57, 0x4e, 0x45, - 0x52, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x44, 0x4d, 0x49, - 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x56, 0x45, 0x52, - 0x59, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x32, 0xd5, 0x0a, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x71, 0x0a, 0x0e, - 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x2d, - 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, + 0x49, 0x44, 0x45, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0b, 0x69, 0x64, 0x65, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x22, 0x5c, 0x0a, 0x0b, 0x49, 0x44, 0x45, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x64, 0x65, + 0x12, 0x2c, 0x0a, 0x12, 0x75, 0x73, 0x65, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x75, 0x73, + 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x9c, + 0x01, 0x0a, 0x08, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, + 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x2b, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x88, 0x01, 0x0a, - 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x6e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x77, - 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8c, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x12, 0x36, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x69, - 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, - 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x6c, 0x0a, + 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, + 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xe7, 0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, + 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, + 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, + 0x0f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, + 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, + 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, + 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, + 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x0e, + 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, + 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x22, 0x5a, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, + 0x0d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x81, + 0x02, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5c, 0x0a, 0x06, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x44, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x69, 0x0a, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, + 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, + 0x52, 0x43, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x0a, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, + 0x13, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x50, 0x52, 0x49, + 0x56, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, + 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x5e, + 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1d, + 0x0a, 0x19, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, + 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, + 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, + 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, 0x02, 0x2a, 0x6f, + 0x0a, 0x0e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x44, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, + 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x44, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, + 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, + 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x44, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, + 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x56, 0x45, 0x52, 0x59, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x32, + 0xd5, 0x0a, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6e, 0x0a, 0x0d, 0x53, 0x74, 0x6f, - 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, - 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2b, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x74, 0x0a, 0x0f, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, + 0x12, 0x6e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, + 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, + 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x8c, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x36, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, + 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x65, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x2e, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x71, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x6e, 0x0a, 0x0d, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, + 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x74, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x65, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x83, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x83, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, - 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8f, 0x01, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8f, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, + 0x67, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, - 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, - 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, + 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, + 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3227,7 +3311,7 @@ func file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP() []byte { } var file_gitpod_experimental_v1_workspaces_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_gitpod_experimental_v1_workspaces_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_gitpod_experimental_v1_workspaces_proto_msgTypes = make([]protoimpl.MessageInfo, 40) var file_gitpod_experimental_v1_workspaces_proto_goTypes = []interface{}{ (PortPolicy)(0), // 0: gitpod.experimental.v1.PortPolicy (PortProtocol)(0), // 1: gitpod.experimental.v1.PortProtocol @@ -3253,91 +3337,93 @@ var file_gitpod_experimental_v1_workspaces_proto_goTypes = []interface{}{ (*ListWorkspaceClassesRequest)(nil), // 21: gitpod.experimental.v1.ListWorkspaceClassesRequest (*ListWorkspaceClassesResponse)(nil), // 22: gitpod.experimental.v1.ListWorkspaceClassesResponse (*Workspace)(nil), // 23: gitpod.experimental.v1.Workspace - (*WorkspaceStatus)(nil), // 24: gitpod.experimental.v1.WorkspaceStatus - (*WorkspaceContext)(nil), // 25: gitpod.experimental.v1.WorkspaceContext - (*WorkspaceInstance)(nil), // 26: gitpod.experimental.v1.WorkspaceInstance - (*WorkspaceInstanceStatus)(nil), // 27: gitpod.experimental.v1.WorkspaceInstanceStatus - (*Port)(nil), // 28: gitpod.experimental.v1.Port - (*StartWorkspaceSpec)(nil), // 29: gitpod.experimental.v1.StartWorkspaceSpec - (*IDESettings)(nil), // 30: gitpod.experimental.v1.IDESettings - (*PortSpec)(nil), // 31: gitpod.experimental.v1.PortSpec - (*UpdatePortRequest)(nil), // 32: gitpod.experimental.v1.UpdatePortRequest - (*UpdatePortResponse)(nil), // 33: gitpod.experimental.v1.UpdatePortResponse - (*GitStatus)(nil), // 34: gitpod.experimental.v1.GitStatus - (*WorkspaceClass)(nil), // 35: gitpod.experimental.v1.WorkspaceClass - (*GetDefaultWorkspaceImageRequest)(nil), // 36: gitpod.experimental.v1.GetDefaultWorkspaceImageRequest - (*GetDefaultWorkspaceImageResponse)(nil), // 37: gitpod.experimental.v1.GetDefaultWorkspaceImageResponse - (*WorkspaceContext_GitProvider)(nil), // 38: gitpod.experimental.v1.WorkspaceContext.GitProvider - (*WorkspaceContext_Repository)(nil), // 39: gitpod.experimental.v1.WorkspaceContext.Repository - (*WorkspaceContext_Git)(nil), // 40: gitpod.experimental.v1.WorkspaceContext.Git - (*WorkspaceContext_Prebuild)(nil), // 41: gitpod.experimental.v1.WorkspaceContext.Prebuild - (*WorkspaceContext_Snapshot)(nil), // 42: gitpod.experimental.v1.WorkspaceContext.Snapshot - (*WorkspaceInstanceStatus_Conditions)(nil), // 43: gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions - (*Pagination)(nil), // 44: gitpod.experimental.v1.Pagination - (*fieldmaskpb.FieldMask)(nil), // 45: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 46: google.protobuf.Timestamp + (*EditorReference)(nil), // 24: gitpod.experimental.v1.EditorReference + (*WorkspaceStatus)(nil), // 25: gitpod.experimental.v1.WorkspaceStatus + (*WorkspaceContext)(nil), // 26: gitpod.experimental.v1.WorkspaceContext + (*WorkspaceInstance)(nil), // 27: gitpod.experimental.v1.WorkspaceInstance + (*WorkspaceInstanceStatus)(nil), // 28: gitpod.experimental.v1.WorkspaceInstanceStatus + (*Port)(nil), // 29: gitpod.experimental.v1.Port + (*StartWorkspaceSpec)(nil), // 30: gitpod.experimental.v1.StartWorkspaceSpec + (*IDESettings)(nil), // 31: gitpod.experimental.v1.IDESettings + (*PortSpec)(nil), // 32: gitpod.experimental.v1.PortSpec + (*UpdatePortRequest)(nil), // 33: gitpod.experimental.v1.UpdatePortRequest + (*UpdatePortResponse)(nil), // 34: gitpod.experimental.v1.UpdatePortResponse + (*GitStatus)(nil), // 35: gitpod.experimental.v1.GitStatus + (*WorkspaceClass)(nil), // 36: gitpod.experimental.v1.WorkspaceClass + (*GetDefaultWorkspaceImageRequest)(nil), // 37: gitpod.experimental.v1.GetDefaultWorkspaceImageRequest + (*GetDefaultWorkspaceImageResponse)(nil), // 38: gitpod.experimental.v1.GetDefaultWorkspaceImageResponse + (*WorkspaceContext_GitProvider)(nil), // 39: gitpod.experimental.v1.WorkspaceContext.GitProvider + (*WorkspaceContext_Repository)(nil), // 40: gitpod.experimental.v1.WorkspaceContext.Repository + (*WorkspaceContext_Git)(nil), // 41: gitpod.experimental.v1.WorkspaceContext.Git + (*WorkspaceContext_Prebuild)(nil), // 42: gitpod.experimental.v1.WorkspaceContext.Prebuild + (*WorkspaceContext_Snapshot)(nil), // 43: gitpod.experimental.v1.WorkspaceContext.Snapshot + (*WorkspaceInstanceStatus_Conditions)(nil), // 44: gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions + (*Pagination)(nil), // 45: gitpod.experimental.v1.Pagination + (*fieldmaskpb.FieldMask)(nil), // 46: google.protobuf.FieldMask + (*timestamppb.Timestamp)(nil), // 47: google.protobuf.Timestamp } var file_gitpod_experimental_v1_workspaces_proto_depIdxs = []int32{ - 44, // 0: gitpod.experimental.v1.ListWorkspacesRequest.pagination:type_name -> gitpod.experimental.v1.Pagination - 45, // 1: gitpod.experimental.v1.ListWorkspacesRequest.field_mask:type_name -> google.protobuf.FieldMask + 45, // 0: gitpod.experimental.v1.ListWorkspacesRequest.pagination:type_name -> gitpod.experimental.v1.Pagination + 46, // 1: gitpod.experimental.v1.ListWorkspacesRequest.field_mask:type_name -> google.protobuf.FieldMask 23, // 2: gitpod.experimental.v1.ListWorkspacesResponse.result:type_name -> gitpod.experimental.v1.Workspace 23, // 3: gitpod.experimental.v1.GetWorkspaceResponse.result:type_name -> gitpod.experimental.v1.Workspace - 24, // 4: gitpod.experimental.v1.StreamWorkspaceStatusResponse.result:type_name -> gitpod.experimental.v1.WorkspaceStatus - 29, // 5: gitpod.experimental.v1.CreateAndStartWorkspaceRequest.start_spec:type_name -> gitpod.experimental.v1.StartWorkspaceSpec + 25, // 4: gitpod.experimental.v1.StreamWorkspaceStatusResponse.result:type_name -> gitpod.experimental.v1.WorkspaceStatus + 30, // 5: gitpod.experimental.v1.CreateAndStartWorkspaceRequest.start_spec:type_name -> gitpod.experimental.v1.StartWorkspaceSpec 23, // 6: gitpod.experimental.v1.StartWorkspaceResponse.result:type_name -> gitpod.experimental.v1.Workspace 23, // 7: gitpod.experimental.v1.StopWorkspaceResponse.result:type_name -> gitpod.experimental.v1.Workspace - 35, // 8: gitpod.experimental.v1.ListWorkspaceClassesResponse.result:type_name -> gitpod.experimental.v1.WorkspaceClass - 25, // 9: gitpod.experimental.v1.Workspace.context:type_name -> gitpod.experimental.v1.WorkspaceContext - 24, // 10: gitpod.experimental.v1.Workspace.status:type_name -> gitpod.experimental.v1.WorkspaceStatus - 26, // 11: gitpod.experimental.v1.WorkspaceStatus.instance:type_name -> gitpod.experimental.v1.WorkspaceInstance - 40, // 12: gitpod.experimental.v1.WorkspaceContext.git:type_name -> gitpod.experimental.v1.WorkspaceContext.Git - 41, // 13: gitpod.experimental.v1.WorkspaceContext.prebuild:type_name -> gitpod.experimental.v1.WorkspaceContext.Prebuild - 42, // 14: gitpod.experimental.v1.WorkspaceContext.snapshot:type_name -> gitpod.experimental.v1.WorkspaceContext.Snapshot - 46, // 15: gitpod.experimental.v1.WorkspaceInstance.created_at:type_name -> google.protobuf.Timestamp - 27, // 16: gitpod.experimental.v1.WorkspaceInstance.status:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus - 3, // 17: gitpod.experimental.v1.WorkspaceInstanceStatus.phase:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Phase - 43, // 18: gitpod.experimental.v1.WorkspaceInstanceStatus.conditions:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions - 2, // 19: gitpod.experimental.v1.WorkspaceInstanceStatus.admission:type_name -> gitpod.experimental.v1.AdmissionLevel - 28, // 20: gitpod.experimental.v1.WorkspaceInstanceStatus.ports:type_name -> gitpod.experimental.v1.Port - 34, // 21: gitpod.experimental.v1.WorkspaceInstanceStatus.git_status:type_name -> gitpod.experimental.v1.GitStatus - 0, // 22: gitpod.experimental.v1.Port.policy:type_name -> gitpod.experimental.v1.PortPolicy - 1, // 23: gitpod.experimental.v1.Port.protocol:type_name -> gitpod.experimental.v1.PortProtocol - 30, // 24: gitpod.experimental.v1.StartWorkspaceSpec.ide_settings:type_name -> gitpod.experimental.v1.IDESettings - 0, // 25: gitpod.experimental.v1.PortSpec.policy:type_name -> gitpod.experimental.v1.PortPolicy - 1, // 26: gitpod.experimental.v1.PortSpec.protocol:type_name -> gitpod.experimental.v1.PortProtocol - 31, // 27: gitpod.experimental.v1.UpdatePortRequest.port:type_name -> gitpod.experimental.v1.PortSpec - 4, // 28: gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.source:type_name -> gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource - 39, // 29: gitpod.experimental.v1.WorkspaceContext.Git.repository:type_name -> gitpod.experimental.v1.WorkspaceContext.Repository - 38, // 30: gitpod.experimental.v1.WorkspaceContext.Git.provider:type_name -> gitpod.experimental.v1.WorkspaceContext.GitProvider - 40, // 31: gitpod.experimental.v1.WorkspaceContext.Prebuild.original_context:type_name -> gitpod.experimental.v1.WorkspaceContext.Git - 46, // 32: gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions.first_user_activity:type_name -> google.protobuf.Timestamp - 5, // 33: gitpod.experimental.v1.WorkspacesService.ListWorkspaces:input_type -> gitpod.experimental.v1.ListWorkspacesRequest - 7, // 34: gitpod.experimental.v1.WorkspacesService.GetWorkspace:input_type -> gitpod.experimental.v1.GetWorkspaceRequest - 9, // 35: gitpod.experimental.v1.WorkspacesService.StreamWorkspaceStatus:input_type -> gitpod.experimental.v1.StreamWorkspaceStatusRequest - 11, // 36: gitpod.experimental.v1.WorkspacesService.GetOwnerToken:input_type -> gitpod.experimental.v1.GetOwnerTokenRequest - 13, // 37: gitpod.experimental.v1.WorkspacesService.CreateAndStartWorkspace:input_type -> gitpod.experimental.v1.CreateAndStartWorkspaceRequest - 15, // 38: gitpod.experimental.v1.WorkspacesService.StartWorkspace:input_type -> gitpod.experimental.v1.StartWorkspaceRequest - 17, // 39: gitpod.experimental.v1.WorkspacesService.StopWorkspace:input_type -> gitpod.experimental.v1.StopWorkspaceRequest - 19, // 40: gitpod.experimental.v1.WorkspacesService.DeleteWorkspace:input_type -> gitpod.experimental.v1.DeleteWorkspaceRequest - 32, // 41: gitpod.experimental.v1.WorkspacesService.UpdatePort:input_type -> gitpod.experimental.v1.UpdatePortRequest - 21, // 42: gitpod.experimental.v1.WorkspacesService.ListWorkspaceClasses:input_type -> gitpod.experimental.v1.ListWorkspaceClassesRequest - 36, // 43: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:input_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageRequest - 6, // 44: gitpod.experimental.v1.WorkspacesService.ListWorkspaces:output_type -> gitpod.experimental.v1.ListWorkspacesResponse - 8, // 45: gitpod.experimental.v1.WorkspacesService.GetWorkspace:output_type -> gitpod.experimental.v1.GetWorkspaceResponse - 10, // 46: gitpod.experimental.v1.WorkspacesService.StreamWorkspaceStatus:output_type -> gitpod.experimental.v1.StreamWorkspaceStatusResponse - 12, // 47: gitpod.experimental.v1.WorkspacesService.GetOwnerToken:output_type -> gitpod.experimental.v1.GetOwnerTokenResponse - 14, // 48: gitpod.experimental.v1.WorkspacesService.CreateAndStartWorkspace:output_type -> gitpod.experimental.v1.CreateAndStartWorkspaceResponse - 16, // 49: gitpod.experimental.v1.WorkspacesService.StartWorkspace:output_type -> gitpod.experimental.v1.StartWorkspaceResponse - 18, // 50: gitpod.experimental.v1.WorkspacesService.StopWorkspace:output_type -> gitpod.experimental.v1.StopWorkspaceResponse - 20, // 51: gitpod.experimental.v1.WorkspacesService.DeleteWorkspace:output_type -> gitpod.experimental.v1.DeleteWorkspaceResponse - 33, // 52: gitpod.experimental.v1.WorkspacesService.UpdatePort:output_type -> gitpod.experimental.v1.UpdatePortResponse - 22, // 53: gitpod.experimental.v1.WorkspacesService.ListWorkspaceClasses:output_type -> gitpod.experimental.v1.ListWorkspaceClassesResponse - 37, // 54: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:output_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageResponse - 44, // [44:55] is the sub-list for method output_type - 33, // [33:44] is the sub-list for method input_type - 33, // [33:33] is the sub-list for extension type_name - 33, // [33:33] is the sub-list for extension extendee - 0, // [0:33] is the sub-list for field type_name + 36, // 8: gitpod.experimental.v1.ListWorkspaceClassesResponse.result:type_name -> gitpod.experimental.v1.WorkspaceClass + 26, // 9: gitpod.experimental.v1.Workspace.context:type_name -> gitpod.experimental.v1.WorkspaceContext + 25, // 10: gitpod.experimental.v1.Workspace.status:type_name -> gitpod.experimental.v1.WorkspaceStatus + 24, // 11: gitpod.experimental.v1.Workspace.editor:type_name -> gitpod.experimental.v1.EditorReference + 27, // 12: gitpod.experimental.v1.WorkspaceStatus.instance:type_name -> gitpod.experimental.v1.WorkspaceInstance + 41, // 13: gitpod.experimental.v1.WorkspaceContext.git:type_name -> gitpod.experimental.v1.WorkspaceContext.Git + 42, // 14: gitpod.experimental.v1.WorkspaceContext.prebuild:type_name -> gitpod.experimental.v1.WorkspaceContext.Prebuild + 43, // 15: gitpod.experimental.v1.WorkspaceContext.snapshot:type_name -> gitpod.experimental.v1.WorkspaceContext.Snapshot + 47, // 16: gitpod.experimental.v1.WorkspaceInstance.created_at:type_name -> google.protobuf.Timestamp + 28, // 17: gitpod.experimental.v1.WorkspaceInstance.status:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus + 3, // 18: gitpod.experimental.v1.WorkspaceInstanceStatus.phase:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Phase + 44, // 19: gitpod.experimental.v1.WorkspaceInstanceStatus.conditions:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions + 2, // 20: gitpod.experimental.v1.WorkspaceInstanceStatus.admission:type_name -> gitpod.experimental.v1.AdmissionLevel + 29, // 21: gitpod.experimental.v1.WorkspaceInstanceStatus.ports:type_name -> gitpod.experimental.v1.Port + 35, // 22: gitpod.experimental.v1.WorkspaceInstanceStatus.git_status:type_name -> gitpod.experimental.v1.GitStatus + 0, // 23: gitpod.experimental.v1.Port.policy:type_name -> gitpod.experimental.v1.PortPolicy + 1, // 24: gitpod.experimental.v1.Port.protocol:type_name -> gitpod.experimental.v1.PortProtocol + 31, // 25: gitpod.experimental.v1.StartWorkspaceSpec.ide_settings:type_name -> gitpod.experimental.v1.IDESettings + 0, // 26: gitpod.experimental.v1.PortSpec.policy:type_name -> gitpod.experimental.v1.PortPolicy + 1, // 27: gitpod.experimental.v1.PortSpec.protocol:type_name -> gitpod.experimental.v1.PortProtocol + 32, // 28: gitpod.experimental.v1.UpdatePortRequest.port:type_name -> gitpod.experimental.v1.PortSpec + 4, // 29: gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.source:type_name -> gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource + 40, // 30: gitpod.experimental.v1.WorkspaceContext.Git.repository:type_name -> gitpod.experimental.v1.WorkspaceContext.Repository + 39, // 31: gitpod.experimental.v1.WorkspaceContext.Git.provider:type_name -> gitpod.experimental.v1.WorkspaceContext.GitProvider + 41, // 32: gitpod.experimental.v1.WorkspaceContext.Prebuild.original_context:type_name -> gitpod.experimental.v1.WorkspaceContext.Git + 47, // 33: gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions.first_user_activity:type_name -> google.protobuf.Timestamp + 5, // 34: gitpod.experimental.v1.WorkspacesService.ListWorkspaces:input_type -> gitpod.experimental.v1.ListWorkspacesRequest + 7, // 35: gitpod.experimental.v1.WorkspacesService.GetWorkspace:input_type -> gitpod.experimental.v1.GetWorkspaceRequest + 9, // 36: gitpod.experimental.v1.WorkspacesService.StreamWorkspaceStatus:input_type -> gitpod.experimental.v1.StreamWorkspaceStatusRequest + 11, // 37: gitpod.experimental.v1.WorkspacesService.GetOwnerToken:input_type -> gitpod.experimental.v1.GetOwnerTokenRequest + 13, // 38: gitpod.experimental.v1.WorkspacesService.CreateAndStartWorkspace:input_type -> gitpod.experimental.v1.CreateAndStartWorkspaceRequest + 15, // 39: gitpod.experimental.v1.WorkspacesService.StartWorkspace:input_type -> gitpod.experimental.v1.StartWorkspaceRequest + 17, // 40: gitpod.experimental.v1.WorkspacesService.StopWorkspace:input_type -> gitpod.experimental.v1.StopWorkspaceRequest + 19, // 41: gitpod.experimental.v1.WorkspacesService.DeleteWorkspace:input_type -> gitpod.experimental.v1.DeleteWorkspaceRequest + 33, // 42: gitpod.experimental.v1.WorkspacesService.UpdatePort:input_type -> gitpod.experimental.v1.UpdatePortRequest + 21, // 43: gitpod.experimental.v1.WorkspacesService.ListWorkspaceClasses:input_type -> gitpod.experimental.v1.ListWorkspaceClassesRequest + 37, // 44: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:input_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageRequest + 6, // 45: gitpod.experimental.v1.WorkspacesService.ListWorkspaces:output_type -> gitpod.experimental.v1.ListWorkspacesResponse + 8, // 46: gitpod.experimental.v1.WorkspacesService.GetWorkspace:output_type -> gitpod.experimental.v1.GetWorkspaceResponse + 10, // 47: gitpod.experimental.v1.WorkspacesService.StreamWorkspaceStatus:output_type -> gitpod.experimental.v1.StreamWorkspaceStatusResponse + 12, // 48: gitpod.experimental.v1.WorkspacesService.GetOwnerToken:output_type -> gitpod.experimental.v1.GetOwnerTokenResponse + 14, // 49: gitpod.experimental.v1.WorkspacesService.CreateAndStartWorkspace:output_type -> gitpod.experimental.v1.CreateAndStartWorkspaceResponse + 16, // 50: gitpod.experimental.v1.WorkspacesService.StartWorkspace:output_type -> gitpod.experimental.v1.StartWorkspaceResponse + 18, // 51: gitpod.experimental.v1.WorkspacesService.StopWorkspace:output_type -> gitpod.experimental.v1.StopWorkspaceResponse + 20, // 52: gitpod.experimental.v1.WorkspacesService.DeleteWorkspace:output_type -> gitpod.experimental.v1.DeleteWorkspaceResponse + 34, // 53: gitpod.experimental.v1.WorkspacesService.UpdatePort:output_type -> gitpod.experimental.v1.UpdatePortResponse + 22, // 54: gitpod.experimental.v1.WorkspacesService.ListWorkspaceClasses:output_type -> gitpod.experimental.v1.ListWorkspaceClassesResponse + 38, // 55: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:output_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageResponse + 45, // [45:56] is the sub-list for method output_type + 34, // [34:45] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name } func init() { file_gitpod_experimental_v1_workspaces_proto_init() } @@ -3576,7 +3662,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceStatus); i { + switch v := v.(*EditorReference); i { case 0: return &v.state case 1: @@ -3588,7 +3674,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext); i { + switch v := v.(*WorkspaceStatus); i { case 0: return &v.state case 1: @@ -3600,7 +3686,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceInstance); i { + switch v := v.(*WorkspaceContext); i { case 0: return &v.state case 1: @@ -3612,7 +3698,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceInstanceStatus); i { + switch v := v.(*WorkspaceInstance); i { case 0: return &v.state case 1: @@ -3624,7 +3710,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Port); i { + switch v := v.(*WorkspaceInstanceStatus); i { case 0: return &v.state case 1: @@ -3636,7 +3722,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartWorkspaceSpec); i { + switch v := v.(*Port); i { case 0: return &v.state case 1: @@ -3648,7 +3734,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDESettings); i { + switch v := v.(*StartWorkspaceSpec); i { case 0: return &v.state case 1: @@ -3660,7 +3746,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PortSpec); i { + switch v := v.(*IDESettings); i { case 0: return &v.state case 1: @@ -3672,7 +3758,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePortRequest); i { + switch v := v.(*PortSpec); i { case 0: return &v.state case 1: @@ -3684,7 +3770,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePortResponse); i { + switch v := v.(*UpdatePortRequest); i { case 0: return &v.state case 1: @@ -3696,7 +3782,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GitStatus); i { + switch v := v.(*UpdatePortResponse); i { case 0: return &v.state case 1: @@ -3708,7 +3794,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceClass); i { + switch v := v.(*GitStatus); i { case 0: return &v.state case 1: @@ -3720,7 +3806,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDefaultWorkspaceImageRequest); i { + switch v := v.(*WorkspaceClass); i { case 0: return &v.state case 1: @@ -3732,7 +3818,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDefaultWorkspaceImageResponse); i { + switch v := v.(*GetDefaultWorkspaceImageRequest); i { case 0: return &v.state case 1: @@ -3744,7 +3830,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_GitProvider); i { + switch v := v.(*GetDefaultWorkspaceImageResponse); i { case 0: return &v.state case 1: @@ -3756,7 +3842,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Repository); i { + switch v := v.(*WorkspaceContext_GitProvider); i { case 0: return &v.state case 1: @@ -3768,7 +3854,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Git); i { + switch v := v.(*WorkspaceContext_Repository); i { case 0: return &v.state case 1: @@ -3780,7 +3866,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Prebuild); i { + switch v := v.(*WorkspaceContext_Git); i { case 0: return &v.state case 1: @@ -3792,7 +3878,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Snapshot); i { + switch v := v.(*WorkspaceContext_Prebuild); i { case 0: return &v.state case 1: @@ -3804,6 +3890,18 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkspaceContext_Snapshot); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_gitpod_experimental_v1_workspaces_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WorkspaceInstanceStatus_Conditions); i { case 0: return &v.state @@ -3820,20 +3918,20 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { (*CreateAndStartWorkspaceRequest_ContextUrl)(nil), (*CreateAndStartWorkspaceRequest_PrebuildId)(nil), } - file_gitpod_experimental_v1_workspaces_proto_msgTypes[20].OneofWrappers = []interface{}{ + file_gitpod_experimental_v1_workspaces_proto_msgTypes[21].OneofWrappers = []interface{}{ (*WorkspaceContext_Git_)(nil), (*WorkspaceContext_Prebuild_)(nil), (*WorkspaceContext_Snapshot_)(nil), } - file_gitpod_experimental_v1_workspaces_proto_msgTypes[31].OneofWrappers = []interface{}{} - file_gitpod_experimental_v1_workspaces_proto_msgTypes[38].OneofWrappers = []interface{}{} + file_gitpod_experimental_v1_workspaces_proto_msgTypes[32].OneofWrappers = []interface{}{} + file_gitpod_experimental_v1_workspaces_proto_msgTypes[39].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_gitpod_experimental_v1_workspaces_proto_rawDesc, NumEnums: 5, - NumMessages: 39, + NumMessages: 40, NumExtensions: 0, NumServices: 1, }, diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java index e659e4191b3ae9..58eab7b884af0b 100644 --- a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java @@ -11835,6 +11835,33 @@ public interface WorkspaceOrBuilder extends * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; */ io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getStatusOrBuilder(); + + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + boolean hasEditor(); + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + * @return The editor. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getEditor(); + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder getEditorOrBuilder(); } /** *
@@ -12146,6 +12173,44 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder g
       return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_;
     }
 
+    public static final int EDITOR_FIELD_NUMBER = 7;
+    private io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference editor_;
+    /**
+     * 
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + @java.lang.Override + public boolean hasEditor() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + * @return The editor. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getEditor() { + return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; + } + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder getEditorOrBuilder() { + return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12178,6 +12243,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getStatus()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getEditor()); + } getUnknownFields().writeTo(output); } @@ -12207,6 +12275,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getStatus()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getEditor()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12240,6 +12312,11 @@ public boolean equals(final java.lang.Object obj) { if (!getStatus() .equals(other.getStatus())) return false; } + if (hasEditor() != other.hasEditor()) return false; + if (hasEditor()) { + if (!getEditor() + .equals(other.getEditor())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12267,6 +12344,10 @@ public int hashCode() { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } + if (hasEditor()) { + hash = (37 * hash) + EDITOR_FIELD_NUMBER; + hash = (53 * hash) + getEditor().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -12403,6 +12484,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { getContextFieldBuilder(); getStatusFieldBuilder(); + getEditorFieldBuilder(); } } @java.lang.Override @@ -12423,6 +12505,11 @@ public Builder clear() { statusBuilder_.dispose(); statusBuilder_ = null; } + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } return this; } @@ -12481,6 +12568,12 @@ private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.Worksp : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.editor_ = editorBuilder_ == null + ? editor_ + : editorBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -12522,6 +12615,9 @@ public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.Workspac if (other.hasStatus()) { mergeStatus(other.getStatus()); } + if (other.hasEditor()) { + mergeEditor(other.getEditor()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -12582,6 +12678,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: { + input.readMessage( + getEditorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -13032,272 +13135,1185 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder return contextBuilder_; } - private java.lang.Object description_ = ""; + private java.lang.Object description_ = ""; + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * description is a human readable description of the workspace
+       * 
+ * + * string description = 5 [json_name = "description"]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> statusBuilder_; + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * status is the current status of this Workspace.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference editor_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder> editorBuilder_; + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + public boolean hasEditor() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + * @return The editor. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getEditor() { + if (editorBuilder_ == null) { + return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; + } else { + return editorBuilder_.getMessage(); + } + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + public Builder setEditor(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference value) { + if (editorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editor_ = value; + } else { + editorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + public Builder setEditor( + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder builderForValue) { + if (editorBuilder_ == null) { + editor_ = builderForValue.build(); + } else { + editorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + public Builder mergeEditor(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference value) { + if (editorBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + editor_ != null && + editor_ != io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance()) { + getEditorBuilder().mergeFrom(value); + } else { + editor_ = value; + } + } else { + editorBuilder_.mergeFrom(value); + } + if (editor_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + public Builder clearEditor() { + bitField0_ = (bitField0_ & ~0x00000040); + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder getEditorBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEditorFieldBuilder().getBuilder(); + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder getEditorOrBuilder() { + if (editorBuilder_ != null) { + return editorBuilder_.getMessageOrBuilder(); + } else { + return editor_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; + } + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder> + getEditorFieldBuilder() { + if (editorBuilder_ == null) { + editorBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder>( + getEditor(), + getParentForChildren(), + isClean()); + editor_ = null; + } + return editorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Workspace) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.Workspace) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.Workspace DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.Workspace(); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workspace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EditorReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.EditorReference) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string version = 2 [json_name = "version"]; + * @return The version. + */ + java.lang.String getVersion(); + /** + * string version = 2 [json_name = "version"]; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * prefer_toolbox indicates whether the editor should be launched with the
+     * JetBrains Toolbox instead of JetBrains Gateway
+     * 
+ * + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @return The preferToolbox. + */ + boolean getPreferToolbox(); + } + /** + * Protobuf type {@code gitpod.experimental.v1.EditorReference} + */ + public static final class EditorReference extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.EditorReference) + EditorReferenceOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + EditorReference.class.getName()); + } + // Use EditorReference.newBuilder() to construct. + private EditorReference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private EditorReference() { + name_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.class, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * string version = 2 [json_name = "version"]; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * string version = 2 [json_name = "version"]; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREFER_TOOLBOX_FIELD_NUMBER = 3; + private boolean preferToolbox_ = false; + /** + *
+     * prefer_toolbox indicates whether the editor should be launched with the
+     * JetBrains Toolbox instead of JetBrains Gateway
+     * 
+ * + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @return The preferToolbox. + */ + @java.lang.Override + public boolean getPreferToolbox() { + return preferToolbox_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); + } + if (preferToolbox_ != false) { + output.writeBool(3, preferToolbox_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); + } + if (preferToolbox_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, preferToolbox_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference other = (io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (getPreferToolbox() + != other.getPreferToolbox()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + PREFER_TOOLBOX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreferToolbox()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code gitpod.experimental.v1.EditorReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.EditorReference) + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.class, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = ""; + preferToolbox_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference build() { + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference result = new io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.preferToolbox_ = preferToolbox_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPreferToolbox() != false) { + setPreferToolbox(other.getPreferToolbox()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + preferToolbox_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; /** - *
-       * description is a human readable description of the workspace
-       * 
- * - * string description = 5 [json_name = "description"]; - * @return The description. + * string name = 1 [json_name = "name"]; + * @return The name. */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; + 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(); - description_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-       * description is a human readable description of the workspace
-       * 
- * - * string description = 5 [json_name = "description"]; - * @return The bytes for description. + * string name = 1 [json_name = "name"]; + * @return The bytes for name. */ public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - description_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-       * description is a human readable description of the workspace
-       * 
- * - * string description = 5 [json_name = "description"]; - * @param value The description to set. + * string name = 1 [json_name = "name"]; + * @param value The name to set. * @return This builder for chaining. */ - public Builder setDescription( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000010; + name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - *
-       * description is a human readable description of the workspace
-       * 
- * - * string description = 5 [json_name = "description"]; + * string name = 1 [json_name = "name"]; * @return This builder for chaining. */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - *
-       * description is a human readable description of the workspace
-       * 
- * - * string description = 5 [json_name = "description"]; - * @param value The bytes for description to set. + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( + public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000010; + name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus status_; - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> statusBuilder_; - /** - *
-       * status is the current status of this Workspace.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000020) != 0); - } + private java.lang.Object version_ = ""; /** - *
-       * status is the current status of this Workspace.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; - * @return The status. + * string version = 2 [json_name = "version"]; + * @return The version. */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; } else { - return statusBuilder_.getMessage(); + return (java.lang.String) ref; } } /** - *
-       * status is the current status of this Workspace.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * string version = 2 [json_name = "version"]; + * @return The bytes for version. */ - public Builder setStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; } else { - statusBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000020; - onChanged(); - return this; } /** - *
-       * status is the current status of this Workspace.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * string version = 2 [json_name = "version"]; + * @param value The version to set. + * @return This builder for chaining. */ - public Builder setStatus( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - *
-       * status is the current status of this Workspace.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * string version = 2 [json_name = "version"]; + * @return This builder for chaining. */ - public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus value) { - if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - status_ != null && - status_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance()) { - getStatusBuilder().mergeFrom(value); - } else { - status_ = value; - } - } else { - statusBuilder_.mergeFrom(value); - } - if (status_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); return this; } /** - *
-       * status is the current status of this Workspace.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * string version = 2 [json_name = "version"]; + * @param value The bytes for version to set. + * @return This builder for chaining. */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000020); - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } + + private boolean preferToolbox_ ; /** *
-       * status is the current status of this Workspace.
+       * prefer_toolbox indicates whether the editor should be launched with the
+       * JetBrains Toolbox instead of JetBrains Gateway
        * 
* - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @return The preferToolbox. */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getStatusFieldBuilder().getBuilder(); + @java.lang.Override + public boolean getPreferToolbox() { + return preferToolbox_; } /** *
-       * status is the current status of this Workspace.
+       * prefer_toolbox indicates whether the editor should be launched with the
+       * JetBrains Toolbox instead of JetBrains Gateway
        * 
* - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @param value The preferToolbox to set. + * @return This builder for chaining. */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null ? - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_; - } + public Builder setPreferToolbox(boolean value) { + + preferToolbox_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** *
-       * status is the current status of this Workspace.
+       * prefer_toolbox indicates whether the editor should be launched with the
+       * JetBrains Toolbox instead of JetBrains Gateway
        * 
* - * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); - status_ = null; - } - return statusBuilder_; + public Builder clearPreferToolbox() { + bitField0_ = (bitField0_ & ~0x00000004); + preferToolbox_ = false; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Workspace) + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.EditorReference) } - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.Workspace) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.Workspace DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.EditorReference) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.Workspace(); + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstance() { + public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Workspace parsePartialFrom( + public EditorReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13316,17 +14332,17 @@ public Workspace parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstanceForType() { + public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -32595,6 +33611,11 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_EditorReference_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; private static final @@ -32754,149 +33775,154 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe "sponse\"\035\n\033ListWorkspaceClassesRequest\"^\n" + "\034ListWorkspaceClassesResponse\022>\n\006result\030" + "\001 \003(\0132&.gitpod.experimental.v1.Workspace" + - "ClassR\006result\"\217\002\n\tWorkspace\022!\n\014workspace" + + "ClassR\006result\"\320\002\n\tWorkspace\022!\n\014workspace" + "_id\030\001 \001(\tR\013workspaceId\022\031\n\010owner_id\030\002 \001(\t" + "R\007ownerId\022\035\n\nproject_id\030\003 \001(\tR\tprojectId" + "\022B\n\007context\030\004 \001(\0132(.gitpod.experimental." + "v1.WorkspaceContextR\007context\022 \n\013descript" + "ion\030\005 \001(\tR\013description\022?\n\006status\030\006 \001(\0132\'" + ".gitpod.experimental.v1.WorkspaceStatusR" + - "\006status\"X\n\017WorkspaceStatus\022E\n\010instance\030\001" + - " \001(\0132).gitpod.experimental.v1.WorkspaceI" + - "nstanceR\010instance\"\262\006\n\020WorkspaceContext\022\037" + - "\n\013context_url\030\001 \001(\tR\ncontextUrl\022@\n\003git\030\002" + - " \001(\0132,.gitpod.experimental.v1.WorkspaceC" + - "ontext.GitH\000R\003git\022O\n\010prebuild\030\003 \001(\01321.gi" + - "tpod.experimental.v1.WorkspaceContext.Pr" + - "ebuildH\000R\010prebuild\022O\n\010snapshot\030\004 \001(\01321.g" + - "itpod.experimental.v1.WorkspaceContext.S" + - "napshotH\000R\010snapshot\032=\n\013GitProvider\022\022\n\004ty" + - "pe\030\001 \001(\tR\004type\022\032\n\010hostname\030\002 \001(\tR\010hostna" + - "me\0326\n\nRepository\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005" + - "owner\030\002 \001(\tR\005owner\032\342\001\n\003Git\0224\n\026normalized" + - "_context_url\030\001 \001(\tR\024normalizedContextUrl" + - "\022S\n\nrepository\030\002 \001(\01323.gitpod.experiment" + - "al.v1.WorkspaceContext.RepositoryR\nrepos" + - "itory\022P\n\010provider\030\003 \001(\01324.gitpod.experim" + - "ental.v1.WorkspaceContext.GitProviderR\010p" + - "rovider\032\204\001\n\010Prebuild\022W\n\020original_context" + - "\030\001 \001(\0132,.gitpod.experimental.v1.Workspac" + - "eContext.GitR\017originalContext\022\037\n\013prebuil" + - "d_id\030\002 \001(\tR\nprebuildId\032+\n\010Snapshot\022\037\n\013sn" + - "apshot_id\030\001 \001(\tR\nsnapshotIdB\t\n\007details\"\333" + - "\001\n\021WorkspaceInstance\022\037\n\013instance_id\030\001 \001(" + - "\tR\ninstanceId\022!\n\014workspace_id\030\002 \001(\tR\013wor" + - "kspaceId\0229\n\ncreated_at\030\003 \001(\0132\032.google.pr" + - "otobuf.TimestampR\tcreatedAt\022G\n\006status\030\004 " + - "\001(\0132/.gitpod.experimental.v1.WorkspaceIn" + - "stanceStatusR\006status\"\253\007\n\027WorkspaceInstan" + - "ceStatus\022%\n\016status_version\030\001 \001(\004R\rstatus" + - "Version\022K\n\005phase\030\002 \001(\01625.gitpod.experime" + - "ntal.v1.WorkspaceInstanceStatus.PhaseR\005p" + - "hase\022Z\n\nconditions\030\003 \001(\0132:.gitpod.experi" + - "mental.v1.WorkspaceInstanceStatus.Condit" + - "ionsR\nconditions\022\030\n\007message\030\004 \001(\tR\007messa" + - "ge\022\020\n\003url\030\005 \001(\tR\003url\022D\n\tadmission\030\006 \001(\0162" + - "&.gitpod.experimental.v1.AdmissionLevelR" + - "\tadmission\0222\n\005ports\030\007 \003(\0132\034.gitpod.exper" + - "imental.v1.PortR\005ports\022%\n\016recent_folders" + - "\030\010 \003(\tR\rrecentFolders\022@\n\ngit_status\030\t \001(" + - "\0132!.gitpod.experimental.v1.GitStatusR\tgi" + - "tStatus\032\324\001\n\nConditions\022\026\n\006failed\030\001 \001(\tR\006" + - "failed\022\030\n\007timeout\030\002 \001(\tR\007timeout\022J\n\023firs" + - "t_user_activity\030\t \001(\0132\032.google.protobuf." + - "TimestampR\021firstUserActivity\0221\n\022stopped_" + - "by_request\030\013 \001(\010H\000R\020stoppedByRequest\210\001\001B" + - "\025\n\023_stopped_by_request\"\331\001\n\005Phase\022\025\n\021PHAS" + - "E_UNSPECIFIED\020\000\022\023\n\017PHASE_PREPARING\020\001\022\024\n\020" + - "PHASE_IMAGEBUILD\020\002\022\021\n\rPHASE_PENDING\020\003\022\022\n" + - "\016PHASE_CREATING\020\004\022\026\n\022PHASE_INITIALIZING\020" + - "\005\022\021\n\rPHASE_RUNNING\020\006\022\025\n\021PHASE_INTERRUPTE" + - "D\020\007\022\022\n\016PHASE_STOPPING\020\010\022\021\n\rPHASE_STOPPED" + - "\020\t\"\252\001\n\004Port\022\022\n\004port\030\001 \001(\004R\004port\022:\n\006polic" + + "\006status\022?\n\006editor\030\007 \001(\0132\'.gitpod.experim" + + "ental.v1.EditorReferenceR\006editor\"f\n\017Edit" + + "orReference\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007versi" + + "on\030\002 \001(\tR\007version\022%\n\016prefer_toolbox\030\003 \001(" + + "\010R\rpreferToolbox\"X\n\017WorkspaceStatus\022E\n\010i" + + "nstance\030\001 \001(\0132).gitpod.experimental.v1.W" + + "orkspaceInstanceR\010instance\"\262\006\n\020Workspace" + + "Context\022\037\n\013context_url\030\001 \001(\tR\ncontextUrl" + + "\022@\n\003git\030\002 \001(\0132,.gitpod.experimental.v1.W" + + "orkspaceContext.GitH\000R\003git\022O\n\010prebuild\030\003" + + " \001(\01321.gitpod.experimental.v1.WorkspaceC" + + "ontext.PrebuildH\000R\010prebuild\022O\n\010snapshot\030" + + "\004 \001(\01321.gitpod.experimental.v1.Workspace" + + "Context.SnapshotH\000R\010snapshot\032=\n\013GitProvi" + + "der\022\022\n\004type\030\001 \001(\tR\004type\022\032\n\010hostname\030\002 \001(" + + "\tR\010hostname\0326\n\nRepository\022\022\n\004name\030\001 \001(\tR" + + "\004name\022\024\n\005owner\030\002 \001(\tR\005owner\032\342\001\n\003Git\0224\n\026n" + + "ormalized_context_url\030\001 \001(\tR\024normalizedC" + + "ontextUrl\022S\n\nrepository\030\002 \001(\01323.gitpod.e" + + "xperimental.v1.WorkspaceContext.Reposito" + + "ryR\nrepository\022P\n\010provider\030\003 \001(\01324.gitpo" + + "d.experimental.v1.WorkspaceContext.GitPr" + + "oviderR\010provider\032\204\001\n\010Prebuild\022W\n\020origina" + + "l_context\030\001 \001(\0132,.gitpod.experimental.v1" + + ".WorkspaceContext.GitR\017originalContext\022\037" + + "\n\013prebuild_id\030\002 \001(\tR\nprebuildId\032+\n\010Snaps" + + "hot\022\037\n\013snapshot_id\030\001 \001(\tR\nsnapshotIdB\t\n\007" + + "details\"\333\001\n\021WorkspaceInstance\022\037\n\013instanc" + + "e_id\030\001 \001(\tR\ninstanceId\022!\n\014workspace_id\030\002" + + " \001(\tR\013workspaceId\0229\n\ncreated_at\030\003 \001(\0132\032." + + "google.protobuf.TimestampR\tcreatedAt\022G\n\006" + + "status\030\004 \001(\0132/.gitpod.experimental.v1.Wo" + + "rkspaceInstanceStatusR\006status\"\253\007\n\027Worksp" + + "aceInstanceStatus\022%\n\016status_version\030\001 \001(" + + "\004R\rstatusVersion\022K\n\005phase\030\002 \001(\01625.gitpod" + + ".experimental.v1.WorkspaceInstanceStatus" + + ".PhaseR\005phase\022Z\n\nconditions\030\003 \001(\0132:.gitp" + + "od.experimental.v1.WorkspaceInstanceStat" + + "us.ConditionsR\nconditions\022\030\n\007message\030\004 \001" + + "(\tR\007message\022\020\n\003url\030\005 \001(\tR\003url\022D\n\tadmissi" + + "on\030\006 \001(\0162&.gitpod.experimental.v1.Admiss" + + "ionLevelR\tadmission\0222\n\005ports\030\007 \003(\0132\034.git" + + "pod.experimental.v1.PortR\005ports\022%\n\016recen" + + "t_folders\030\010 \003(\tR\rrecentFolders\022@\n\ngit_st" + + "atus\030\t \001(\0132!.gitpod.experimental.v1.GitS" + + "tatusR\tgitStatus\032\324\001\n\nConditions\022\026\n\006faile" + + "d\030\001 \001(\tR\006failed\022\030\n\007timeout\030\002 \001(\tR\007timeou" + + "t\022J\n\023first_user_activity\030\t \001(\0132\032.google." + + "protobuf.TimestampR\021firstUserActivity\0221\n" + + "\022stopped_by_request\030\013 \001(\010H\000R\020stoppedByRe" + + "quest\210\001\001B\025\n\023_stopped_by_request\"\331\001\n\005Phas" + + "e\022\025\n\021PHASE_UNSPECIFIED\020\000\022\023\n\017PHASE_PREPAR" + + "ING\020\001\022\024\n\020PHASE_IMAGEBUILD\020\002\022\021\n\rPHASE_PEN" + + "DING\020\003\022\022\n\016PHASE_CREATING\020\004\022\026\n\022PHASE_INIT" + + "IALIZING\020\005\022\021\n\rPHASE_RUNNING\020\006\022\025\n\021PHASE_I" + + "NTERRUPTED\020\007\022\022\n\016PHASE_STOPPING\020\010\022\021\n\rPHAS" + + "E_STOPPED\020\t\"\252\001\n\004Port\022\022\n\004port\030\001 \001(\004R\004port" + + "\022:\n\006policy\030\002 \001(\0162\".gitpod.experimental.v" + + "1.PortPolicyR\006policy\022\020\n\003url\030\003 \001(\tR\003url\022@" + + "\n\010protocol\030\004 \001(\0162$.gitpod.experimental.v" + + "1.PortProtocolR\010protocol\"\235\001\n\022StartWorksp" + + "aceSpec\022\'\n\017workspace_class\030\001 \001(\tR\016worksp" + + "aceClass\022F\n\014ide_settings\030\002 \001(\0132#.gitpod." + + "experimental.v1.IDESettingsR\013ideSettings" + + "\022\026\n\006region\030\003 \001(\tR\006region\"\\\n\013IDESettings\022" + + "\037\n\013default_ide\030\001 \001(\tR\ndefaultIde\022,\n\022use_" + + "latest_version\030\002 \001(\010R\020useLatestVersion\"\234" + + "\001\n\010PortSpec\022\022\n\004port\030\001 \001(\004R\004port\022:\n\006polic" + "y\030\002 \001(\0162\".gitpod.experimental.v1.PortPol" + - "icyR\006policy\022\020\n\003url\030\003 \001(\tR\003url\022@\n\010protoco" + - "l\030\004 \001(\0162$.gitpod.experimental.v1.PortPro" + - "tocolR\010protocol\"\235\001\n\022StartWorkspaceSpec\022\'" + - "\n\017workspace_class\030\001 \001(\tR\016workspaceClass\022" + - "F\n\014ide_settings\030\002 \001(\0132#.gitpod.experimen" + - "tal.v1.IDESettingsR\013ideSettings\022\026\n\006regio" + - "n\030\003 \001(\tR\006region\"\\\n\013IDESettings\022\037\n\013defaul" + - "t_ide\030\001 \001(\tR\ndefaultIde\022,\n\022use_latest_ve" + - "rsion\030\002 \001(\010R\020useLatestVersion\"\234\001\n\010PortSp" + - "ec\022\022\n\004port\030\001 \001(\004R\004port\022:\n\006policy\030\002 \001(\0162\"" + - ".gitpod.experimental.v1.PortPolicyR\006poli" + - "cy\022@\n\010protocol\030\003 \001(\0162$.gitpod.experiment" + - "al.v1.PortProtocolR\010protocol\"l\n\021UpdatePo" + - "rtRequest\022!\n\014workspace_id\030\001 \001(\tR\013workspa" + - "ceId\0224\n\004port\030\002 \001(\0132 .gitpod.experimental" + - ".v1.PortSpecR\004port\"\024\n\022UpdatePortResponse" + - "\"\347\002\n\tGitStatus\022\026\n\006branch\030\001 \001(\tR\006branch\022#" + - "\n\rlatest_commit\030\002 \001(\tR\014latestCommit\022)\n\020u" + - "ncommited_files\030\003 \003(\tR\017uncommitedFiles\0224" + - "\n\026total_uncommited_files\030\006 \001(\005R\024totalUnc" + - "ommitedFiles\022\'\n\017untracked_files\030\004 \003(\tR\016u" + - "ntrackedFiles\0222\n\025total_untracked_files\030\007" + - " \001(\005R\023totalUntrackedFiles\022)\n\020unpushed_co" + - "mmits\030\005 \003(\tR\017unpushedCommits\0224\n\026total_un" + - "pushed_commits\030\010 \001(\005R\024totalUnpushedCommi" + - "ts\"\204\001\n\016WorkspaceClass\022\016\n\002id\030\001 \001(\tR\002id\022!\n" + - "\014display_name\030\002 \001(\tR\013displayName\022 \n\013desc" + - "ription\030\003 \001(\tR\013description\022\035\n\nis_default" + - "\030\004 \001(\010R\tisDefault\"Z\n\037GetDefaultWorkspace" + - "ImageRequest\022&\n\014workspace_id\030\001 \001(\tH\000R\013wo" + - "rkspaceId\210\001\001B\017\n\r_workspace_id\"\201\002\n GetDef" + - "aultWorkspaceImageResponse\022\024\n\005image\030\001 \001(" + - "\tR\005image\022\\\n\006source\030\002 \001(\0162D.gitpod.experi" + - "mental.v1.GetDefaultWorkspaceImageRespon" + - "se.ImageSourceR\006source\"i\n\013ImageSource\022\034\n" + - "\030IMAGE_SOURCE_UNSPECIFIED\020\000\022\035\n\031IMAGE_SOU" + - "RCE_INSTALLATION\020\001\022\035\n\031IMAGE_SOURCE_ORGAN" + - "IZATION\020\002*Z\n\nPortPolicy\022\033\n\027PORT_POLICY_U" + - "NSPECIFIED\020\000\022\027\n\023PORT_POLICY_PRIVATE\020\001\022\026\n" + - "\022PORT_POLICY_PUBLIC\020\002*^\n\014PortProtocol\022\035\n" + - "\031PORT_PROTOCOL_UNSPECIFIED\020\000\022\026\n\022PORT_PRO" + - "TOCOL_HTTP\020\001\022\027\n\023PORT_PROTOCOL_HTTPS\020\002*o\n" + - "\016AdmissionLevel\022\037\n\033ADMISSION_LEVEL_UNSPE" + - "CIFIED\020\000\022\036\n\032ADMISSION_LEVEL_OWNER_ONLY\020\001" + - "\022\034\n\030ADMISSION_LEVEL_EVERYONE\020\0022\325\n\n\021Works" + - "pacesService\022q\n\016ListWorkspaces\022-.gitpod." + - "experimental.v1.ListWorkspacesRequest\032.." + - "gitpod.experimental.v1.ListWorkspacesRes" + - "ponse\"\000\022k\n\014GetWorkspace\022+.gitpod.experim" + - "ental.v1.GetWorkspaceRequest\032,.gitpod.ex" + - "perimental.v1.GetWorkspaceResponse\"\000\022\210\001\n" + - "\025StreamWorkspaceStatus\0224.gitpod.experime" + - "ntal.v1.StreamWorkspaceStatusRequest\0325.g" + - "itpod.experimental.v1.StreamWorkspaceSta" + - "tusResponse\"\0000\001\022n\n\rGetOwnerToken\022,.gitpo" + - "d.experimental.v1.GetOwnerTokenRequest\032-" + - ".gitpod.experimental.v1.GetOwnerTokenRes" + - "ponse\"\000\022\214\001\n\027CreateAndStartWorkspace\0226.gi" + - "tpod.experimental.v1.CreateAndStartWorks" + - "paceRequest\0327.gitpod.experimental.v1.Cre" + - "ateAndStartWorkspaceResponse\"\000\022q\n\016StartW" + - "orkspace\022-.gitpod.experimental.v1.StartW" + - "orkspaceRequest\032..gitpod.experimental.v1" + - ".StartWorkspaceResponse\"\000\022n\n\rStopWorkspa" + - "ce\022,.gitpod.experimental.v1.StopWorkspac" + - "eRequest\032-.gitpod.experimental.v1.StopWo" + - "rkspaceResponse\"\000\022t\n\017DeleteWorkspace\022..g" + - "itpod.experimental.v1.DeleteWorkspaceReq" + - "uest\032/.gitpod.experimental.v1.DeleteWork" + - "spaceResponse\"\000\022e\n\nUpdatePort\022).gitpod.e" + - "xperimental.v1.UpdatePortRequest\032*.gitpo" + - "d.experimental.v1.UpdatePortResponse\"\000\022\203" + - "\001\n\024ListWorkspaceClasses\0223.gitpod.experim" + - "ental.v1.ListWorkspaceClassesRequest\0324.g" + - "itpod.experimental.v1.ListWorkspaceClass" + - "esResponse\"\000\022\217\001\n\030GetDefaultWorkspaceImag" + - "e\0227.gitpod.experimental.v1.GetDefaultWor" + - "kspaceImageRequest\0328.gitpod.experimental" + - ".v1.GetDefaultWorkspaceImageResponse\"\000Bk" + - "\n#io.gitpod.publicapi.experimental.v1ZDg" + - "ithub.com/gitpod-io/gitpod/components/pu" + - "blic-api/go/experimental/v1b\006proto3" + "icyR\006policy\022@\n\010protocol\030\003 \001(\0162$.gitpod.e" + + "xperimental.v1.PortProtocolR\010protocol\"l\n" + + "\021UpdatePortRequest\022!\n\014workspace_id\030\001 \001(\t" + + "R\013workspaceId\0224\n\004port\030\002 \001(\0132 .gitpod.exp" + + "erimental.v1.PortSpecR\004port\"\024\n\022UpdatePor" + + "tResponse\"\347\002\n\tGitStatus\022\026\n\006branch\030\001 \001(\tR" + + "\006branch\022#\n\rlatest_commit\030\002 \001(\tR\014latestCo" + + "mmit\022)\n\020uncommited_files\030\003 \003(\tR\017uncommit" + + "edFiles\0224\n\026total_uncommited_files\030\006 \001(\005R" + + "\024totalUncommitedFiles\022\'\n\017untracked_files" + + "\030\004 \003(\tR\016untrackedFiles\0222\n\025total_untracke" + + "d_files\030\007 \001(\005R\023totalUntrackedFiles\022)\n\020un" + + "pushed_commits\030\005 \003(\tR\017unpushedCommits\0224\n" + + "\026total_unpushed_commits\030\010 \001(\005R\024totalUnpu" + + "shedCommits\"\204\001\n\016WorkspaceClass\022\016\n\002id\030\001 \001" + + "(\tR\002id\022!\n\014display_name\030\002 \001(\tR\013displayNam" + + "e\022 \n\013description\030\003 \001(\tR\013description\022\035\n\ni" + + "s_default\030\004 \001(\010R\tisDefault\"Z\n\037GetDefault" + + "WorkspaceImageRequest\022&\n\014workspace_id\030\001 " + + "\001(\tH\000R\013workspaceId\210\001\001B\017\n\r_workspace_id\"\201" + + "\002\n GetDefaultWorkspaceImageResponse\022\024\n\005i" + + "mage\030\001 \001(\tR\005image\022\\\n\006source\030\002 \001(\0162D.gitp" + + "od.experimental.v1.GetDefaultWorkspaceIm" + + "ageResponse.ImageSourceR\006source\"i\n\013Image" + + "Source\022\034\n\030IMAGE_SOURCE_UNSPECIFIED\020\000\022\035\n\031" + + "IMAGE_SOURCE_INSTALLATION\020\001\022\035\n\031IMAGE_SOU" + + "RCE_ORGANIZATION\020\002*Z\n\nPortPolicy\022\033\n\027PORT" + + "_POLICY_UNSPECIFIED\020\000\022\027\n\023PORT_POLICY_PRI" + + "VATE\020\001\022\026\n\022PORT_POLICY_PUBLIC\020\002*^\n\014PortPr" + + "otocol\022\035\n\031PORT_PROTOCOL_UNSPECIFIED\020\000\022\026\n" + + "\022PORT_PROTOCOL_HTTP\020\001\022\027\n\023PORT_PROTOCOL_H" + + "TTPS\020\002*o\n\016AdmissionLevel\022\037\n\033ADMISSION_LE" + + "VEL_UNSPECIFIED\020\000\022\036\n\032ADMISSION_LEVEL_OWN" + + "ER_ONLY\020\001\022\034\n\030ADMISSION_LEVEL_EVERYONE\020\0022" + + "\325\n\n\021WorkspacesService\022q\n\016ListWorkspaces\022" + + "-.gitpod.experimental.v1.ListWorkspacesR" + + "equest\032..gitpod.experimental.v1.ListWork" + + "spacesResponse\"\000\022k\n\014GetWorkspace\022+.gitpo" + + "d.experimental.v1.GetWorkspaceRequest\032,." + + "gitpod.experimental.v1.GetWorkspaceRespo" + + "nse\"\000\022\210\001\n\025StreamWorkspaceStatus\0224.gitpod" + + ".experimental.v1.StreamWorkspaceStatusRe" + + "quest\0325.gitpod.experimental.v1.StreamWor" + + "kspaceStatusResponse\"\0000\001\022n\n\rGetOwnerToke" + + "n\022,.gitpod.experimental.v1.GetOwnerToken" + + "Request\032-.gitpod.experimental.v1.GetOwne" + + "rTokenResponse\"\000\022\214\001\n\027CreateAndStartWorks" + + "pace\0226.gitpod.experimental.v1.CreateAndS" + + "tartWorkspaceRequest\0327.gitpod.experiment" + + "al.v1.CreateAndStartWorkspaceResponse\"\000\022" + + "q\n\016StartWorkspace\022-.gitpod.experimental." + + "v1.StartWorkspaceRequest\032..gitpod.experi" + + "mental.v1.StartWorkspaceResponse\"\000\022n\n\rSt" + + "opWorkspace\022,.gitpod.experimental.v1.Sto" + + "pWorkspaceRequest\032-.gitpod.experimental." + + "v1.StopWorkspaceResponse\"\000\022t\n\017DeleteWork" + + "space\022..gitpod.experimental.v1.DeleteWor" + + "kspaceRequest\032/.gitpod.experimental.v1.D" + + "eleteWorkspaceResponse\"\000\022e\n\nUpdatePort\022)" + + ".gitpod.experimental.v1.UpdatePortReques" + + "t\032*.gitpod.experimental.v1.UpdatePortRes" + + "ponse\"\000\022\203\001\n\024ListWorkspaceClasses\0223.gitpo" + + "d.experimental.v1.ListWorkspaceClassesRe" + + "quest\0324.gitpod.experimental.v1.ListWorks" + + "paceClassesResponse\"\000\022\217\001\n\030GetDefaultWork" + + "spaceImage\0227.gitpod.experimental.v1.GetD" + + "efaultWorkspaceImageRequest\0328.gitpod.exp" + + "erimental.v1.GetDefaultWorkspaceImageRes" + + "ponse\"\000Bk\n#io.gitpod.publicapi.experimen" + + "tal.v1ZDgithub.com/gitpod-io/gitpod/comp" + + "onents/public-api/go/experimental/v1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -33018,15 +34044,21 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_Workspace_descriptor, - new java.lang.String[] { "WorkspaceId", "OwnerId", "ProjectId", "Context", "Description", "Status", }); - internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor = + new java.lang.String[] { "WorkspaceId", "OwnerId", "ProjectId", "Context", "Description", "Status", "Editor", }); + internal_static_gitpod_experimental_v1_EditorReference_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_EditorReference_descriptor, + new java.lang.String[] { "Name", "Version", "PreferToolbox", }); + internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor = + getDescriptor().getMessageTypes().get(20); internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor, new java.lang.String[] { "Instance", }); internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor, @@ -33062,13 +34094,13 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor, new java.lang.String[] { "SnapshotId", }); internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor, new java.lang.String[] { "InstanceId", "WorkspaceId", "CreatedAt", "Status", }); internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor, @@ -33080,61 +34112,61 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor, new java.lang.String[] { "Failed", "Timeout", "FirstUserActivity", "StoppedByRequest", }); internal_static_gitpod_experimental_v1_Port_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_gitpod_experimental_v1_Port_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_Port_descriptor, new java.lang.String[] { "Port", "Policy", "Url", "Protocol", }); internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_gitpod_experimental_v1_StartWorkspaceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor, new java.lang.String[] { "WorkspaceClass", "IdeSettings", "Region", }); internal_static_gitpod_experimental_v1_IDESettings_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_gitpod_experimental_v1_IDESettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_IDESettings_descriptor, new java.lang.String[] { "DefaultIde", "UseLatestVersion", }); internal_static_gitpod_experimental_v1_PortSpec_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_gitpod_experimental_v1_PortSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_PortSpec_descriptor, new java.lang.String[] { "Port", "Policy", "Protocol", }); internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_gitpod_experimental_v1_UpdatePortRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor, new java.lang.String[] { "WorkspaceId", "Port", }); internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_gitpod_experimental_v1_UpdatePortResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor, new java.lang.String[] { }); internal_static_gitpod_experimental_v1_GitStatus_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_gitpod_experimental_v1_GitStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_GitStatus_descriptor, new java.lang.String[] { "Branch", "LatestCommit", "UncommitedFiles", "TotalUncommitedFiles", "UntrackedFiles", "TotalUntrackedFiles", "UnpushedCommits", "TotalUnpushedCommits", }); internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_gitpod_experimental_v1_WorkspaceClass_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor, new java.lang.String[] { "Id", "DisplayName", "Description", "IsDefault", }); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor, new java.lang.String[] { "WorkspaceId", }); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor, diff --git a/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts b/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts index 51c7432f3f29fc..5963a74a01009f 100644 --- a/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts +++ b/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts @@ -884,6 +884,13 @@ export class Workspace extends Message { */ status?: WorkspaceStatus; + /** + * editor is the editor to be used in this workspace + * + * @generated from field: gitpod.experimental.v1.EditorReference editor = 7; + */ + editor?: EditorReference; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -898,6 +905,7 @@ export class Workspace extends Message { { no: 4, name: "context", kind: "message", T: WorkspaceContext }, { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "status", kind: "message", T: WorkspaceStatus }, + { no: 7, name: "editor", kind: "message", T: EditorReference }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Workspace { @@ -917,6 +925,58 @@ export class Workspace extends Message { } } +/** + * @generated from message gitpod.experimental.v1.EditorReference + */ +export class EditorReference extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: string version = 2; + */ + version = ""; + + /** + * prefer_toolbox indicates whether the editor should be launched with the + * JetBrains Toolbox instead of JetBrains Gateway + * + * @generated from field: bool prefer_toolbox = 3; + */ + preferToolbox = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gitpod.experimental.v1.EditorReference"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "prefer_toolbox", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EditorReference { + return new EditorReference().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EditorReference { + return new EditorReference().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EditorReference { + return new EditorReference().fromJsonString(jsonString, options); + } + + static equals(a: EditorReference | PlainMessage | undefined, b: EditorReference | PlainMessage | undefined): boolean { + return proto3.util.equals(EditorReference, a, b); + } +} + /** * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace. * From 0c10538230c8c97b715d7b59200e84121700d4c5 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 19:47:46 +0000 Subject: [PATCH 3/9] protocol update --- components/gitpod-protocol/go/gitpod-service.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/gitpod-protocol/go/gitpod-service.go b/components/gitpod-protocol/go/gitpod-service.go index 9f1711422fac3f..748573e2fbce26 100644 --- a/components/gitpod-protocol/go/gitpod-service.go +++ b/components/gitpod-protocol/go/gitpod-service.go @@ -1765,8 +1765,16 @@ type WorkspaceInstanceConditions struct { // WorkspaceInstanceConfiguration is the WorkspaceInstanceConfiguration message type type WorkspaceInstanceConfiguration struct { - FeatureFlags []string `json:"featureFlags,omitempty"` - TheiaVersion string `json:"theiaVersion,omitempty"` + FeatureFlags []string `json:"featureFlags,omitempty"` + TheiaVersion string `json:"theiaVersion,omitempty"` + IDEConfig *WorkspaceInstanceIDEConfig `json:"ideConfig,omitempty"` +} + +// WorkspaceInstanceIDEConfig is the ide config information of a workspace instance +type WorkspaceInstanceIDEConfig struct { + UseLatest bool `json:"useLatest,omitempty"` + IDE string `json:"ide,omitempty"` + PreferToolbox bool `json:"preferToolbox,omitempty"` } // WorkspaceInstanceRepoStatus is the WorkspaceInstanceRepoStatus message type From d3b34796af67b1c4505c8dd693d9bb218c8c3834 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 19:47:59 +0000 Subject: [PATCH 4/9] convert ide config --- .../public-api-server/pkg/apiv1/workspace.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/components/public-api-server/pkg/apiv1/workspace.go b/components/public-api-server/pkg/apiv1/workspace.go index d64136194d36b2..ca073c2aaac606 100644 --- a/components/public-api-server/pkg/apiv1/workspace.go +++ b/components/public-api-server/pkg/apiv1/workspace.go @@ -427,6 +427,7 @@ func convertWorkspaceInfo(input *protocol.WorkspaceInfo) (*v1.Workspace, error) }, }}, }, + Editor: convertIdeConfig(input.LatestInstance.Configuration.IDEConfig), Description: input.Workspace.Description, Status: &v1.WorkspaceStatus{ Instance: instance, @@ -434,6 +435,21 @@ func convertWorkspaceInfo(input *protocol.WorkspaceInfo) (*v1.Workspace, error) }, nil } +func convertIdeConfig(ideConfig *protocol.WorkspaceInstanceIDEConfig) *v1.EditorReference { + if ideConfig == nil { + return nil + } + ideVersion := "stable" + if ideConfig.UseLatest { + ideVersion = "stable" + } + return &v1.EditorReference{ + Name: ideConfig.IDE, + Version: ideVersion, + PreferToolbox: ideConfig.PreferToolbox, + } +} + func convertWorkspaceInstance(wsi *protocol.WorkspaceInstance, wsCtx *protocol.WorkspaceContext, config *protocol.WorkspaceConfig, shareable bool) (*v1.WorkspaceInstance, error) { if wsi == nil { return nil, nil From 508d4481116831a24995541c60114c561db5214d Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 20:41:09 +0000 Subject: [PATCH 5/9] proto def +1 --- .../gitpod/experimental/v1/workspaces.proto | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/components/public-api/gitpod/experimental/v1/workspaces.proto b/components/public-api/gitpod/experimental/v1/workspaces.proto index 002bb472e8ede3..2737290a5b2d3b 100644 --- a/components/public-api/gitpod/experimental/v1/workspaces.proto +++ b/components/public-api/gitpod/experimental/v1/workspaces.proto @@ -153,18 +153,6 @@ message Workspace { // status is the current status of this Workspace. WorkspaceStatus status = 6; - - // editor is the editor to be used in this workspace - EditorReference editor = 7; -} - -message EditorReference { - string name = 1; - string version = 2; - - // prefer_toolbox indicates whether the editor should be launched with the - // JetBrains Toolbox instead of JetBrains Gateway - bool prefer_toolbox = 3; } // WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace. @@ -302,6 +290,15 @@ message WorkspaceInstanceStatus { optional bool stopped_by_request = 11; } + message EditorReference { + string name = 1; + string version = 2; + + // prefer_toolbox indicates whether the editor should be launched with the + // JetBrains Toolbox instead of JetBrains Gateway + bool prefer_toolbox = 3; + } + // 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 @@ -334,6 +331,9 @@ message WorkspaceInstanceStatus { // Note: this is a best-effort field and more often than not will not be present. Its absence does not // indicate the absence of a working copy. GitStatus git_status = 9; + + // editor is the editor to be used in this workspace + EditorReference editor = 10; } // PortPolicy defines the accssbility policy of a workspace port is guarded by an authentication in the proxy From 5292274d7181e0079ea1d5d883707c124b8d4c70 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 20:41:20 +0000 Subject: [PATCH 6/9] proto gen +1 --- .../go/experimental/v1/workspaces.pb.go | 1068 +- .../publicapi/experimental/v1/Workspaces.java | 13604 ++++++++-------- .../gitpod/experimental/v1/workspaces_pb.ts | 120 +- 3 files changed, 7397 insertions(+), 7395 deletions(-) diff --git a/components/public-api/go/experimental/v1/workspaces.pb.go b/components/public-api/go/experimental/v1/workspaces.pb.go index 5d55f29deaae53..89bac10a82e076 100644 --- a/components/public-api/go/experimental/v1/workspaces.pb.go +++ b/components/public-api/go/experimental/v1/workspaces.pb.go @@ -272,7 +272,7 @@ func (x WorkspaceInstanceStatus_Phase) Number() protoreflect.EnumNumber { // Deprecated: Use WorkspaceInstanceStatus_Phase.Descriptor instead. func (WorkspaceInstanceStatus_Phase) EnumDescriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22, 0} } type GetDefaultWorkspaceImageResponse_ImageSource int32 @@ -323,7 +323,7 @@ func (x GetDefaultWorkspaceImageResponse_ImageSource) Number() protoreflect.Enum // Deprecated: Use GetDefaultWorkspaceImageResponse_ImageSource.Descriptor instead. func (GetDefaultWorkspaceImageResponse_ImageSource) EnumDescriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{33, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{32, 0} } type ListWorkspacesRequest struct { @@ -1286,8 +1286,6 @@ type Workspace struct { Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // status is the current status of this Workspace. Status *WorkspaceStatus `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` - // editor is the editor to be used in this workspace - Editor *EditorReference `protobuf:"bytes,7,opt,name=editor,proto3" json:"editor,omitempty"` } func (x *Workspace) Reset() { @@ -1364,78 +1362,6 @@ func (x *Workspace) GetStatus() *WorkspaceStatus { return nil } -func (x *Workspace) GetEditor() *EditorReference { - if x != nil { - return x.Editor - } - return nil -} - -type EditorReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - // prefer_toolbox indicates whether the editor should be launched with the - // JetBrains Toolbox instead of JetBrains Gateway - PreferToolbox bool `protobuf:"varint,3,opt,name=prefer_toolbox,json=preferToolbox,proto3" json:"prefer_toolbox,omitempty"` -} - -func (x *EditorReference) Reset() { - *x = EditorReference{} - if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EditorReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EditorReference) ProtoMessage() {} - -func (x *EditorReference) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EditorReference.ProtoReflect.Descriptor instead. -func (*EditorReference) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{19} -} - -func (x *EditorReference) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *EditorReference) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *EditorReference) GetPreferToolbox() bool { - if x != nil { - return x.PreferToolbox - } - return false -} - // WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace. type WorkspaceStatus struct { state protoimpl.MessageState @@ -1449,7 +1375,7 @@ type WorkspaceStatus struct { func (x *WorkspaceStatus) Reset() { *x = WorkspaceStatus{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1462,7 +1388,7 @@ func (x *WorkspaceStatus) String() string { func (*WorkspaceStatus) ProtoMessage() {} func (x *WorkspaceStatus) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1475,7 +1401,7 @@ func (x *WorkspaceStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceStatus.ProtoReflect.Descriptor instead. func (*WorkspaceStatus) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{19} } func (x *WorkspaceStatus) GetInstance() *WorkspaceInstance { @@ -1505,7 +1431,7 @@ type WorkspaceContext struct { func (x *WorkspaceContext) Reset() { *x = WorkspaceContext{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1518,7 +1444,7 @@ func (x *WorkspaceContext) String() string { func (*WorkspaceContext) ProtoMessage() {} func (x *WorkspaceContext) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1531,7 +1457,7 @@ func (x *WorkspaceContext) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext.ProtoReflect.Descriptor instead. func (*WorkspaceContext) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20} } func (x *WorkspaceContext) GetContextUrl() string { @@ -1608,7 +1534,7 @@ type WorkspaceInstance struct { func (x *WorkspaceInstance) Reset() { *x = WorkspaceInstance{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1621,7 +1547,7 @@ func (x *WorkspaceInstance) String() string { func (*WorkspaceInstance) ProtoMessage() {} func (x *WorkspaceInstance) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1634,7 +1560,7 @@ func (x *WorkspaceInstance) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceInstance.ProtoReflect.Descriptor instead. func (*WorkspaceInstance) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21} } func (x *WorkspaceInstance) GetInstanceId() string { @@ -1695,12 +1621,14 @@ type WorkspaceInstanceStatus struct { // Note: this is a best-effort field and more often than not will not be present. Its absence does not // indicate the absence of a working copy. GitStatus *GitStatus `protobuf:"bytes,9,opt,name=git_status,json=gitStatus,proto3" json:"git_status,omitempty"` + // editor is the editor to be used in this workspace + Editor *WorkspaceInstanceStatus_EditorReference `protobuf:"bytes,10,opt,name=editor,proto3" json:"editor,omitempty"` } func (x *WorkspaceInstanceStatus) Reset() { *x = WorkspaceInstanceStatus{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1713,7 +1641,7 @@ func (x *WorkspaceInstanceStatus) String() string { func (*WorkspaceInstanceStatus) ProtoMessage() {} func (x *WorkspaceInstanceStatus) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1726,7 +1654,7 @@ func (x *WorkspaceInstanceStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceInstanceStatus.ProtoReflect.Descriptor instead. func (*WorkspaceInstanceStatus) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22} } func (x *WorkspaceInstanceStatus) GetStatusVersion() uint64 { @@ -1792,6 +1720,13 @@ func (x *WorkspaceInstanceStatus) GetGitStatus() *GitStatus { return nil } +func (x *WorkspaceInstanceStatus) GetEditor() *WorkspaceInstanceStatus_EditorReference { + if x != nil { + return x.Editor + } + return nil +} + type Port struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1810,7 +1745,7 @@ type Port struct { func (x *Port) Reset() { *x = Port{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1823,7 +1758,7 @@ func (x *Port) String() string { func (*Port) ProtoMessage() {} func (x *Port) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1836,7 +1771,7 @@ func (x *Port) ProtoReflect() protoreflect.Message { // Deprecated: Use Port.ProtoReflect.Descriptor instead. func (*Port) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{24} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23} } func (x *Port) GetPort() uint64 { @@ -1881,7 +1816,7 @@ type StartWorkspaceSpec struct { func (x *StartWorkspaceSpec) Reset() { *x = StartWorkspaceSpec{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1894,7 +1829,7 @@ func (x *StartWorkspaceSpec) String() string { func (*StartWorkspaceSpec) ProtoMessage() {} func (x *StartWorkspaceSpec) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1907,7 +1842,7 @@ func (x *StartWorkspaceSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use StartWorkspaceSpec.ProtoReflect.Descriptor instead. func (*StartWorkspaceSpec) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{25} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{24} } func (x *StartWorkspaceSpec) GetWorkspaceClass() string { @@ -1943,7 +1878,7 @@ type IDESettings struct { func (x *IDESettings) Reset() { *x = IDESettings{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1956,7 +1891,7 @@ func (x *IDESettings) String() string { func (*IDESettings) ProtoMessage() {} func (x *IDESettings) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1969,7 +1904,7 @@ func (x *IDESettings) ProtoReflect() protoreflect.Message { // Deprecated: Use IDESettings.ProtoReflect.Descriptor instead. func (*IDESettings) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{26} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{25} } func (x *IDESettings) GetDefaultIde() string { @@ -2002,7 +1937,7 @@ type PortSpec struct { func (x *PortSpec) Reset() { *x = PortSpec{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2015,7 +1950,7 @@ func (x *PortSpec) String() string { func (*PortSpec) ProtoMessage() {} func (x *PortSpec) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2028,7 +1963,7 @@ func (x *PortSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use PortSpec.ProtoReflect.Descriptor instead. func (*PortSpec) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{27} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{26} } func (x *PortSpec) GetPort() uint64 { @@ -2064,7 +1999,7 @@ type UpdatePortRequest struct { func (x *UpdatePortRequest) Reset() { *x = UpdatePortRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2077,7 +2012,7 @@ func (x *UpdatePortRequest) String() string { func (*UpdatePortRequest) ProtoMessage() {} func (x *UpdatePortRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2090,7 +2025,7 @@ func (x *UpdatePortRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdatePortRequest.ProtoReflect.Descriptor instead. func (*UpdatePortRequest) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{28} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{27} } func (x *UpdatePortRequest) GetWorkspaceId() string { @@ -2116,7 +2051,7 @@ type UpdatePortResponse struct { func (x *UpdatePortResponse) Reset() { *x = UpdatePortResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2129,7 +2064,7 @@ func (x *UpdatePortResponse) String() string { func (*UpdatePortResponse) ProtoMessage() {} func (x *UpdatePortResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2142,7 +2077,7 @@ func (x *UpdatePortResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdatePortResponse.ProtoReflect.Descriptor instead. func (*UpdatePortResponse) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{29} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{28} } // GitStatus describes the current working copy status, akin to a combination of "git status" and "git branch" @@ -2172,7 +2107,7 @@ type GitStatus struct { func (x *GitStatus) Reset() { *x = GitStatus{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2185,7 +2120,7 @@ func (x *GitStatus) String() string { func (*GitStatus) ProtoMessage() {} func (x *GitStatus) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2198,7 +2133,7 @@ func (x *GitStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use GitStatus.ProtoReflect.Descriptor instead. func (*GitStatus) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{30} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{29} } func (x *GitStatus) GetBranch() string { @@ -2275,7 +2210,7 @@ type WorkspaceClass struct { func (x *WorkspaceClass) Reset() { *x = WorkspaceClass{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2288,7 +2223,7 @@ func (x *WorkspaceClass) String() string { func (*WorkspaceClass) ProtoMessage() {} func (x *WorkspaceClass) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2301,7 +2236,7 @@ func (x *WorkspaceClass) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceClass.ProtoReflect.Descriptor instead. func (*WorkspaceClass) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{31} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{30} } func (x *WorkspaceClass) GetId() string { @@ -2343,7 +2278,7 @@ type GetDefaultWorkspaceImageRequest struct { func (x *GetDefaultWorkspaceImageRequest) Reset() { *x = GetDefaultWorkspaceImageRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2356,7 +2291,7 @@ func (x *GetDefaultWorkspaceImageRequest) String() string { func (*GetDefaultWorkspaceImageRequest) ProtoMessage() {} func (x *GetDefaultWorkspaceImageRequest) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2369,7 +2304,7 @@ func (x *GetDefaultWorkspaceImageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDefaultWorkspaceImageRequest.ProtoReflect.Descriptor instead. func (*GetDefaultWorkspaceImageRequest) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{32} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{31} } func (x *GetDefaultWorkspaceImageRequest) GetWorkspaceId() string { @@ -2393,7 +2328,7 @@ type GetDefaultWorkspaceImageResponse struct { func (x *GetDefaultWorkspaceImageResponse) Reset() { *x = GetDefaultWorkspaceImageResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2406,7 +2341,7 @@ func (x *GetDefaultWorkspaceImageResponse) String() string { func (*GetDefaultWorkspaceImageResponse) ProtoMessage() {} func (x *GetDefaultWorkspaceImageResponse) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2419,7 +2354,7 @@ func (x *GetDefaultWorkspaceImageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetDefaultWorkspaceImageResponse.ProtoReflect.Descriptor instead. func (*GetDefaultWorkspaceImageResponse) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{33} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{32} } func (x *GetDefaultWorkspaceImageResponse) GetImage() string { @@ -2451,7 +2386,7 @@ type WorkspaceContext_GitProvider struct { func (x *WorkspaceContext_GitProvider) Reset() { *x = WorkspaceContext_GitProvider{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2464,7 +2399,7 @@ func (x *WorkspaceContext_GitProvider) String() string { func (*WorkspaceContext_GitProvider) ProtoMessage() {} func (x *WorkspaceContext_GitProvider) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2477,7 +2412,7 @@ func (x *WorkspaceContext_GitProvider) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_GitProvider.ProtoReflect.Descriptor instead. func (*WorkspaceContext_GitProvider) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 0} } func (x *WorkspaceContext_GitProvider) GetType() string { @@ -2507,7 +2442,7 @@ type WorkspaceContext_Repository struct { func (x *WorkspaceContext_Repository) Reset() { *x = WorkspaceContext_Repository{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2520,7 +2455,7 @@ func (x *WorkspaceContext_Repository) String() string { func (*WorkspaceContext_Repository) ProtoMessage() {} func (x *WorkspaceContext_Repository) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2533,7 +2468,7 @@ func (x *WorkspaceContext_Repository) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Repository.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Repository) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 1} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 1} } func (x *WorkspaceContext_Repository) GetName() string { @@ -2565,7 +2500,7 @@ type WorkspaceContext_Git struct { func (x *WorkspaceContext_Git) Reset() { *x = WorkspaceContext_Git{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2578,7 +2513,7 @@ func (x *WorkspaceContext_Git) String() string { func (*WorkspaceContext_Git) ProtoMessage() {} func (x *WorkspaceContext_Git) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2591,7 +2526,7 @@ func (x *WorkspaceContext_Git) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Git.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Git) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 2} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 2} } func (x *WorkspaceContext_Git) GetNormalizedContextUrl() string { @@ -2631,7 +2566,7 @@ type WorkspaceContext_Prebuild struct { func (x *WorkspaceContext_Prebuild) Reset() { *x = WorkspaceContext_Prebuild{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2644,7 +2579,7 @@ func (x *WorkspaceContext_Prebuild) String() string { func (*WorkspaceContext_Prebuild) ProtoMessage() {} func (x *WorkspaceContext_Prebuild) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2657,7 +2592,7 @@ func (x *WorkspaceContext_Prebuild) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Prebuild.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Prebuild) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 3} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 3} } func (x *WorkspaceContext_Prebuild) GetOriginalContext() *WorkspaceContext_Git { @@ -2686,7 +2621,7 @@ type WorkspaceContext_Snapshot struct { func (x *WorkspaceContext_Snapshot) Reset() { *x = WorkspaceContext_Snapshot{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2699,7 +2634,7 @@ func (x *WorkspaceContext_Snapshot) String() string { func (*WorkspaceContext_Snapshot) ProtoMessage() {} func (x *WorkspaceContext_Snapshot) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2712,7 +2647,7 @@ func (x *WorkspaceContext_Snapshot) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkspaceContext_Snapshot.ProtoReflect.Descriptor instead. func (*WorkspaceContext_Snapshot) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{21, 4} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{20, 4} } func (x *WorkspaceContext_Snapshot) GetSnapshotId() string { @@ -2743,7 +2678,7 @@ type WorkspaceInstanceStatus_Conditions struct { func (x *WorkspaceInstanceStatus_Conditions) Reset() { *x = WorkspaceInstanceStatus_Conditions{} if protoimpl.UnsafeEnabled { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[39] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2756,7 +2691,7 @@ func (x *WorkspaceInstanceStatus_Conditions) String() string { func (*WorkspaceInstanceStatus_Conditions) ProtoMessage() {} func (x *WorkspaceInstanceStatus_Conditions) ProtoReflect() protoreflect.Message { - mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[39] + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2769,7 +2704,7 @@ func (x *WorkspaceInstanceStatus_Conditions) ProtoReflect() protoreflect.Message // Deprecated: Use WorkspaceInstanceStatus_Conditions.ProtoReflect.Descriptor instead. func (*WorkspaceInstanceStatus_Conditions) Descriptor() ([]byte, []int) { - return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{23, 0} + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22, 0} } func (x *WorkspaceInstanceStatus_Conditions) GetFailed() string { @@ -2800,6 +2735,71 @@ func (x *WorkspaceInstanceStatus_Conditions) GetStoppedByRequest() bool { return false } +type WorkspaceInstanceStatus_EditorReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // prefer_toolbox indicates whether the editor should be launched with the + // JetBrains Toolbox instead of JetBrains Gateway + PreferToolbox bool `protobuf:"varint,3,opt,name=prefer_toolbox,json=preferToolbox,proto3" json:"prefer_toolbox,omitempty"` +} + +func (x *WorkspaceInstanceStatus_EditorReference) Reset() { + *x = WorkspaceInstanceStatus_EditorReference{} + if protoimpl.UnsafeEnabled { + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkspaceInstanceStatus_EditorReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkspaceInstanceStatus_EditorReference) ProtoMessage() {} + +func (x *WorkspaceInstanceStatus_EditorReference) ProtoReflect() protoreflect.Message { + mi := &file_gitpod_experimental_v1_workspaces_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkspaceInstanceStatus_EditorReference.ProtoReflect.Descriptor instead. +func (*WorkspaceInstanceStatus_EditorReference) Descriptor() ([]byte, []int) { + return file_gitpod_experimental_v1_workspaces_proto_rawDescGZIP(), []int{22, 1} +} + +func (x *WorkspaceInstanceStatus_EditorReference) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *WorkspaceInstanceStatus_EditorReference) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *WorkspaceInstanceStatus_EditorReference) GetPreferToolbox() bool { + if x != nil { + return x.PreferToolbox + } + return false +} + var File_gitpod_experimental_v1_workspaces_proto protoreflect.FileDescriptor var file_gitpod_experimental_v1_workspaces_proto_rawDesc = []byte{ @@ -2928,7 +2928,7 @@ var file_gitpod_experimental_v1_workspaces_proto_rawDesc = []byte{ 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xd0, 0x02, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x8f, 0x02, 0x0a, 0x09, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x19, @@ -2945,120 +2945,115 @@ var file_gitpod_experimental_v1_workspaces_proto_rawDesc = []byte{ 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x3f, 0x0a, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x52, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, - 0x22, 0x66, 0x0a, 0x0f, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6f, 0x6c, - 0x62, 0x6f, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x54, 0x6f, 0x6f, 0x6c, 0x62, 0x6f, 0x78, 0x22, 0x58, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x45, 0x0a, 0x08, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x22, 0xb2, 0x06, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x78, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, - 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x40, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, - 0x47, 0x69, 0x74, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, 0x74, 0x12, 0x4f, 0x0a, 0x08, 0x70, 0x72, - 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, + 0x58, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x45, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xb2, 0x06, 0x0a, 0x10, 0x57, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x12, + 0x40, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x48, - 0x00, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x4f, 0x0a, 0x08, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x48, 0x00, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x1a, 0x3d, 0x0a, 0x0b, - 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x36, 0x0a, 0x0a, 0x52, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x1a, 0xe2, 0x01, 0x0a, 0x03, 0x47, 0x69, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6e, - 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, - 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6e, 0x6f, 0x72, - 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, - 0x6c, 0x12, 0x53, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, - 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, - 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x84, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x65, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, - 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x52, 0x0f, 0x6f, - 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x1a, - 0x2b, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x64, 0x42, 0x09, 0x0a, 0x07, - 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xdb, 0x01, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, - 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, - 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x47, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, + 0x74, 0x12, 0x4f, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x50, 0x72, + 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x12, 0x4f, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x1a, 0x3d, 0x0a, 0x0b, 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, + 0x6d, 0x65, 0x1a, 0x36, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x1a, 0xe2, 0x01, 0x0a, 0x03, 0x47, + 0x69, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x14, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x53, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xab, 0x07, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x50, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x47, 0x69, 0x74, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, + 0x84, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x10, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, + 0x2e, 0x47, 0x69, 0x74, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x1a, 0x2b, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x49, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xdb, + 0x01, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x47, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xec, 0x08, 0x0a, + 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x4b, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, + 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0a, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x63, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x75, 0x72, 0x6c, 0x12, 0x44, 0x0a, 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, - 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, + 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x70, 0x6f, + 0x72, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x25, + 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, + 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, + 0x6c, 0x64, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, - 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x44, 0x0a, - 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x26, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x09, 0x61, 0x64, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, - 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, - 0x74, 0x5f, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0d, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x46, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x12, 0x40, - 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x67, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x76, 0x31, 0x2e, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x67, 0x69, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x57, 0x0a, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, + 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x1a, 0xd4, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, @@ -3072,230 +3067,237 @@ var file_gitpod_experimental_v1_workspaces_proto_rawDesc = []byte{ 0x65, 0x73, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x10, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x42, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x88, 0x01, 0x01, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd9, 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, - 0x65, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x48, 0x41, 0x53, - 0x45, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x14, 0x0a, - 0x10, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x42, 0x55, 0x49, 0x4c, - 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x45, 0x4e, - 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, - 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x48, - 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, - 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, - 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x52, 0x55, 0x50, 0x54, 0x45, 0x44, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, - 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x10, 0x08, - 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, - 0x44, 0x10, 0x09, 0x22, 0xaa, 0x01, 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, - 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x40, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x22, 0x9d, 0x01, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x64, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x49, 0x44, 0x45, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0b, 0x69, 0x64, 0x65, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x22, 0x5c, 0x0a, 0x0b, 0x49, 0x44, 0x45, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, - 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x64, 0x65, - 0x12, 0x2c, 0x0a, 0x12, 0x75, 0x73, 0x65, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x75, 0x73, - 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x9c, - 0x01, 0x0a, 0x08, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x70, - 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, - 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x08, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x66, 0x0a, 0x0f, 0x45, 0x64, 0x69, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6f, 0x6c, 0x62, 0x6f, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0d, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x54, 0x6f, 0x6f, 0x6c, 0x62, 0x6f, 0x78, 0x22, + 0xd9, 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x48, 0x41, + 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, + 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, + 0x4d, 0x41, 0x47, 0x45, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x50, + 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x12, + 0x0a, 0x0e, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, + 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x49, 0x54, + 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, + 0x41, 0x53, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x15, 0x0a, + 0x11, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x52, 0x55, 0x50, 0x54, + 0x45, 0x44, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x54, + 0x4f, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x10, 0x08, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x48, 0x41, 0x53, + 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x09, 0x22, 0xaa, 0x01, 0x0a, 0x04, + 0x50, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x9d, 0x01, 0x0a, 0x12, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, + 0x27, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0c, 0x69, 0x64, 0x65, 0x5f, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, + 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x45, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x5c, 0x0a, 0x0b, 0x49, 0x44, 0x45, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x75, 0x73, 0x65, 0x5f, + 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x75, 0x73, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x9c, 0x01, 0x0a, 0x08, 0x50, 0x6f, 0x72, 0x74, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x6c, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x69, + 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x70, + 0x6f, 0x72, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe7, 0x02, 0x0a, 0x09, 0x47, 0x69, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, + 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, + 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, + 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, + 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, + 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, + 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, + 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, + 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, + 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, + 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x34, 0x0a, + 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, + 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x69, + 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x5a, 0x0a, 0x1f, 0x47, 0x65, + 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, + 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x81, 0x02, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x44, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x12, 0x5c, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x44, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, + 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, + 0x69, 0x0a, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, + 0x0a, 0x18, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, + 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x4e, 0x53, + 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x49, + 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, + 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x0a, 0x50, 0x6f, + 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x52, 0x54, + 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, + 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x16, + 0x0a, 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x50, 0x55, + 0x42, 0x4c, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x5e, 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, + 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, + 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x17, 0x0a, + 0x13, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, + 0x54, 0x54, 0x50, 0x53, 0x10, 0x02, 0x2a, 0x6f, 0x0a, 0x0e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x44, 0x4d, 0x49, + 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x44, 0x4d, + 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, 0x57, 0x4e, + 0x45, 0x52, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x44, 0x4d, + 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x56, 0x45, + 0x52, 0x59, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x32, 0xd5, 0x0a, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x71, 0x0a, + 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, + 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, + 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x2b, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x88, 0x01, + 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x6c, 0x0a, - 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, - 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0xe7, 0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, - 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, - 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, - 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, - 0x0f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, - 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, - 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, - 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, - 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, - 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x0e, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, - 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x22, 0x5a, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x77, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, - 0x0d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x81, - 0x02, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5c, 0x0a, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x44, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x6e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x69, 0x0a, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, - 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, - 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x4f, 0x55, - 0x52, 0x43, 0x45, 0x5f, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x0a, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, - 0x13, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x50, 0x52, 0x49, - 0x56, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, - 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x02, 0x2a, 0x5e, - 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1d, - 0x0a, 0x19, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, - 0x12, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, - 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x50, 0x52, - 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, 0x02, 0x2a, 0x6f, - 0x0a, 0x0e, 0x41, 0x64, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x44, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x45, - 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x44, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, - 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, - 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x44, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, - 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x56, 0x45, 0x52, 0x59, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x32, - 0xd5, 0x0a, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x71, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, - 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2b, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x88, 0x01, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, - 0x12, 0x6e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, - 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, - 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x8c, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x36, 0x2e, 0x67, - 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, + 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8c, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x36, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x71, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x6e, 0x0a, 0x0d, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, - 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x74, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x65, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x83, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, + 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, - 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8f, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x69, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6e, 0x0a, 0x0d, 0x53, 0x74, + 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2c, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, - 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, - 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, - 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, - 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, - 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x74, 0x0a, 0x0f, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2e, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, + 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, + 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x65, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, + 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, + 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x69, 0x74, 0x70, + 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x83, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, + 0x12, 0x33, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8f, 0x01, + 0x0a, 0x18, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x69, 0x74, + 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, + 0x6b, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, + 0x70, 0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3337,27 +3339,27 @@ var file_gitpod_experimental_v1_workspaces_proto_goTypes = []interface{}{ (*ListWorkspaceClassesRequest)(nil), // 21: gitpod.experimental.v1.ListWorkspaceClassesRequest (*ListWorkspaceClassesResponse)(nil), // 22: gitpod.experimental.v1.ListWorkspaceClassesResponse (*Workspace)(nil), // 23: gitpod.experimental.v1.Workspace - (*EditorReference)(nil), // 24: gitpod.experimental.v1.EditorReference - (*WorkspaceStatus)(nil), // 25: gitpod.experimental.v1.WorkspaceStatus - (*WorkspaceContext)(nil), // 26: gitpod.experimental.v1.WorkspaceContext - (*WorkspaceInstance)(nil), // 27: gitpod.experimental.v1.WorkspaceInstance - (*WorkspaceInstanceStatus)(nil), // 28: gitpod.experimental.v1.WorkspaceInstanceStatus - (*Port)(nil), // 29: gitpod.experimental.v1.Port - (*StartWorkspaceSpec)(nil), // 30: gitpod.experimental.v1.StartWorkspaceSpec - (*IDESettings)(nil), // 31: gitpod.experimental.v1.IDESettings - (*PortSpec)(nil), // 32: gitpod.experimental.v1.PortSpec - (*UpdatePortRequest)(nil), // 33: gitpod.experimental.v1.UpdatePortRequest - (*UpdatePortResponse)(nil), // 34: gitpod.experimental.v1.UpdatePortResponse - (*GitStatus)(nil), // 35: gitpod.experimental.v1.GitStatus - (*WorkspaceClass)(nil), // 36: gitpod.experimental.v1.WorkspaceClass - (*GetDefaultWorkspaceImageRequest)(nil), // 37: gitpod.experimental.v1.GetDefaultWorkspaceImageRequest - (*GetDefaultWorkspaceImageResponse)(nil), // 38: gitpod.experimental.v1.GetDefaultWorkspaceImageResponse - (*WorkspaceContext_GitProvider)(nil), // 39: gitpod.experimental.v1.WorkspaceContext.GitProvider - (*WorkspaceContext_Repository)(nil), // 40: gitpod.experimental.v1.WorkspaceContext.Repository - (*WorkspaceContext_Git)(nil), // 41: gitpod.experimental.v1.WorkspaceContext.Git - (*WorkspaceContext_Prebuild)(nil), // 42: gitpod.experimental.v1.WorkspaceContext.Prebuild - (*WorkspaceContext_Snapshot)(nil), // 43: gitpod.experimental.v1.WorkspaceContext.Snapshot - (*WorkspaceInstanceStatus_Conditions)(nil), // 44: gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions + (*WorkspaceStatus)(nil), // 24: gitpod.experimental.v1.WorkspaceStatus + (*WorkspaceContext)(nil), // 25: gitpod.experimental.v1.WorkspaceContext + (*WorkspaceInstance)(nil), // 26: gitpod.experimental.v1.WorkspaceInstance + (*WorkspaceInstanceStatus)(nil), // 27: gitpod.experimental.v1.WorkspaceInstanceStatus + (*Port)(nil), // 28: gitpod.experimental.v1.Port + (*StartWorkspaceSpec)(nil), // 29: gitpod.experimental.v1.StartWorkspaceSpec + (*IDESettings)(nil), // 30: gitpod.experimental.v1.IDESettings + (*PortSpec)(nil), // 31: gitpod.experimental.v1.PortSpec + (*UpdatePortRequest)(nil), // 32: gitpod.experimental.v1.UpdatePortRequest + (*UpdatePortResponse)(nil), // 33: gitpod.experimental.v1.UpdatePortResponse + (*GitStatus)(nil), // 34: gitpod.experimental.v1.GitStatus + (*WorkspaceClass)(nil), // 35: gitpod.experimental.v1.WorkspaceClass + (*GetDefaultWorkspaceImageRequest)(nil), // 36: gitpod.experimental.v1.GetDefaultWorkspaceImageRequest + (*GetDefaultWorkspaceImageResponse)(nil), // 37: gitpod.experimental.v1.GetDefaultWorkspaceImageResponse + (*WorkspaceContext_GitProvider)(nil), // 38: gitpod.experimental.v1.WorkspaceContext.GitProvider + (*WorkspaceContext_Repository)(nil), // 39: gitpod.experimental.v1.WorkspaceContext.Repository + (*WorkspaceContext_Git)(nil), // 40: gitpod.experimental.v1.WorkspaceContext.Git + (*WorkspaceContext_Prebuild)(nil), // 41: gitpod.experimental.v1.WorkspaceContext.Prebuild + (*WorkspaceContext_Snapshot)(nil), // 42: gitpod.experimental.v1.WorkspaceContext.Snapshot + (*WorkspaceInstanceStatus_Conditions)(nil), // 43: gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions + (*WorkspaceInstanceStatus_EditorReference)(nil), // 44: gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference (*Pagination)(nil), // 45: gitpod.experimental.v1.Pagination (*fieldmaskpb.FieldMask)(nil), // 46: google.protobuf.FieldMask (*timestamppb.Timestamp)(nil), // 47: google.protobuf.Timestamp @@ -3367,35 +3369,35 @@ var file_gitpod_experimental_v1_workspaces_proto_depIdxs = []int32{ 46, // 1: gitpod.experimental.v1.ListWorkspacesRequest.field_mask:type_name -> google.protobuf.FieldMask 23, // 2: gitpod.experimental.v1.ListWorkspacesResponse.result:type_name -> gitpod.experimental.v1.Workspace 23, // 3: gitpod.experimental.v1.GetWorkspaceResponse.result:type_name -> gitpod.experimental.v1.Workspace - 25, // 4: gitpod.experimental.v1.StreamWorkspaceStatusResponse.result:type_name -> gitpod.experimental.v1.WorkspaceStatus - 30, // 5: gitpod.experimental.v1.CreateAndStartWorkspaceRequest.start_spec:type_name -> gitpod.experimental.v1.StartWorkspaceSpec + 24, // 4: gitpod.experimental.v1.StreamWorkspaceStatusResponse.result:type_name -> gitpod.experimental.v1.WorkspaceStatus + 29, // 5: gitpod.experimental.v1.CreateAndStartWorkspaceRequest.start_spec:type_name -> gitpod.experimental.v1.StartWorkspaceSpec 23, // 6: gitpod.experimental.v1.StartWorkspaceResponse.result:type_name -> gitpod.experimental.v1.Workspace 23, // 7: gitpod.experimental.v1.StopWorkspaceResponse.result:type_name -> gitpod.experimental.v1.Workspace - 36, // 8: gitpod.experimental.v1.ListWorkspaceClassesResponse.result:type_name -> gitpod.experimental.v1.WorkspaceClass - 26, // 9: gitpod.experimental.v1.Workspace.context:type_name -> gitpod.experimental.v1.WorkspaceContext - 25, // 10: gitpod.experimental.v1.Workspace.status:type_name -> gitpod.experimental.v1.WorkspaceStatus - 24, // 11: gitpod.experimental.v1.Workspace.editor:type_name -> gitpod.experimental.v1.EditorReference - 27, // 12: gitpod.experimental.v1.WorkspaceStatus.instance:type_name -> gitpod.experimental.v1.WorkspaceInstance - 41, // 13: gitpod.experimental.v1.WorkspaceContext.git:type_name -> gitpod.experimental.v1.WorkspaceContext.Git - 42, // 14: gitpod.experimental.v1.WorkspaceContext.prebuild:type_name -> gitpod.experimental.v1.WorkspaceContext.Prebuild - 43, // 15: gitpod.experimental.v1.WorkspaceContext.snapshot:type_name -> gitpod.experimental.v1.WorkspaceContext.Snapshot - 47, // 16: gitpod.experimental.v1.WorkspaceInstance.created_at:type_name -> google.protobuf.Timestamp - 28, // 17: gitpod.experimental.v1.WorkspaceInstance.status:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus - 3, // 18: gitpod.experimental.v1.WorkspaceInstanceStatus.phase:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Phase - 44, // 19: gitpod.experimental.v1.WorkspaceInstanceStatus.conditions:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions - 2, // 20: gitpod.experimental.v1.WorkspaceInstanceStatus.admission:type_name -> gitpod.experimental.v1.AdmissionLevel - 29, // 21: gitpod.experimental.v1.WorkspaceInstanceStatus.ports:type_name -> gitpod.experimental.v1.Port - 35, // 22: gitpod.experimental.v1.WorkspaceInstanceStatus.git_status:type_name -> gitpod.experimental.v1.GitStatus + 35, // 8: gitpod.experimental.v1.ListWorkspaceClassesResponse.result:type_name -> gitpod.experimental.v1.WorkspaceClass + 25, // 9: gitpod.experimental.v1.Workspace.context:type_name -> gitpod.experimental.v1.WorkspaceContext + 24, // 10: gitpod.experimental.v1.Workspace.status:type_name -> gitpod.experimental.v1.WorkspaceStatus + 26, // 11: gitpod.experimental.v1.WorkspaceStatus.instance:type_name -> gitpod.experimental.v1.WorkspaceInstance + 40, // 12: gitpod.experimental.v1.WorkspaceContext.git:type_name -> gitpod.experimental.v1.WorkspaceContext.Git + 41, // 13: gitpod.experimental.v1.WorkspaceContext.prebuild:type_name -> gitpod.experimental.v1.WorkspaceContext.Prebuild + 42, // 14: gitpod.experimental.v1.WorkspaceContext.snapshot:type_name -> gitpod.experimental.v1.WorkspaceContext.Snapshot + 47, // 15: gitpod.experimental.v1.WorkspaceInstance.created_at:type_name -> google.protobuf.Timestamp + 27, // 16: gitpod.experimental.v1.WorkspaceInstance.status:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus + 3, // 17: gitpod.experimental.v1.WorkspaceInstanceStatus.phase:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Phase + 43, // 18: gitpod.experimental.v1.WorkspaceInstanceStatus.conditions:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions + 2, // 19: gitpod.experimental.v1.WorkspaceInstanceStatus.admission:type_name -> gitpod.experimental.v1.AdmissionLevel + 28, // 20: gitpod.experimental.v1.WorkspaceInstanceStatus.ports:type_name -> gitpod.experimental.v1.Port + 34, // 21: gitpod.experimental.v1.WorkspaceInstanceStatus.git_status:type_name -> gitpod.experimental.v1.GitStatus + 44, // 22: gitpod.experimental.v1.WorkspaceInstanceStatus.editor:type_name -> gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference 0, // 23: gitpod.experimental.v1.Port.policy:type_name -> gitpod.experimental.v1.PortPolicy 1, // 24: gitpod.experimental.v1.Port.protocol:type_name -> gitpod.experimental.v1.PortProtocol - 31, // 25: gitpod.experimental.v1.StartWorkspaceSpec.ide_settings:type_name -> gitpod.experimental.v1.IDESettings + 30, // 25: gitpod.experimental.v1.StartWorkspaceSpec.ide_settings:type_name -> gitpod.experimental.v1.IDESettings 0, // 26: gitpod.experimental.v1.PortSpec.policy:type_name -> gitpod.experimental.v1.PortPolicy 1, // 27: gitpod.experimental.v1.PortSpec.protocol:type_name -> gitpod.experimental.v1.PortProtocol - 32, // 28: gitpod.experimental.v1.UpdatePortRequest.port:type_name -> gitpod.experimental.v1.PortSpec + 31, // 28: gitpod.experimental.v1.UpdatePortRequest.port:type_name -> gitpod.experimental.v1.PortSpec 4, // 29: gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.source:type_name -> gitpod.experimental.v1.GetDefaultWorkspaceImageResponse.ImageSource - 40, // 30: gitpod.experimental.v1.WorkspaceContext.Git.repository:type_name -> gitpod.experimental.v1.WorkspaceContext.Repository - 39, // 31: gitpod.experimental.v1.WorkspaceContext.Git.provider:type_name -> gitpod.experimental.v1.WorkspaceContext.GitProvider - 41, // 32: gitpod.experimental.v1.WorkspaceContext.Prebuild.original_context:type_name -> gitpod.experimental.v1.WorkspaceContext.Git + 39, // 30: gitpod.experimental.v1.WorkspaceContext.Git.repository:type_name -> gitpod.experimental.v1.WorkspaceContext.Repository + 38, // 31: gitpod.experimental.v1.WorkspaceContext.Git.provider:type_name -> gitpod.experimental.v1.WorkspaceContext.GitProvider + 40, // 32: gitpod.experimental.v1.WorkspaceContext.Prebuild.original_context:type_name -> gitpod.experimental.v1.WorkspaceContext.Git 47, // 33: gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions.first_user_activity:type_name -> google.protobuf.Timestamp 5, // 34: gitpod.experimental.v1.WorkspacesService.ListWorkspaces:input_type -> gitpod.experimental.v1.ListWorkspacesRequest 7, // 35: gitpod.experimental.v1.WorkspacesService.GetWorkspace:input_type -> gitpod.experimental.v1.GetWorkspaceRequest @@ -3405,9 +3407,9 @@ var file_gitpod_experimental_v1_workspaces_proto_depIdxs = []int32{ 15, // 39: gitpod.experimental.v1.WorkspacesService.StartWorkspace:input_type -> gitpod.experimental.v1.StartWorkspaceRequest 17, // 40: gitpod.experimental.v1.WorkspacesService.StopWorkspace:input_type -> gitpod.experimental.v1.StopWorkspaceRequest 19, // 41: gitpod.experimental.v1.WorkspacesService.DeleteWorkspace:input_type -> gitpod.experimental.v1.DeleteWorkspaceRequest - 33, // 42: gitpod.experimental.v1.WorkspacesService.UpdatePort:input_type -> gitpod.experimental.v1.UpdatePortRequest + 32, // 42: gitpod.experimental.v1.WorkspacesService.UpdatePort:input_type -> gitpod.experimental.v1.UpdatePortRequest 21, // 43: gitpod.experimental.v1.WorkspacesService.ListWorkspaceClasses:input_type -> gitpod.experimental.v1.ListWorkspaceClassesRequest - 37, // 44: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:input_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageRequest + 36, // 44: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:input_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageRequest 6, // 45: gitpod.experimental.v1.WorkspacesService.ListWorkspaces:output_type -> gitpod.experimental.v1.ListWorkspacesResponse 8, // 46: gitpod.experimental.v1.WorkspacesService.GetWorkspace:output_type -> gitpod.experimental.v1.GetWorkspaceResponse 10, // 47: gitpod.experimental.v1.WorkspacesService.StreamWorkspaceStatus:output_type -> gitpod.experimental.v1.StreamWorkspaceStatusResponse @@ -3416,9 +3418,9 @@ var file_gitpod_experimental_v1_workspaces_proto_depIdxs = []int32{ 16, // 50: gitpod.experimental.v1.WorkspacesService.StartWorkspace:output_type -> gitpod.experimental.v1.StartWorkspaceResponse 18, // 51: gitpod.experimental.v1.WorkspacesService.StopWorkspace:output_type -> gitpod.experimental.v1.StopWorkspaceResponse 20, // 52: gitpod.experimental.v1.WorkspacesService.DeleteWorkspace:output_type -> gitpod.experimental.v1.DeleteWorkspaceResponse - 34, // 53: gitpod.experimental.v1.WorkspacesService.UpdatePort:output_type -> gitpod.experimental.v1.UpdatePortResponse + 33, // 53: gitpod.experimental.v1.WorkspacesService.UpdatePort:output_type -> gitpod.experimental.v1.UpdatePortResponse 22, // 54: gitpod.experimental.v1.WorkspacesService.ListWorkspaceClasses:output_type -> gitpod.experimental.v1.ListWorkspaceClassesResponse - 38, // 55: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:output_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageResponse + 37, // 55: gitpod.experimental.v1.WorkspacesService.GetDefaultWorkspaceImage:output_type -> gitpod.experimental.v1.GetDefaultWorkspaceImageResponse 45, // [45:56] is the sub-list for method output_type 34, // [34:45] is the sub-list for method input_type 34, // [34:34] is the sub-list for extension type_name @@ -3662,7 +3664,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EditorReference); i { + switch v := v.(*WorkspaceStatus); i { case 0: return &v.state case 1: @@ -3674,7 +3676,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceStatus); i { + switch v := v.(*WorkspaceContext); i { case 0: return &v.state case 1: @@ -3686,7 +3688,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext); i { + switch v := v.(*WorkspaceInstance); i { case 0: return &v.state case 1: @@ -3698,7 +3700,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceInstance); i { + switch v := v.(*WorkspaceInstanceStatus); i { case 0: return &v.state case 1: @@ -3710,7 +3712,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceInstanceStatus); i { + switch v := v.(*Port); i { case 0: return &v.state case 1: @@ -3722,7 +3724,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Port); i { + switch v := v.(*StartWorkspaceSpec); i { case 0: return &v.state case 1: @@ -3734,7 +3736,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartWorkspaceSpec); i { + switch v := v.(*IDESettings); i { case 0: return &v.state case 1: @@ -3746,7 +3748,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDESettings); i { + switch v := v.(*PortSpec); i { case 0: return &v.state case 1: @@ -3758,7 +3760,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PortSpec); i { + switch v := v.(*UpdatePortRequest); i { case 0: return &v.state case 1: @@ -3770,7 +3772,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePortRequest); i { + switch v := v.(*UpdatePortResponse); i { case 0: return &v.state case 1: @@ -3782,7 +3784,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePortResponse); i { + switch v := v.(*GitStatus); i { case 0: return &v.state case 1: @@ -3794,7 +3796,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GitStatus); i { + switch v := v.(*WorkspaceClass); i { case 0: return &v.state case 1: @@ -3806,7 +3808,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceClass); i { + switch v := v.(*GetDefaultWorkspaceImageRequest); i { case 0: return &v.state case 1: @@ -3818,7 +3820,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDefaultWorkspaceImageRequest); i { + switch v := v.(*GetDefaultWorkspaceImageResponse); i { case 0: return &v.state case 1: @@ -3830,7 +3832,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDefaultWorkspaceImageResponse); i { + switch v := v.(*WorkspaceContext_GitProvider); i { case 0: return &v.state case 1: @@ -3842,7 +3844,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_GitProvider); i { + switch v := v.(*WorkspaceContext_Repository); i { case 0: return &v.state case 1: @@ -3854,7 +3856,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Repository); i { + switch v := v.(*WorkspaceContext_Git); i { case 0: return &v.state case 1: @@ -3866,7 +3868,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Git); i { + switch v := v.(*WorkspaceContext_Prebuild); i { case 0: return &v.state case 1: @@ -3878,7 +3880,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Prebuild); i { + switch v := v.(*WorkspaceContext_Snapshot); i { case 0: return &v.state case 1: @@ -3890,7 +3892,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceContext_Snapshot); i { + switch v := v.(*WorkspaceInstanceStatus_Conditions); i { case 0: return &v.state case 1: @@ -3902,7 +3904,7 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { } } file_gitpod_experimental_v1_workspaces_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkspaceInstanceStatus_Conditions); i { + switch v := v.(*WorkspaceInstanceStatus_EditorReference); i { case 0: return &v.state case 1: @@ -3918,13 +3920,13 @@ func file_gitpod_experimental_v1_workspaces_proto_init() { (*CreateAndStartWorkspaceRequest_ContextUrl)(nil), (*CreateAndStartWorkspaceRequest_PrebuildId)(nil), } - file_gitpod_experimental_v1_workspaces_proto_msgTypes[21].OneofWrappers = []interface{}{ + file_gitpod_experimental_v1_workspaces_proto_msgTypes[20].OneofWrappers = []interface{}{ (*WorkspaceContext_Git_)(nil), (*WorkspaceContext_Prebuild_)(nil), (*WorkspaceContext_Snapshot_)(nil), } - file_gitpod_experimental_v1_workspaces_proto_msgTypes[32].OneofWrappers = []interface{}{} - file_gitpod_experimental_v1_workspaces_proto_msgTypes[39].OneofWrappers = []interface{}{} + file_gitpod_experimental_v1_workspaces_proto_msgTypes[31].OneofWrappers = []interface{}{} + file_gitpod_experimental_v1_workspaces_proto_msgTypes[38].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java index 58eab7b884af0b..37a2fe5c22c66d 100644 --- a/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java +++ b/components/public-api/java/src/main/java/io/gitpod/publicapi/experimental/v1/Workspaces.java @@ -11835,33 +11835,6 @@ public interface WorkspaceOrBuilder extends * .gitpod.experimental.v1.WorkspaceStatus status = 6 [json_name = "status"]; */ io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder getStatusOrBuilder(); - - /** - *
-     * editor is the editor to be used in this workspace
-     * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - * @return Whether the editor field is set. - */ - boolean hasEditor(); - /** - *
-     * editor is the editor to be used in this workspace
-     * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - * @return The editor. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getEditor(); - /** - *
-     * editor is the editor to be used in this workspace
-     * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder getEditorOrBuilder(); } /** *
@@ -12173,44 +12146,6 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder g
       return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance() : status_;
     }
 
-    public static final int EDITOR_FIELD_NUMBER = 7;
-    private io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference editor_;
-    /**
-     * 
-     * editor is the editor to be used in this workspace
-     * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - * @return Whether the editor field is set. - */ - @java.lang.Override - public boolean hasEditor() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * editor is the editor to be used in this workspace
-     * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - * @return The editor. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getEditor() { - return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; - } - /** - *
-     * editor is the editor to be used in this workspace
-     * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder getEditorOrBuilder() { - return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12243,9 +12178,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getStatus()); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(7, getEditor()); - } getUnknownFields().writeTo(output); } @@ -12275,10 +12207,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getStatus()); } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getEditor()); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12312,11 +12240,6 @@ public boolean equals(final java.lang.Object obj) { if (!getStatus() .equals(other.getStatus())) return false; } - if (hasEditor() != other.hasEditor()) return false; - if (hasEditor()) { - if (!getEditor() - .equals(other.getEditor())) return false; - } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12344,10 +12267,6 @@ public int hashCode() { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } - if (hasEditor()) { - hash = (37 * hash) + EDITOR_FIELD_NUMBER; - hash = (53 * hash) + getEditor().hashCode(); - } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -12484,7 +12403,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { getContextFieldBuilder(); getStatusFieldBuilder(); - getEditorFieldBuilder(); } } @java.lang.Override @@ -12505,11 +12423,6 @@ public Builder clear() { statusBuilder_.dispose(); statusBuilder_ = null; } - editor_ = null; - if (editorBuilder_ != null) { - editorBuilder_.dispose(); - editorBuilder_ = null; - } return this; } @@ -12568,12 +12481,6 @@ private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.Worksp : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.editor_ = editorBuilder_ == null - ? editor_ - : editorBuilder_.build(); - to_bitField0_ |= 0x00000004; - } result.bitField0_ |= to_bitField0_; } @@ -12615,9 +12522,6 @@ public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.Workspac if (other.hasStatus()) { mergeStatus(other.getStatus()); } - if (other.hasEditor()) { - mergeEditor(other.getEditor()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -12678,13 +12582,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 - case 58: { - input.readMessage( - getEditorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -13384,163 +13281,6 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder g return statusBuilder_; } - private io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference editor_; - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder> editorBuilder_; - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - * @return Whether the editor field is set. - */ - public boolean hasEditor() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - * @return The editor. - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getEditor() { - if (editorBuilder_ == null) { - return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; - } else { - return editorBuilder_.getMessage(); - } - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - public Builder setEditor(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference value) { - if (editorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - editor_ = value; - } else { - editorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - public Builder setEditor( - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder builderForValue) { - if (editorBuilder_ == null) { - editor_ = builderForValue.build(); - } else { - editorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - public Builder mergeEditor(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference value) { - if (editorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - editor_ != null && - editor_ != io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance()) { - getEditorBuilder().mergeFrom(value); - } else { - editor_ = value; - } - } else { - editorBuilder_.mergeFrom(value); - } - if (editor_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - public Builder clearEditor() { - bitField0_ = (bitField0_ & ~0x00000040); - editor_ = null; - if (editorBuilder_ != null) { - editorBuilder_.dispose(); - editorBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder getEditorBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getEditorFieldBuilder().getBuilder(); - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder getEditorOrBuilder() { - if (editorBuilder_ != null) { - return editorBuilder_.getMessageOrBuilder(); - } else { - return editor_ == null ? - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance() : editor_; - } - } - /** - *
-       * editor is the editor to be used in this workspace
-       * 
- * - * .gitpod.experimental.v1.EditorReference editor = 7 [json_name = "editor"]; - */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder> - getEditorFieldBuilder() { - if (editorBuilder_ == null) { - editorBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder>( - getEditor(), - getParentForChildren(), - isClean()); - editor_ = null; - } - return editorBuilder_; - } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.Workspace) } @@ -13592,52 +13332,48 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.Workspace getDefaultInstan } - public interface EditorReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.EditorReference) + public interface WorkspaceStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceStatus) com.google.protobuf.MessageOrBuilder { /** - * string name = 1 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string version = 2 [json_name = "version"]; - * @return The version. + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return Whether the instance field is set. */ - java.lang.String getVersion(); + boolean hasInstance(); /** - * string version = 2 [json_name = "version"]; - * @return The bytes for version. + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return The instance. */ - com.google.protobuf.ByteString - getVersionBytes(); - + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance(); /** *
-     * prefer_toolbox indicates whether the editor should be launched with the
-     * JetBrains Toolbox instead of JetBrains Gateway
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
      * 
* - * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; - * @return The preferToolbox. + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - boolean getPreferToolbox(); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder(); } /** - * Protobuf type {@code gitpod.experimental.v1.EditorReference} + *
+   * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace.
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceStatus} */ - public static final class EditorReference extends + public static final class WorkspaceStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.EditorReference) - EditorReferenceOrBuilder { + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceStatus) + WorkspaceStatusOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( @@ -13646,122 +13382,65 @@ public static final class EditorReference extends /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", - EditorReference.class.getName()); + WorkspaceStatus.class.getName()); } - // Use EditorReference.newBuilder() to construct. - private EditorReference(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use WorkspaceStatus.newBuilder() to construct. + private WorkspaceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private EditorReference() { - name_ = ""; - version_ = ""; + private WorkspaceStatus() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.class, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * string name = 1 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder.class); } - public static final int VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; + private int bitField0_; + public static final int INSTANCE_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance instance_; /** - * string version = 2 [json_name = "version"]; - * @return The version. + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return Whether the instance field is set. */ @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } + public boolean hasInstance() { + return ((bitField0_ & 0x00000001) != 0); } /** - * string version = 2 [json_name = "version"]; - * @return The bytes for version. + *
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return The instance. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance() { + return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; } - - public static final int PREFER_TOOLBOX_FIELD_NUMBER = 3; - private boolean preferToolbox_ = false; /** *
-     * prefer_toolbox indicates whether the editor should be launched with the
-     * JetBrains Toolbox instead of JetBrains Gateway
+     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
      * 
* - * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; - * @return The preferToolbox. + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ @java.lang.Override - public boolean getPreferToolbox() { - return preferToolbox_; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder() { + return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; } private byte memoizedIsInitialized = -1; @@ -13778,14 +13457,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); - } - if (preferToolbox_ != false) { - output.writeBool(3, preferToolbox_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getInstance()); } getUnknownFields().writeTo(output); } @@ -13796,15 +13469,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); - } - if (preferToolbox_ != false) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, preferToolbox_); + .computeMessageSize(1, getInstance()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13816,17 +13483,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference)) { + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus)) { return super.equals(obj); } - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference other = (io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference) obj; + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (getPreferToolbox() - != other.getPreferToolbox()) return false; + if (hasInstance() != other.hasInstance()) return false; + if (hasInstance()) { + if (!getInstance() + .equals(other.getInstance())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13838,56 +13504,53 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + PREFER_TOOLBOX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPreferToolbox()); + if (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom(byte[] data) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -13895,26 +13558,26 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference par .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseDelimitedFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -13927,7 +13590,7 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference par public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference prototype) { + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -13943,59 +13606,71 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code gitpod.experimental.v1.EditorReference} + *
+     * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace.
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.EditorReference) - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReferenceOrBuilder { + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceStatus) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.class, io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder.class); } - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.newBuilder() + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getInstanceFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - name_ = ""; - version_ = ""; - preferToolbox_ = false; + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_EditorReference_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance(); } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference build() { - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference result = buildPartial(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -14003,50 +13678,39 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference build() { } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference result = new io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference(this); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference result) { + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.preferToolbox_ = preferToolbox_; + result.instance_ = instanceBuilder_ == null + ? instance_ + : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference)other); + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPreferToolbox() != false) { - setPreferToolbox(other.getPreferToolbox()); + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance()) return this; + if (other.hasInstance()) { + mergeInstance(other.getInstance()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -14075,20 +13739,12 @@ public Builder mergeFrom( done = true; break; case 10: { - name_ = input.readStringRequireUtf8(); + input.readMessage( + getInstanceFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - preferToolbox_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -14106,214 +13762,180 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object name_ = ""; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance instance_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder> instanceBuilder_; /** - * string name = 1 [json_name = "name"]; - * @return The name. + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return Whether the instance field is set. */ - public 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; + public boolean hasInstance() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * @return The instance. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; } else { - return (java.lang.String) ref; + return instanceBuilder_.getMessage(); } } /** - * string name = 1 [json_name = "name"]; - * @return The bytes for name. + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - public 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; + public Builder setInstance(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; } else { - return (com.google.protobuf.ByteString) ref; + instanceBuilder_.setMessage(value); } + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** - * string name = 1 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; + public Builder setInstance( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string name = 1 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 2 [json_name = "version"]; - * @return The version. + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; + public Builder mergeInstance(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance value) { + if (instanceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + instance_ != null && + instance_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance()) { + getInstanceBuilder().mergeFrom(value); + } else { + instance_ = value; + } } else { - return (java.lang.String) ref; + instanceBuilder_.mergeFrom(value); } - } - /** - * string version = 2 [json_name = "version"]; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + if (instance_ != null) { + bitField0_ |= 0x00000001; + onChanged(); } - } - /** - * string version = 2 [json_name = "version"]; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - version_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string version = 2 [json_name = "version"]; - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); return this; } /** - * string version = 2 [json_name = "version"]; - * @param value The bytes for version to set. - * @return This builder for chaining. + *
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - version_ = value; - bitField0_ |= 0x00000002; + public Builder clearInstance() { + bitField0_ = (bitField0_ & ~0x00000001); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } onChanged(); return this; } - - private boolean preferToolbox_ ; /** *
-       * prefer_toolbox indicates whether the editor should be launched with the
-       * JetBrains Toolbox instead of JetBrains Gateway
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
        * 
* - * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; - * @return The preferToolbox. + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - @java.lang.Override - public boolean getPreferToolbox() { - return preferToolbox_; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder getInstanceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInstanceFieldBuilder().getBuilder(); } /** *
-       * prefer_toolbox indicates whether the editor should be launched with the
-       * JetBrains Toolbox instead of JetBrains Gateway
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
        * 
* - * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; - * @param value The preferToolbox to set. - * @return This builder for chaining. + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - public Builder setPreferToolbox(boolean value) { - - preferToolbox_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; + } } /** *
-       * prefer_toolbox indicates whether the editor should be launched with the
-       * JetBrains Toolbox instead of JetBrains Gateway
+       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
        * 
* - * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; - * @return This builder for chaining. + * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; */ - public Builder clearPreferToolbox() { - bitField0_ = (bitField0_ & ~0x00000004); - preferToolbox_ = false; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder> + getInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder>( + getInstance(), + getParentForChildren(), + isClean()); + instance_ = null; + } + return instanceBuilder_; } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.EditorReference) + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceStatus) } - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.EditorReference) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceStatus) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference(); + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getDefaultInstance() { + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public EditorReference parsePartialFrom( + public WorkspaceStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -14332,64 +13954,106 @@ public EditorReference parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.EditorReference getDefaultInstanceForType() { + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface WorkspaceStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceStatus) + public interface WorkspaceContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext) com.google.protobuf.MessageOrBuilder { /** *
-     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
      * 
* - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - * @return Whether the instance field is set. + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. */ - boolean hasInstance(); + java.lang.String getContextUrl(); /** *
-     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
      * 
* - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - * @return The instance. + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance(); + com.google.protobuf.ByteString + getContextUrlBytes(); + /** - *
-     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return Whether the git field is set. */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder(); + boolean hasGit(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return The git. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder(); + + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + boolean hasPrebuild(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder(); + + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return The snapshot. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder(); + + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.DetailsCase getDetailsCase(); } /** *
-   * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace.
+   * WorkspaceContext describes the context a workspace was created from
    * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceStatus} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext} */ - public static final class WorkspaceStatus extends + public static final class WorkspaceContext extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceStatus) - WorkspaceStatusOrBuilder { + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext) + WorkspaceContextOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( @@ -14398,1113 +14062,1139 @@ public static final class WorkspaceStatus extends /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", - WorkspaceStatus.class.getName()); + WorkspaceContext.class.getName()); } - // Use WorkspaceStatus.newBuilder() to construct. - private WorkspaceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use WorkspaceContext.newBuilder() to construct. + private WorkspaceContext(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private WorkspaceStatus() { + private WorkspaceContext() { + contextUrl_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder.class); } - private int bitField0_; - public static final int INSTANCE_FIELD_NUMBER = 1; - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance instance_; - /** - *
-     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - * @return Whether the instance field is set. - */ - @java.lang.Override - public boolean hasInstance() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - * @return The instance. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance() { - return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; + public interface GitProviderOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.GitProvider) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The type. + */ + java.lang.String getType(); + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The hostname. + */ + java.lang.String getHostname(); + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString + getHostnameBytes(); } /** *
-     * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+     * GitProvider describes the git provider
      * 
* - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.GitProvider} */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder() { - return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public static final class GitProvider extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.GitProvider) + GitProviderOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + GitProvider.class.getName()); + } + // Use GitProvider.newBuilder() to construct. + private GitProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private GitProvider() { + type_ = ""; + hostname_ = ""; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getInstance()); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder.class); + } - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInstance()); + public static final int TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + *
+       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+       * 
+ * + * string type = 1 [json_name = "type"]; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final int HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus)) { - return super.equals(obj); + /** + *
+       * hostname is the git provider hostname
+       * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus) obj; - if (hasInstance() != other.hasInstance()) return false; - if (hasInstance()) { - if (!getInstance() - .equals(other.getInstance())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasInstance()) { - hash = (37 * hash) + INSTANCE_FIELD_NUMBER; - hash = (53 * hash) + getInstance().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace.
-     * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceStatus) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.Builder.class); - } - - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - getInstanceFieldBuilder(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - instance_ = null; - if (instanceBuilder_ != null) { - instanceBuilder_.dispose(); - instanceBuilder_ = null; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, hostname_); } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; + getUnknownFields().writeTo(output); } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); } - return result; - } - - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.instance_ = instanceBuilder_ == null - ? instance_ - : instanceBuilder_.build(); - to_bitField0_ |= 0x00000001; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, hostname_); } - result.bitField0_ |= to_bitField0_; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus)other); - } else { - super.mergeFrom(other); - return this; + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - } - - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus.getDefaultInstance()) return this; - if (other.hasInstance()) { - mergeInstance(other.getInstance()); + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider)) { + return super.equals(obj); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider) obj; - @java.lang.Override - public final boolean isInitialized() { + if (!getType() + .equals(other.getType())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getInstanceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private int bitField0_; - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance instance_; - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder> instanceBuilder_; - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - * @return Whether the instance field is set. - */ - public boolean hasInstance() { - return ((bitField0_ & 0x00000001) != 0); + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - * @return The instance. - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getInstance() { - if (instanceBuilder_ == null) { - return instance_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; - } else { - return instanceBuilder_.getMessage(); - } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - */ - public Builder setInstance(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance value) { - if (instanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - instance_ = value; - } else { - instanceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - */ - public Builder setInstance( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder builderForValue) { - if (instanceBuilder_ == null) { - instance_ = builderForValue.build(); - } else { - instanceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - */ - public Builder mergeInstance(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance value) { - if (instanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - instance_ != null && - instance_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance()) { - getInstanceBuilder().mergeFrom(value); - } else { - instance_ = value; - } - } else { - instanceBuilder_.mergeFrom(value); - } - if (instance_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - */ - public Builder clearInstance() { - bitField0_ = (bitField0_ & ~0x00000001); - instance_ = null; - if (instanceBuilder_ != null) { - instanceBuilder_.dispose(); - instanceBuilder_ = null; - } - onChanged(); - return this; + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder getInstanceBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getInstanceFieldBuilder().getBuilder(); + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); } - /** - *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder getInstanceOrBuilder() { - if (instanceBuilder_ != null) { - return instanceBuilder_.getMessageOrBuilder(); - } else { - return instance_ == null ? - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance() : instance_; - } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** *
-       * instance is the currently assigned WorkspaceInstance to this workspace. Empty when there is no WorkspaceInstance assigned.
+       * GitProvider describes the git provider
        * 
* - * .gitpod.experimental.v1.WorkspaceInstance instance = 1 [json_name = "instance"]; + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.GitProvider} */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder> - getInstanceFieldBuilder() { - if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); - instance_ = null; - } - return instanceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceStatus) - } - - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceStatus) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus(); - } - - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkspaceStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.GitProvider) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; } - return builder.buildPartial(); - } - }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.newBuilder() + private Builder() { - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + } - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); - public interface WorkspaceContextOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext) - com.google.protobuf.MessageOrBuilder { + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + hostname_ = ""; + return this; + } - /** - *
-     * All workspace context originates from a URL - this is the context URL
-     * which led to the creation of a workspace.
-     * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @return The contextUrl. - */ - java.lang.String getContextUrl(); - /** - *
-     * All workspace context originates from a URL - this is the context URL
-     * which led to the creation of a workspace.
-     * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @return The bytes for contextUrl. - */ - com.google.protobuf.ByteString - getContextUrlBytes(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; + } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - * @return Whether the git field is set. - */ - boolean hasGit(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - * @return The git. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder(); + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance(); + } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - * @return Whether the prebuild field is set. - */ - boolean hasPrebuild(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - * @return The prebuild. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder(); + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - * @return Whether the snapshot field is set. - */ - boolean hasSnapshot(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - * @return The snapshot. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder(); + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.DetailsCase getDetailsCase(); - } - /** - *
-   * WorkspaceContext describes the context a workspace was created from
-   * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext} - */ - public static final class WorkspaceContext extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext) - WorkspaceContextOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 27, - /* patch= */ 2, - /* suffix= */ "", - WorkspaceContext.class.getName()); - } - // Use WorkspaceContext.newBuilder() to construct. - private WorkspaceContext(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WorkspaceContext() { - contextUrl_ = ""; - } + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hostname_ = hostname_; + } + } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider)other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder.class); - } + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public interface GitProviderOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.GitProvider) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - *
-       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-       * 
- * - * string type = 1 [json_name = "type"]; - * @return The type. - */ - java.lang.String getType(); - /** - *
-       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-       * 
- * - * string type = 1 [json_name = "type"]; - * @return The bytes for type. - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-       * hostname is the git provider hostname
-       * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @return The hostname. - */ - java.lang.String getHostname(); - /** - *
-       * hostname is the git provider hostname
-       * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @return The bytes for hostname. - */ - com.google.protobuf.ByteString - getHostnameBytes(); - } - /** - *
-     * GitProvider describes the git provider
-     * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.GitProvider} - */ - public static final class GitProvider extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.GitProvider) - GitProviderOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 27, - /* patch= */ 2, - /* suffix= */ "", - GitProvider.class.getName()); - } - // Use GitProvider.newBuilder() to construct. - private GitProvider(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private GitProvider() { - type_ = ""; - hostname_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; - /** - *
-       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-       * 
- * - * string type = 1 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - *
-       * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-       * 
- * - * string type = 1 [json_name = "type"]; - * @return The bytes for type. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - } + private int bitField0_; - public static final int HOSTNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object hostname_ = ""; - /** - *
-       * hostname is the git provider hostname
-       * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @return The hostname. - */ - @java.lang.Override - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostname_ = s; - return s; + private java.lang.Object type_ = ""; + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - } - /** - *
-       * hostname is the git provider hostname
-       * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @return The bytes for hostname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostname_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, hostname_); + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
+         * 
+ * + * string type = 1 [json_name = "type"]; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); + private java.lang.Object hostname_ = ""; + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(hostname_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, hostname_); + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + hostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider)) { - return super.equals(obj); + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * hostname is the git provider hostname
+         * 
+ * + * string hostname = 2 [json_name = "hostname"]; + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider) obj; - if (!getType() - .equals(other.getType())) return false; - if (!getHostname() - .equals(other.getHostname())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.GitProvider) } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostname().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.GitProvider) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } + } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public interface RepositoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Repository) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ + java.lang.String getOwner(); + /** + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. + */ + com.google.protobuf.ByteString + getOwnerBytes(); + } + /** + *
+     * Repository describes the originating repository
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Repository} + */ + public static final class Repository extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Repository) + RepositoryOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + Repository.class.getName()); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); + // Use Repository.newBuilder() to construct. + private Repository(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + private Repository() { + name_ = ""; + owner_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder.class); } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } } + /** + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int OWNER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object owner_ = ""; + /** + * string owner = 2 [json_name = "owner"]; + * @return The owner. + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + 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; + } } /** - *
-       * GitProvider describes the git provider
-       * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.GitProvider} + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.GitProvider) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; + @java.lang.Override + 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; } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder.class); - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.newBuilder() - private Builder() { + memoizedIsInitialized = 1; + return true; + } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, owner_); } + getUnknownFields().writeTo(output); + } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = ""; - hostname_ = ""; - return this; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, owner_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_GitProvider_descriptor; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance(); + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getOwner() + .equals(other.getOwner())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Repository describes the originating repository
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Repository} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Repository) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result = buildPartial(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + owner_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15512,42 +15202,42 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvid } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider(this); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider result) { + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; + result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hostname_ = hostname_; + result.owner_ = owner_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider)other); + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getHostname().isEmpty()) { - hostname_ = other.hostname_; + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; bitField0_ |= 0x00000002; onChanged(); } @@ -15578,12 +15268,12 @@ public Builder mergeFrom( done = true; break; case 10: { - type_ = input.readStringRequireUtf8(); + name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - hostname_ = input.readStringRequireUtf8(); + owner_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -15604,207 +15294,167 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object type_ = ""; + private java.lang.Object name_ = ""; /** - *
-         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-         * 
- * - * string type = 1 [json_name = "type"]; - * @return The type. + * string name = 1 [json_name = "name"]; + * @return The name. */ - public java.lang.String getType() { - java.lang.Object ref = type_; + 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(); - type_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-         * 
- * - * string type = 1 [json_name = "type"]; - * @return The bytes for type. + * string name = 1 [json_name = "name"]; + * @return The bytes for name. */ public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - type_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-         * 
- * - * string type = 1 [json_name = "type"]; - * @param value The type to set. + * string name = 1 [json_name = "name"]; + * @param value The name to set. * @return This builder for chaining. */ - public Builder setType( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - type_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - *
-         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-         * 
- * - * string type = 1 [json_name = "type"]; + * string name = 1 [json_name = "name"]; * @return This builder for chaining. */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); + public Builder clearName() { + name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - *
-         * type is the git provider type, e.g. 'github', 'gitlab', 'bitbucket'
-         * 
- * - * string type = 1 [json_name = "type"]; - * @param value The bytes for type to set. + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setTypeBytes( + public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - type_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object hostname_ = ""; + private java.lang.Object owner_ = ""; /** - *
-         * hostname is the git provider hostname
-         * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @return The hostname. + * string owner = 2 [json_name = "owner"]; + * @return The owner. */ - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; + 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(); - hostname_ = s; + owner_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-         * hostname is the git provider hostname
-         * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @return The bytes for hostname. + * string owner = 2 [json_name = "owner"]; + * @return The bytes for owner. */ public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; + getOwnerBytes() { + java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - hostname_ = b; + owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-         * hostname is the git provider hostname
-         * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @param value The hostname to set. + * string owner = 2 [json_name = "owner"]; + * @param value The owner to set. * @return This builder for chaining. */ - public Builder setHostname( + public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - hostname_ = value; + owner_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - *
-         * hostname is the git provider hostname
-         * 
- * - * string hostname = 2 [json_name = "hostname"]; + * string owner = 2 [json_name = "owner"]; * @return This builder for chaining. */ - public Builder clearHostname() { - hostname_ = getDefaultInstance().getHostname(); + public Builder clearOwner() { + owner_ = getDefaultInstance().getOwner(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - *
-         * hostname is the git provider hostname
-         * 
- * - * string hostname = 2 [json_name = "hostname"]; - * @param value The bytes for hostname to set. + * string owner = 2 [json_name = "owner"]; + * @param value The bytes for owner to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( + public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - hostname_ = value; + owner_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.GitProvider) + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Repository) } - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.GitProvider) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Repository) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider(); + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstance() { + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GitProvider parsePartialFrom( + public Repository parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15823,61 +15473,91 @@ public GitProvider parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getDefaultInstanceForType() { + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RepositoryOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Repository) + public interface GitOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Git) com.google.protobuf.MessageOrBuilder { /** - * string name = 1 [json_name = "name"]; - * @return The name. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The normalizedContextUrl. */ - java.lang.String getName(); + java.lang.String getNormalizedContextUrl(); /** - * string name = 1 [json_name = "name"]; - * @return The bytes for name. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The bytes for normalizedContextUrl. */ com.google.protobuf.ByteString - getNameBytes(); + getNormalizedContextUrlBytes(); /** - * string owner = 2 [json_name = "owner"]; - * @return The owner. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return Whether the repository field is set. */ - java.lang.String getOwner(); + boolean hasRepository(); /** - * string owner = 2 [json_name = "owner"]; - * @return The bytes for owner. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return The repository. */ - com.google.protobuf.ByteString - getOwnerBytes(); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder(); + + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + boolean hasProvider(); + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return The provider. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider(); + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder(); } /** *
-     * Repository describes the originating repository
+     * Explicit Git context
      * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Repository} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Git} */ - public static final class Repository extends + public static final class Git extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Repository) - RepositoryOrBuilder { + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Git) + GitOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( @@ -15886,111 +15566,136 @@ public static final class Repository extends /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", - Repository.class.getName()); + Git.class.getName()); } - // Use Repository.newBuilder() to construct. - private Repository(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use Git.newBuilder() to construct. + private Git(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Repository() { - name_ = ""; - owner_ = ""; + private Git() { + normalizedContextUrl_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; + private int bitField0_; + public static final int NORMALIZED_CONTEXT_URL_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + private volatile java.lang.Object normalizedContextUrl_ = ""; /** - * string name = 1 [json_name = "name"]; - * @return The name. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The normalizedContextUrl. */ @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getNormalizedContextUrl() { + java.lang.Object ref = normalizedContextUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + normalizedContextUrl_ = s; return s; } } /** - * string name = 1 [json_name = "name"]; - * @return The bytes for name. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The bytes for normalizedContextUrl. */ @java.lang.Override public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getNormalizedContextUrlBytes() { + java.lang.Object ref = normalizedContextUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + normalizedContextUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OWNER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object owner_ = ""; + public static final int REPOSITORY_FIELD_NUMBER = 2; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository repository_; /** - * string owner = 2 [json_name = "owner"]; - * @return The owner. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return Whether the repository field is set. */ @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; - } + public boolean hasRepository() { + return ((bitField0_ & 0x00000001) != 0); } /** - * string owner = 2 [json_name = "owner"]; - * @return The bytes for owner. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return The repository. */ @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 io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository() { + return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; } - - private byte memoizedIsInitialized = -1; + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ @java.lang.Override - public final boolean isInitialized() { + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() { + return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + } + + public static final int PROVIDER_FIELD_NUMBER = 3; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider provider_; + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + @java.lang.Override + public boolean hasProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return The provider. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider() { + return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } + /** + *
+       * provider is the git provider
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder() { + return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; @@ -16002,11 +15707,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(normalizedContextUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, normalizedContextUrl_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, owner_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRepository()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getProvider()); } getUnknownFields().writeTo(output); } @@ -16017,11 +15725,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(normalizedContextUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, normalizedContextUrl_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(owner_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, owner_); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRepository()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProvider()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16033,15 +15746,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository)) { + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git)) { return super.equals(obj); } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository) obj; + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getOwner() - .equals(other.getOwner())) return false; + if (!getNormalizedContextUrl() + .equals(other.getNormalizedContextUrl())) return false; + if (hasRepository() != other.hasRepository()) return false; + if (hasRepository()) { + if (!getRepository() + .equals(other.getRepository())) return false; + } + if (hasProvider() != other.hasProvider()) return false; + if (hasProvider()) { + if (!getProvider() + .equals(other.getProvider())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16053,53 +15774,59 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + OWNER_FIELD_NUMBER; - hash = (53 * hash) + getOwner().hashCode(); + hash = (37 * hash) + NORMALIZED_CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedContextUrl().hashCode(); + if (hasRepository()) { + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + } + if (hasProvider()) { + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom(byte[] data) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16107,26 +15834,26 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Re .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseDelimitedFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16139,7 +15866,7 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Re public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository prototype) { + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -16156,61 +15883,77 @@ protected Builder newBuilderForType( } /** *
-       * Repository describes the originating repository
+       * Explicit Git context
        * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Repository} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Git} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Repository) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder { + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Git) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder.class); } - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.newBuilder() + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getRepositoryFieldBuilder(); + getProviderFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - name_ = ""; - owner_ = ""; + normalizedContextUrl_ = ""; + repository_ = null; + if (repositoryBuilder_ != null) { + repositoryBuilder_.dispose(); + repositoryBuilder_ = null; + } + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Repository_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result = buildPartial(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -16218,44 +15961,56 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repositor } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository(this); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository result) { + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; + result.normalizedContextUrl_ = normalizedContextUrl_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.owner_ = owner_; + result.repository_ = repositoryBuilder_ == null + ? repository_ + : repositoryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.provider_ = providerBuilder_ == null + ? provider_ + : providerBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository)other); + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) return this; + if (!other.getNormalizedContextUrl().isEmpty()) { + normalizedContextUrl_ = other.normalizedContextUrl_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getOwner().isEmpty()) { - owner_ = other.owner_; - bitField0_ |= 0x00000002; - onChanged(); + if (other.hasRepository()) { + mergeRepository(other.getRepository()); + } + if (other.hasProvider()) { + mergeProvider(other.getProvider()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -16284,15 +16039,24 @@ public Builder mergeFrom( done = true; break; case 10: { - name_ = input.readStringRequireUtf8(); + normalizedContextUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - owner_ = input.readStringRequireUtf8(); + input.readMessage( + getRepositoryFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 + case 26: { + input.readMessage( + getProviderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -16310,403 +16074,590 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object name_ = ""; + private java.lang.Object normalizedContextUrl_ = ""; /** - * string name = 1 [json_name = "name"]; - * @return The name. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The normalizedContextUrl. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getNormalizedContextUrl() { + java.lang.Object ref = normalizedContextUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + normalizedContextUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string name = 1 [json_name = "name"]; - * @return The bytes for name. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @return The bytes for normalizedContextUrl. */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getNormalizedContextUrlBytes() { + java.lang.Object ref = normalizedContextUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + normalizedContextUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string name = 1 [json_name = "name"]; - * @param value The name to set. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @param value The normalizedContextUrl to set. * @return This builder for chaining. */ - public Builder setName( + public Builder setNormalizedContextUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + normalizedContextUrl_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string name = 1 [json_name = "name"]; + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); + public Builder clearNormalizedContextUrl() { + normalizedContextUrl_ = getDefaultInstance().getNormalizedContextUrl(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. + * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; + * @param value The bytes for normalizedContextUrl to set. * @return This builder for chaining. */ - public Builder setNameBytes( + public Builder setNormalizedContextUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + normalizedContextUrl_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object owner_ = ""; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository repository_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder> repositoryBuilder_; /** - * string owner = 2 [json_name = "owner"]; - * @return The owner. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return Whether the repository field is set. */ - 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; + public boolean hasRepository() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + * @return The repository. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository() { + if (repositoryBuilder_ == null) { + return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; } else { - return (java.lang.String) ref; + return repositoryBuilder_.getMessage(); } } /** - * string owner = 2 [json_name = "owner"]; - * @return The bytes for owner. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; */ - 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; + public Builder setRepository(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository value) { + if (repositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; } else { - return (com.google.protobuf.ByteString) ref; + repositoryBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** - * string owner = 2 [json_name = "owner"]; - * @param value The owner to set. - * @return This builder for chaining. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; */ - public Builder setOwner( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - owner_ = value; + public Builder setRepository( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder builderForValue) { + if (repositoryBuilder_ == null) { + repository_ = builderForValue.build(); + } else { + repositoryBuilder_.setMessage(builderForValue.build()); + } bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string owner = 2 [json_name = "owner"]; - * @return This builder for chaining. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; */ - public Builder clearOwner() { - owner_ = getDefaultInstance().getOwner(); + public Builder mergeRepository(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository value) { + if (repositoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + repository_ != null && + repository_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance()) { + getRepositoryBuilder().mergeFrom(value); + } else { + repository_ = value; + } + } else { + repositoryBuilder_.mergeFrom(value); + } + if (repository_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public Builder clearRepository() { bitField0_ = (bitField0_ & ~0x00000002); + repository_ = null; + if (repositoryBuilder_ != null) { + repositoryBuilder_.dispose(); + repositoryBuilder_ = null; + } onChanged(); return this; } /** - * string owner = 2 [json_name = "owner"]; - * @param value The bytes for owner to set. - * @return This builder for chaining. + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; */ - public Builder setOwnerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - owner_ = value; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder getRepositoryBuilder() { bitField0_ |= 0x00000002; onChanged(); - return this; + return getRepositoryFieldBuilder().getBuilder(); } - - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Repository) - } - - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Repository) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository(); - } - - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Repository parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() { + if (repositoryBuilder_ != null) { + return repositoryBuilder_.getMessageOrBuilder(); + } else { + return repository_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; } - return builder.buildPartial(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GitOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Git) - com.google.protobuf.MessageOrBuilder { - - /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @return The normalizedContextUrl. - */ - java.lang.String getNormalizedContextUrl(); - /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @return The bytes for normalizedContextUrl. - */ - com.google.protobuf.ByteString - getNormalizedContextUrlBytes(); - - /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - * @return Whether the repository field is set. - */ - boolean hasRepository(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - * @return The repository. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository(); - /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder(); + /** + * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder> + getRepositoryFieldBuilder() { + if (repositoryBuilder_ == null) { + repositoryBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder>( + getRepository(), + getParentForChildren(), + isClean()); + repository_ = null; + } + return repositoryBuilder_; + } - /** - *
-       * provider is the git provider
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - * @return Whether the provider field is set. - */ - boolean hasProvider(); - /** - *
-       * provider is the git provider
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - * @return The provider. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider(); - /** - *
-       * provider is the git provider
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder(); - } - /** - *
-     * Explicit Git context
-     * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Git} - */ - public static final class Git extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Git) - GitOrBuilder { - private static final long serialVersionUID = 0L; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider provider_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder> providerBuilder_; + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + public boolean hasProvider() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * @return The provider. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider() { + if (providerBuilder_ == null) { + return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } else { + return providerBuilder_.getMessage(); + } + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder setProvider(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider value) { + if (providerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + } else { + providerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder setProvider( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder builderForValue) { + if (providerBuilder_ == null) { + provider_ = builderForValue.build(); + } else { + providerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder mergeProvider(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider value) { + if (providerBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + provider_ != null && + provider_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance()) { + getProviderBuilder().mergeFrom(value); + } else { + provider_ = value; + } + } else { + providerBuilder_.mergeFrom(value); + } + if (provider_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public Builder clearProvider() { + bitField0_ = (bitField0_ & ~0x00000004); + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder getProviderBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getProviderFieldBuilder().getBuilder(); + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder() { + if (providerBuilder_ != null) { + return providerBuilder_.getMessageOrBuilder(); + } else { + return provider_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + } + } + /** + *
+         * provider is the git provider
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder> + getProviderFieldBuilder() { + if (providerBuilder_ == null) { + providerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder>( + getProvider(), + getParentForChildren(), + isClean()); + provider_ = null; + } + return providerBuilder_; + } + + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Git) + } + + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Git) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 27, - /* patch= */ 2, - /* suffix= */ "", - Git.class.getName()); + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git(); } - // Use Git.newBuilder() to construct. - private Git(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstance() { + return DEFAULT_INSTANCE; } - private Git() { - normalizedContextUrl_ = ""; + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Git parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder.class); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - private int bitField0_; - public static final int NORMALIZED_CONTEXT_URL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object normalizedContextUrl_ = ""; + } + + public interface PrebuildOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Prebuild) + com.google.protobuf.MessageOrBuilder { + /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @return The normalizedContextUrl. + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return Whether the originalContext field is set. */ - @java.lang.Override - public java.lang.String getNormalizedContextUrl() { - java.lang.Object ref = normalizedContextUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - normalizedContextUrl_ = s; - return s; - } - } + boolean hasOriginalContext(); /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @return The bytes for normalizedContextUrl. + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return The originalContext. */ - @java.lang.Override - public com.google.protobuf.ByteString - getNormalizedContextUrlBytes() { - java.lang.Object ref = normalizedContextUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - normalizedContextUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext(); + /** + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder(); - public static final int REPOSITORY_FIELD_NUMBER = 2; - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository repository_; /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - * @return Whether the repository field is set. + *
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
+       * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The prebuildId. + */ + java.lang.String getPrebuildId(); + /** + *
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
+       * 
+ * + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. */ + com.google.protobuf.ByteString + getPrebuildIdBytes(); + } + /** + *
+     * Workspace was created from a prebuild
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Prebuild} + */ + public static final class Prebuild extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Prebuild) + PrebuildOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + Prebuild.class.getName()); + } + // Use Prebuild.newBuilder() to construct. + private Prebuild(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Prebuild() { + prebuildId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + } + @java.lang.Override - public boolean hasRepository() { - return ((bitField0_ & 0x00000001) != 0); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder.class); } + + private int bitField0_; + public static final int ORIGINAL_CONTEXT_FIELD_NUMBER = 1; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git originalContext_; /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - * @return The repository. + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return Whether the originalContext field is set. */ @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository() { - return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + public boolean hasOriginalContext() { + return ((bitField0_ & 0x00000001) != 0); } /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + *
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return The originalContext. */ @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() { - return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext() { + return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; } - - public static final int PROVIDER_FIELD_NUMBER = 3; - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider provider_; /** *
-       * provider is the git provider
+       * original_context is the Git context which lead to the selection
+       * of a prebuild.
        * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - * @return Whether the provider field is set. + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ @java.lang.Override - public boolean hasProvider() { - return ((bitField0_ & 0x00000002) != 0); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder() { + return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; } + + public static final int PREBUILD_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object prebuildId_ = ""; /** *
-       * provider is the git provider
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
        * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - * @return The provider. + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The prebuildId. */ @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider() { - return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; + } } /** *
-       * provider is the git provider
+       * prebuild_id is the ID of the prebuild which was used to create this workspace
        * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. */ @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder() { - return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -16723,14 +16674,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(normalizedContextUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, normalizedContextUrl_); - } if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getRepository()); + output.writeMessage(1, getOriginalContext()); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getProvider()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, prebuildId_); } getUnknownFields().writeTo(output); } @@ -16741,16 +16689,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(normalizedContextUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, normalizedContextUrl_); - } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRepository()); + .computeMessageSize(1, getOriginalContext()); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProvider()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, prebuildId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16762,23 +16706,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git)) { + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild)) { return super.equals(obj); } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) obj; + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) obj; - if (!getNormalizedContextUrl() - .equals(other.getNormalizedContextUrl())) return false; - if (hasRepository() != other.hasRepository()) return false; - if (hasRepository()) { - if (!getRepository() - .equals(other.getRepository())) return false; - } - if (hasProvider() != other.hasProvider()) return false; - if (hasProvider()) { - if (!getProvider() - .equals(other.getProvider())) return false; + if (hasOriginalContext() != other.hasOriginalContext()) return false; + if (hasOriginalContext()) { + if (!getOriginalContext() + .equals(other.getOriginalContext())) return false; } + if (!getPrebuildId() + .equals(other.getPrebuildId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16790,59 +16729,55 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NORMALIZED_CONTEXT_URL_FIELD_NUMBER; - hash = (53 * hash) + getNormalizedContextUrl().hashCode(); - if (hasRepository()) { - hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; - hash = (53 * hash) + getRepository().hashCode(); - } - if (hasProvider()) { - hash = (37 * hash) + PROVIDER_FIELD_NUMBER; - hash = (53 * hash) + getProvider().hashCode(); + if (hasOriginalContext()) { + hash = (37 * hash) + ORIGINAL_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getOriginalContext().hashCode(); } + hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrebuildId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom(byte[] data) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16850,26 +16785,26 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Gi .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseDelimitedFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16882,7 +16817,7 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Gi public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git prototype) { + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -16899,29 +16834,29 @@ protected Builder newBuilderForType( } /** *
-       * Explicit Git context
+       * Workspace was created from a prebuild
        * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Git} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Prebuild} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Git) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder { + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Prebuild) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder.class); } - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.newBuilder() + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -16934,42 +16869,36 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { - getRepositoryFieldBuilder(); - getProviderFieldBuilder(); + getOriginalContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - normalizedContextUrl_ = ""; - repository_ = null; - if (repositoryBuilder_ != null) { - repositoryBuilder_.dispose(); - repositoryBuilder_ = null; - } - provider_ = null; - if (providerBuilder_ != null) { - providerBuilder_.dispose(); - providerBuilder_ = null; + originalContext_ = null; + if (originalContextBuilder_ != null) { + originalContextBuilder_.dispose(); + originalContextBuilder_ = null; } + prebuildId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Git_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result = buildPartial(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -16977,56 +16906,47 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git build } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git(this); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git result) { + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.normalizedContextUrl_ = normalizedContextUrl_; - } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.repository_ = repositoryBuilder_ == null - ? repository_ - : repositoryBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalContext_ = originalContextBuilder_ == null + ? originalContext_ + : originalContextBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.provider_ = providerBuilder_ == null - ? provider_ - : providerBuilder_.build(); - to_bitField0_ |= 0x00000002; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prebuildId_ = prebuildId_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git)other); + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) return this; - if (!other.getNormalizedContextUrl().isEmpty()) { - normalizedContextUrl_ = other.normalizedContextUrl_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasRepository()) { - mergeRepository(other.getRepository()); + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance()) return this; + if (other.hasOriginalContext()) { + mergeOriginalContext(other.getOriginalContext()); } - if (other.hasProvider()) { - mergeProvider(other.getProvider()); + if (!other.getPrebuildId().isEmpty()) { + prebuildId_ = other.prebuildId_; + bitField0_ |= 0x00000002; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -17055,24 +16975,17 @@ public Builder mergeFrom( done = true; break; case 10: { - normalizedContextUrl_ = input.readStringRequireUtf8(); + input.readMessage( + getOriginalContextFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - input.readMessage( - getRepositoryFieldBuilder().getBuilder(), - extensionRegistry); + prebuildId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 - case 26: { - input.readMessage( - getProviderFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -17090,373 +17003,281 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object normalizedContextUrl_ = ""; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git originalContext_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> originalContextBuilder_; /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @return The normalizedContextUrl. + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return Whether the originalContext field is set. */ - public java.lang.String getNormalizedContextUrl() { - java.lang.Object ref = normalizedContextUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - normalizedContextUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasOriginalContext() { + return ((bitField0_ & 0x00000001) != 0); } /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @return The bytes for normalizedContextUrl. + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * @return The originalContext. */ - public com.google.protobuf.ByteString - getNormalizedContextUrlBytes() { - java.lang.Object ref = normalizedContextUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - normalizedContextUrl_ = b; - return b; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext() { + if (originalContextBuilder_ == null) { + return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; } else { - return (com.google.protobuf.ByteString) ref; + return originalContextBuilder_.getMessage(); } } /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @param value The normalizedContextUrl to set. - * @return This builder for chaining. + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ - public Builder setNormalizedContextUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - normalizedContextUrl_ = value; + public Builder setOriginalContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (originalContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + originalContext_ = value; + } else { + originalContextBuilder_.setMessage(value); + } bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @return This builder for chaining. - */ - public Builder clearNormalizedContextUrl() { - normalizedContextUrl_ = getDefaultInstance().getNormalizedContextUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string normalized_context_url = 1 [json_name = "normalizedContextUrl"]; - * @param value The bytes for normalizedContextUrl to set. - * @return This builder for chaining. + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ - public Builder setNormalizedContextUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - normalizedContextUrl_ = value; + public Builder setOriginalContext( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder builderForValue) { + if (originalContextBuilder_ == null) { + originalContext_ = builderForValue.build(); + } else { + originalContextBuilder_.setMessage(builderForValue.build()); + } bitField0_ |= 0x00000001; onChanged(); return this; } - - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository repository_; - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder> repositoryBuilder_; /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - * @return Whether the repository field is set. + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ - public boolean hasRepository() { - return ((bitField0_ & 0x00000002) != 0); + public Builder mergeOriginalContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (originalContextBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + originalContext_ != null && + originalContext_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) { + getOriginalContextBuilder().mergeFrom(value); + } else { + originalContext_ = value; + } + } else { + originalContextBuilder_.mergeFrom(value); + } + if (originalContext_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; } /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - * @return The repository. - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository getRepository() { - if (repositoryBuilder_ == null) { - return repository_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; - } else { - return repositoryBuilder_.getMessage(); - } - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - */ - public Builder setRepository(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository value) { - if (repositoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - repository_ = value; - } else { - repositoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - */ - public Builder setRepository( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder builderForValue) { - if (repositoryBuilder_ == null) { - repository_ = builderForValue.build(); - } else { - repositoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; - */ - public Builder mergeRepository(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository value) { - if (repositoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - repository_ != null && - repository_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance()) { - getRepositoryBuilder().mergeFrom(value); - } else { - repository_ = value; - } - } else { - repositoryBuilder_.mergeFrom(value); - } - if (repository_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ - public Builder clearRepository() { - bitField0_ = (bitField0_ & ~0x00000002); - repository_ = null; - if (repositoryBuilder_ != null) { - repositoryBuilder_.dispose(); - repositoryBuilder_ = null; + public Builder clearOriginalContext() { + bitField0_ = (bitField0_ & ~0x00000001); + originalContext_ = null; + if (originalContextBuilder_ != null) { + originalContextBuilder_.dispose(); + originalContextBuilder_ = null; } onChanged(); return this; } /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder getRepositoryBuilder() { - bitField0_ |= 0x00000002; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder getOriginalContextBuilder() { + bitField0_ |= 0x00000001; onChanged(); - return getRepositoryFieldBuilder().getBuilder(); + return getOriginalContextFieldBuilder().getBuilder(); } /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder getRepositoryOrBuilder() { - if (repositoryBuilder_ != null) { - return repositoryBuilder_.getMessageOrBuilder(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder() { + if (originalContextBuilder_ != null) { + return originalContextBuilder_.getMessageOrBuilder(); } else { - return repository_ == null ? - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.getDefaultInstance() : repository_; + return originalContext_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; } } /** - * .gitpod.experimental.v1.WorkspaceContext.Repository repository = 2 [json_name = "repository"]; + *
+         * original_context is the Git context which lead to the selection
+         * of a prebuild.
+         * 
+ * + * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; */ private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder> - getRepositoryFieldBuilder() { - if (repositoryBuilder_ == null) { - repositoryBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Repository.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.RepositoryOrBuilder>( - getRepository(), + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> + getOriginalContextFieldBuilder() { + if (originalContextBuilder_ == null) { + originalContextBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder>( + getOriginalContext(), getParentForChildren(), isClean()); - repository_ = null; + originalContext_ = null; } - return repositoryBuilder_; + return originalContextBuilder_; } - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider provider_; - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder> providerBuilder_; - /** - *
-         * provider is the git provider
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - * @return Whether the provider field is set. - */ - public boolean hasProvider() { - return ((bitField0_ & 0x00000004) != 0); - } + private java.lang.Object prebuildId_ = ""; /** *
-         * provider is the git provider
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
          * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - * @return The provider. + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The prebuildId. */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider getProvider() { - if (providerBuilder_ == null) { - return provider_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; + public java.lang.String getPrebuildId() { + java.lang.Object ref = prebuildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prebuildId_ = s; + return s; } else { - return providerBuilder_.getMessage(); + return (java.lang.String) ref; } } /** *
-         * provider is the git provider
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
          * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return The bytes for prebuildId. */ - public Builder setProvider(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider value) { - if (providerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - provider_ = value; + public com.google.protobuf.ByteString + getPrebuildIdBytes() { + java.lang.Object ref = prebuildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prebuildId_ = b; + return b; } else { - providerBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** *
-         * provider is the git provider
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
          * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @param value The prebuildId to set. + * @return This builder for chaining. */ - public Builder setProvider( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder builderForValue) { - if (providerBuilder_ == null) { - provider_ = builderForValue.build(); - } else { - providerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; + public Builder setPrebuildId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prebuildId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** *
-         * provider is the git provider
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
          * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @return This builder for chaining. */ - public Builder mergeProvider(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider value) { - if (providerBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - provider_ != null && - provider_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance()) { - getProviderBuilder().mergeFrom(value); - } else { - provider_ = value; - } - } else { - providerBuilder_.mergeFrom(value); - } - if (provider_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } + public Builder clearPrebuildId() { + prebuildId_ = getDefaultInstance().getPrebuildId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); return this; } /** *
-         * provider is the git provider
+         * prebuild_id is the ID of the prebuild which was used to create this workspace
          * 
* - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; + * string prebuild_id = 2 [json_name = "prebuildId"]; + * @param value The bytes for prebuildId to set. + * @return This builder for chaining. */ - public Builder clearProvider() { - bitField0_ = (bitField0_ & ~0x00000004); - provider_ = null; - if (providerBuilder_ != null) { - providerBuilder_.dispose(); - providerBuilder_ = null; - } + public Builder setPrebuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prebuildId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - /** - *
-         * provider is the git provider
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder getProviderBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getProviderFieldBuilder().getBuilder(); - } - /** - *
-         * provider is the git provider
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder getProviderOrBuilder() { - if (providerBuilder_ != null) { - return providerBuilder_.getMessageOrBuilder(); - } else { - return provider_ == null ? - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.getDefaultInstance() : provider_; - } - } - /** - *
-         * provider is the git provider
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.GitProvider provider = 3 [json_name = "provider"]; - */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder> - getProviderFieldBuilder() { - if (providerBuilder_ == null) { - providerBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProvider.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitProviderOrBuilder>( - getProvider(), - getParentForChildren(), - isClean()); - provider_ = null; - } - return providerBuilder_; - } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Git) + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Prebuild) } - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Git) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Prebuild) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git(); + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstance() { + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Git parsePartialFrom( + public Prebuild parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17475,87 +17296,49 @@ public Git parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getDefaultInstanceForType() { + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PrebuildOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Prebuild) + public interface SnapshotOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Snapshot) com.google.protobuf.MessageOrBuilder { /** - *
-       * original_context is the Git context which lead to the selection
-       * of a prebuild.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - * @return Whether the originalContext field is set. - */ - boolean hasOriginalContext(); - /** - *
-       * original_context is the Git context which lead to the selection
-       * of a prebuild.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - * @return The originalContext. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext(); - /** - *
-       * original_context is the Git context which lead to the selection
-       * of a prebuild.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder(); - - /** - *
-       * prebuild_id is the ID of the prebuild which was used to create this workspace
-       * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @return The prebuildId. + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. */ - java.lang.String getPrebuildId(); + java.lang.String getSnapshotId(); /** - *
-       * prebuild_id is the ID of the prebuild which was used to create this workspace
-       * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @return The bytes for prebuildId. + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. */ com.google.protobuf.ByteString - getPrebuildIdBytes(); + getSnapshotIdBytes(); } /** *
-     * Workspace was created from a prebuild
+     * Snapshot context points to the snapshot which the workspace was created from
      * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Prebuild} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Snapshot} */ - public static final class Prebuild extends + public static final class Snapshot extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Prebuild) - PrebuildOrBuilder { + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Snapshot) + SnapshotOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( @@ -17564,112 +17347,62 @@ public static final class Prebuild extends /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", - Prebuild.class.getName()); + Snapshot.class.getName()); } - // Use Prebuild.newBuilder() to construct. - private Prebuild(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use Snapshot.newBuilder() to construct. + private Snapshot(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Prebuild() { - prebuildId_ = ""; + private Snapshot() { + snapshotId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder.class); - } - - private int bitField0_; - public static final int ORIGINAL_CONTEXT_FIELD_NUMBER = 1; - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git originalContext_; - /** - *
-       * original_context is the Git context which lead to the selection
-       * of a prebuild.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - * @return Whether the originalContext field is set. - */ - @java.lang.Override - public boolean hasOriginalContext() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * original_context is the Git context which lead to the selection
-       * of a prebuild.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - * @return The originalContext. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext() { - return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; - } - /** - *
-       * original_context is the Git context which lead to the selection
-       * of a prebuild.
-       * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder() { - return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder.class); } - public static final int PREBUILD_ID_FIELD_NUMBER = 2; + public static final int SNAPSHOT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object prebuildId_ = ""; + private volatile java.lang.Object snapshotId_ = ""; /** - *
-       * prebuild_id is the ID of the prebuild which was used to create this workspace
-       * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @return The prebuildId. + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. */ @java.lang.Override - public java.lang.String getPrebuildId() { - java.lang.Object ref = prebuildId_; + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - prebuildId_ = s; + snapshotId_ = s; return s; } } /** - *
-       * prebuild_id is the ID of the prebuild which was used to create this workspace
-       * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @return The bytes for prebuildId. + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. */ @java.lang.Override public com.google.protobuf.ByteString - getPrebuildIdBytes() { - java.lang.Object ref = prebuildId_; + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - prebuildId_ = b; + snapshotId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -17690,11 +17423,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getOriginalContext()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, prebuildId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshotId_); } getUnknownFields().writeTo(output); } @@ -17705,12 +17435,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOriginalContext()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(prebuildId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, prebuildId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshotId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -17722,18 +17448,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild)) { + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot)) { return super.equals(obj); } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) obj; + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) obj; - if (hasOriginalContext() != other.hasOriginalContext()) return false; - if (hasOriginalContext()) { - if (!getOriginalContext() - .equals(other.getOriginalContext())) return false; - } - if (!getPrebuildId() - .equals(other.getPrebuildId())) return false; + if (!getSnapshotId() + .equals(other.getSnapshotId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17745,55 +17466,51 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOriginalContext()) { - hash = (37 * hash) + ORIGINAL_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getOriginalContext().hashCode(); - } - hash = (37 * hash) + PREBUILD_ID_FIELD_NUMBER; - hash = (53 * hash) + getPrebuildId().hashCode(); + hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom(byte[] data) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17801,26 +17518,26 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Pr .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseDelimitedFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17833,7 +17550,7 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Pr public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild prototype) { + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -17850,71 +17567,60 @@ protected Builder newBuilderForType( } /** *
-       * Workspace was created from a prebuild
+       * Snapshot context points to the snapshot which the workspace was created from
        * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Prebuild} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Snapshot} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Prebuild) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder { + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Snapshot) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder.class); } - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.newBuilder() + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - getOriginalContextFieldBuilder(); - } + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - originalContext_ = null; - if (originalContextBuilder_ != null) { - originalContextBuilder_.dispose(); - originalContextBuilder_ = null; - } - prebuildId_ = ""; + snapshotId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Prebuild_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result = buildPartial(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -17922,46 +17628,35 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild(this); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild result) { + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.originalContext_ = originalContextBuilder_ == null - ? originalContext_ - : originalContextBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.prebuildId_ = prebuildId_; + result.snapshotId_ = snapshotId_; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild)other); + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance()) return this; - if (other.hasOriginalContext()) { - mergeOriginalContext(other.getOriginalContext()); - } - if (!other.getPrebuildId().isEmpty()) { - prebuildId_ = other.prebuildId_; - bitField0_ |= 0x00000002; + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance()) return this; + if (!other.getSnapshotId().isEmpty()) { + snapshotId_ = other.snapshotId_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -17991,17 +17686,10 @@ public Builder mergeFrom( done = true; break; case 10: { - input.readMessage( - getOriginalContextFieldBuilder().getBuilder(), - extensionRegistry); + snapshotId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 18: { - prebuildId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -18019,281 +17707,95 @@ public Builder mergeFrom( } private int bitField0_; - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git originalContext_; - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> originalContextBuilder_; - /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - * @return Whether the originalContext field is set. - */ - public boolean hasOriginalContext() { - return ((bitField0_ & 0x00000001) != 0); - } + private java.lang.Object snapshotId_ = ""; /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - * @return The originalContext. + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The snapshotId. */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getOriginalContext() { - if (originalContextBuilder_ == null) { - return originalContext_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; + public java.lang.String getSnapshotId() { + java.lang.Object ref = snapshotId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotId_ = s; + return s; } else { - return originalContextBuilder_.getMessage(); + return (java.lang.String) ref; } } /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return The bytes for snapshotId. */ - public Builder setOriginalContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { - if (originalContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - originalContext_ = value; + public com.google.protobuf.ByteString + getSnapshotIdBytes() { + java.lang.Object ref = snapshotId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotId_ = b; + return b; } else { - originalContextBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The snapshotId to set. + * @return This builder for chaining. */ - public Builder setOriginalContext( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder builderForValue) { - if (originalContextBuilder_ == null) { - originalContext_ = builderForValue.build(); - } else { - originalContextBuilder_.setMessage(builderForValue.build()); - } + public Builder setSnapshotId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + snapshotId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @return This builder for chaining. */ - public Builder mergeOriginalContext(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { - if (originalContextBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - originalContext_ != null && - originalContext_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) { - getOriginalContextBuilder().mergeFrom(value); - } else { - originalContext_ = value; - } - } else { - originalContextBuilder_.mergeFrom(value); - } - if (originalContext_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } + public Builder clearSnapshotId() { + snapshotId_ = getDefaultInstance().getSnapshotId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; + * string snapshot_id = 1 [json_name = "snapshotId"]; + * @param value The bytes for snapshotId to set. + * @return This builder for chaining. */ - public Builder clearOriginalContext() { - bitField0_ = (bitField0_ & ~0x00000001); - originalContext_ = null; - if (originalContextBuilder_ != null) { - originalContextBuilder_.dispose(); - originalContextBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder getOriginalContextBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getOriginalContextFieldBuilder().getBuilder(); - } - /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getOriginalContextOrBuilder() { - if (originalContextBuilder_ != null) { - return originalContextBuilder_.getMessageOrBuilder(); - } else { - return originalContext_ == null ? - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance() : originalContext_; - } - } - /** - *
-         * original_context is the Git context which lead to the selection
-         * of a prebuild.
-         * 
- * - * .gitpod.experimental.v1.WorkspaceContext.Git original_context = 1 [json_name = "originalContext"]; - */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> - getOriginalContextFieldBuilder() { - if (originalContextBuilder_ == null) { - originalContextBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder>( - getOriginalContext(), - getParentForChildren(), - isClean()); - originalContext_ = null; - } - return originalContextBuilder_; - } - - private java.lang.Object prebuildId_ = ""; - /** - *
-         * prebuild_id is the ID of the prebuild which was used to create this workspace
-         * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @return The prebuildId. - */ - public java.lang.String getPrebuildId() { - java.lang.Object ref = prebuildId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - prebuildId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * prebuild_id is the ID of the prebuild which was used to create this workspace
-         * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @return The bytes for prebuildId. - */ - public com.google.protobuf.ByteString - getPrebuildIdBytes() { - java.lang.Object ref = prebuildId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - prebuildId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * prebuild_id is the ID of the prebuild which was used to create this workspace
-         * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @param value The prebuildId to set. - * @return This builder for chaining. - */ - public Builder setPrebuildId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - prebuildId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-         * prebuild_id is the ID of the prebuild which was used to create this workspace
-         * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @return This builder for chaining. - */ - public Builder clearPrebuildId() { - prebuildId_ = getDefaultInstance().getPrebuildId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-         * prebuild_id is the ID of the prebuild which was used to create this workspace
-         * 
- * - * string prebuild_id = 2 [json_name = "prebuildId"]; - * @param value The bytes for prebuildId to set. - * @return This builder for chaining. - */ - public Builder setPrebuildIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - prebuildId_ = value; - bitField0_ |= 0x00000002; + public Builder setSnapshotIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + snapshotId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Prebuild) + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Snapshot) } - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Prebuild) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Snapshot) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild(); + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstance() { + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Prebuild parsePartialFrom( + public Snapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18312,3567 +17814,4167 @@ public Prebuild parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getDefaultInstanceForType() { + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SnapshotOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceContext.Snapshot) - com.google.protobuf.MessageOrBuilder { - - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @return The snapshotId. - */ - java.lang.String getSnapshotId(); + private int detailsCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object details_; + public enum DetailsCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GIT(2), + PREBUILD(3), + SNAPSHOT(4), + DETAILS_NOT_SET(0); + private final int value; + private DetailsCase(int value) { + this.value = value; + } /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @return The bytes for snapshotId. + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. */ - com.google.protobuf.ByteString - getSnapshotIdBytes(); + @java.lang.Deprecated + public static DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 2: return GIT; + case 3: return PREBUILD; + case 4: return SNAPSHOT; + case 0: return DETAILS_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); } + + public static final int CONTEXT_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object contextUrl_ = ""; /** *
-     * Snapshot context points to the snapshot which the workspace was created from
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
      * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Snapshot} + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. */ - public static final class Snapshot extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceContext.Snapshot) - SnapshotOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 27, - /* patch= */ 2, - /* suffix= */ "", - Snapshot.class.getName()); - } - // Use Snapshot.newBuilder() to construct. - private Snapshot(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Snapshot() { - snapshotId_ = ""; + @java.lang.Override + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; + } + /** + *
+     * All workspace context originates from a URL - this is the context URL
+     * which led to the creation of a workspace.
+     * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder.class); + public static final int GIT_FIELD_NUMBER = 2; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return detailsCase_ == 2; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return The git. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit() { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder() { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } - public static final int SNAPSHOT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object snapshotId_ = ""; - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @return The snapshotId. - */ - @java.lang.Override - public java.lang.String getSnapshotId() { - java.lang.Object ref = snapshotId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snapshotId_ = s; - return s; - } + public static final int PREBUILD_FIELD_NUMBER = 3; + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return detailsCase_ == 3; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild() { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; } - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @return The bytes for snapshotId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSnapshotIdBytes() { - java.lang.Object ref = snapshotId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - snapshotId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder() { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public static final int SNAPSHOT_FIELD_NUMBER = 4; + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return detailsCase_ == 4; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot() { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshotId_); - } - getUnknownFields().writeTo(output); + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder() { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshotId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshotId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, contextUrl_); + } + if (detailsCase_ == 2) { + output.writeMessage(2, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_); + } + if (detailsCase_ == 3) { + output.writeMessage(3, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_); + } + if (detailsCase_ == 4) { + output.writeMessage(4, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_); } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot)) { - return super.equals(obj); - } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) obj; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - if (!getSnapshotId() - .equals(other.getSnapshotId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contextUrl_); } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; - hash = (53 * hash) + getSnapshotId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + if (detailsCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_); } - - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (detailsCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + if (detailsCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext)) { + return super.equals(obj); } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext) obj; - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); + if (!getContextUrl() + .equals(other.getContextUrl())) return false; + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 2: + if (!getGit() + .equals(other.getGit())) return false; + break; + case 3: + if (!getPrebuild() + .equals(other.getPrebuild())) return false; + break; + case 4: + if (!getSnapshot() + .equals(other.getSnapshot())) return false; + break; + case 0: + default: } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXT_URL_FIELD_NUMBER; + hash = (53 * hash) + getContextUrl().hashCode(); + switch (detailsCase_) { + case 2: + hash = (37 * hash) + GIT_FIELD_NUMBER; + hash = (53 * hash) + getGit().hashCode(); + break; + case 3: + hash = (37 * hash) + PREBUILD_FIELD_NUMBER; + hash = (53 * hash) + getPrebuild().hashCode(); + break; + case 4: + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + break; + case 0: + default: } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceContext describes the context a workspace was created from
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder.class); } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.newBuilder() + private Builder() { + } - @java.lang.Override - protected Builder newBuilderForType( + private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + super(parent); + } - /** - *
-       * Snapshot context points to the snapshot which the workspace was created from
-       * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext.Snapshot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext.Snapshot) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextUrl_ = ""; + if (gitBuilder_ != null) { + gitBuilder_.clear(); } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder.class); + if (prebuildBuilder_ != null) { + prebuildBuilder_.clear(); } - - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.newBuilder() - private Builder() { - + if (snapshotBuilder_ != null) { + snapshotBuilder_.clear(); } + detailsCase_ = 0; + details_ = null; + return this; + } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; + } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - snapshotId_ = ""; - return this; - } + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor; + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); - } + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextUrl_ = contextUrl_; } + } - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; + private void buildPartialOneofs(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result) { + result.detailsCase_ = detailsCase_; + result.details_ = this.details_; + if (detailsCase_ == 2 && + gitBuilder_ != null) { + result.details_ = gitBuilder_.build(); } - - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshotId_ = snapshotId_; - } + if (detailsCase_ == 3 && + prebuildBuilder_ != null) { + result.details_ = prebuildBuilder_.build(); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot)other); - } else { - super.mergeFrom(other); - return this; - } + if (detailsCase_ == 4 && + snapshotBuilder_ != null) { + result.details_ = snapshotBuilder_.build(); } + } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance()) return this; - if (!other.getSnapshotId().isEmpty()) { - snapshotId_ = other.snapshotId_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext)other); + } else { + super.mergeFrom(other); return this; } + } - @java.lang.Override - public final boolean isInitialized() { - return true; + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance()) return this; + if (!other.getContextUrl().isEmpty()) { + contextUrl_ = other.contextUrl_; + bitField0_ |= 0x00000001; + onChanged(); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + switch (other.getDetailsCase()) { + case GIT: { + mergeGit(other.getGit()); + break; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - snapshotId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object snapshotId_ = ""; - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @return The snapshotId. - */ - public java.lang.String getSnapshotId() { - java.lang.Object ref = snapshotId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snapshotId_ = s; - return s; - } else { - return (java.lang.String) ref; + case PREBUILD: { + mergePrebuild(other.getPrebuild()); + break; } - } - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @return The bytes for snapshotId. - */ - public com.google.protobuf.ByteString - getSnapshotIdBytes() { - java.lang.Object ref = snapshotId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - snapshotId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + case SNAPSHOT: { + mergeSnapshot(other.getSnapshot()); + break; + } + case DETAILS_NOT_SET: { + break; } } - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @param value The snapshotId to set. - * @return This builder for chaining. - */ - public Builder setSnapshotId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - snapshotId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @return This builder for chaining. - */ - public Builder clearSnapshotId() { - snapshotId_ = getDefaultInstance().getSnapshotId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string snapshot_id = 1 [json_name = "snapshotId"]; - * @param value The bytes for snapshotId to set. - * @return This builder for chaining. - */ - public Builder setSnapshotIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - snapshotId_ = value; - bitField0_ |= 0x00000001; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + contextUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGitFieldBuilder().getBuilder(), + extensionRegistry); + detailsCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getPrebuildFieldBuilder().getBuilder(), + extensionRegistry); + detailsCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getSnapshotFieldBuilder().getBuilder(), + extensionRegistry); + detailsCase_ = 4; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext.Snapshot) + } // finally + return this; } - - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext.Snapshot) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot(); + private int detailsCase_ = 0; + private java.lang.Object details_; + public DetailsCase + getDetailsCase() { + return DetailsCase.forNumber( + detailsCase_); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstance() { - return DEFAULT_INSTANCE; + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private int bitField0_; - public static com.google.protobuf.Parser parser() { - return PARSER; + private java.lang.Object contextUrl_ = ""; + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The contextUrl. + */ + public java.lang.String getContextUrl() { + java.lang.Object ref = contextUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return The bytes for contextUrl. + */ + public com.google.protobuf.ByteString + getContextUrlBytes() { + java.lang.Object ref = contextUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contextUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @param value The contextUrl to set. + * @return This builder for chaining. + */ + public Builder setContextUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + contextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - - } - - private int detailsCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object details_; - public enum DetailsCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GIT(2), - PREBUILD(3), - SNAPSHOT(4), - DETAILS_NOT_SET(0); - private final int value; - private DetailsCase(int value) { - this.value = value; + /** + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @return This builder for chaining. + */ + public Builder clearContextUrl() { + contextUrl_ = getDefaultInstance().getContextUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + *
+       * All workspace context originates from a URL - this is the context URL
+       * which led to the creation of a workspace.
+       * 
+ * + * string context_url = 1 [json_name = "contextUrl"]; + * @param value The bytes for contextUrl to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public static DetailsCase valueOf(int value) { - return forNumber(value); + public Builder setContextUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + contextUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static DetailsCase forNumber(int value) { - switch (value) { - case 2: return GIT; - case 3: return PREBUILD; - case 4: return SNAPSHOT; - case 0: return DETAILS_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> gitBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return detailsCase_ == 2; } - }; - - public DetailsCase - getDetailsCase() { - return DetailsCase.forNumber( - detailsCase_); - } - - public static final int CONTEXT_URL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object contextUrl_ = ""; - /** - *
-     * All workspace context originates from a URL - this is the context URL
-     * which led to the creation of a workspace.
-     * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @return The contextUrl. - */ - @java.lang.Override - public java.lang.String getContextUrl() { - java.lang.Object ref = contextUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextUrl_ = s; - return s; - } - } - /** - *
-     * All workspace context originates from a URL - this is the context URL
-     * which led to the creation of a workspace.
-     * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @return The bytes for contextUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContextUrlBytes() { - java.lang.Object ref = contextUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contextUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + * @return The git. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit() { + if (gitBuilder_ == null) { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } else { + if (detailsCase_ == 2) { + return gitBuilder_.getMessage(); + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } } - } - - public static final int GIT_FIELD_NUMBER = 2; - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - * @return Whether the git field is set. - */ - @java.lang.Override - public boolean hasGit() { - return detailsCase_ == 2; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - * @return The git. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit() { - if (detailsCase_ == 2) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder setGit(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (gitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + gitBuilder_.setMessage(value); + } + detailsCase_ = 2; + return this; } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder() { - if (detailsCase_ == 2) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder setGit( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder builderForValue) { + if (gitBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + gitBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 2; + return this; } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); - } - - public static final int PREBUILD_FIELD_NUMBER = 3; - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - * @return Whether the prebuild field is set. - */ - @java.lang.Override - public boolean hasPrebuild() { - return detailsCase_ == 3; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - * @return The prebuild. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild() { - if (detailsCase_ == 3) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder mergeGit(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { + if (gitBuilder_ == null) { + if (detailsCase_ == 2 && + details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_) + .mergeFrom(value).buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 2) { + gitBuilder_.mergeFrom(value); + } else { + gitBuilder_.setMessage(value); + } + } + detailsCase_ = 2; + return this; } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder() { - if (detailsCase_ == 3) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public Builder clearGit() { + if (gitBuilder_ == null) { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + } + gitBuilder_.clear(); + } + return this; } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); - } - - public static final int SNAPSHOT_FIELD_NUMBER = 4; - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - * @return Whether the snapshot field is set. - */ - @java.lang.Override - public boolean hasSnapshot() { - return detailsCase_ == 4; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - * @return The snapshot. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot() { - if (detailsCase_ == 4) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder getGitBuilder() { + return getGitFieldBuilder().getBuilder(); } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder() { - if (detailsCase_ == 4) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder() { + if ((detailsCase_ == 2) && (gitBuilder_ != null)) { + return gitBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 2) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, contextUrl_); + /** + * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> + getGitFieldBuilder() { + if (gitBuilder_ == null) { + if (!(detailsCase_ == 2)) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); + } + gitBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder>( + (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 2; + onChanged(); + return gitBuilder_; } - if (detailsCase_ == 2) { - output.writeMessage(2, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_); + + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder> prebuildBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return Whether the prebuild field is set. + */ + @java.lang.Override + public boolean hasPrebuild() { + return detailsCase_ == 3; } - if (detailsCase_ == 3) { - output.writeMessage(3, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + * @return The prebuild. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild() { + if (prebuildBuilder_ == null) { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } else { + if (detailsCase_ == 3) { + return prebuildBuilder_.getMessage(); + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } } - if (detailsCase_ == 4) { - output.writeMessage(4, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder setPrebuild(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild value) { + if (prebuildBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + prebuildBuilder_.setMessage(value); + } + detailsCase_ = 3; + return this; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contextUrl_); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder setPrebuild( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder builderForValue) { + if (prebuildBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + prebuildBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 3; + return this; } - if (detailsCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder mergePrebuild(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild value) { + if (prebuildBuilder_ == null) { + if (detailsCase_ == 3 && + details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance()) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_) + .mergeFrom(value).buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 3) { + prebuildBuilder_.mergeFrom(value); + } else { + prebuildBuilder_.setMessage(value); + } + } + detailsCase_ = 3; + return this; } - if (detailsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public Builder clearPrebuild() { + if (prebuildBuilder_ == null) { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + } + prebuildBuilder_.clear(); + } + return this; } - if (detailsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder getPrebuildBuilder() { + return getPrebuildFieldBuilder().getBuilder(); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder() { + if ((detailsCase_ == 3) && (prebuildBuilder_ != null)) { + return prebuildBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 3) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext)) { - return super.equals(obj); + /** + * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder> + getPrebuildFieldBuilder() { + if (prebuildBuilder_ == null) { + if (!(detailsCase_ == 3)) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + } + prebuildBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder>( + (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 3; + onChanged(); + return prebuildBuilder_; } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext) obj; - if (!getContextUrl() - .equals(other.getContextUrl())) return false; - if (!getDetailsCase().equals(other.getDetailsCase())) return false; - switch (detailsCase_) { - case 2: - if (!getGit() - .equals(other.getGit())) return false; - break; - case 3: - if (!getPrebuild() - .equals(other.getPrebuild())) return false; - break; - case 4: - if (!getSnapshot() - .equals(other.getSnapshot())) return false; - break; - case 0: - default: + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder> snapshotBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return detailsCase_ == 4; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + * @return The snapshot. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot() { + if (snapshotBuilder_ == null) { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } else { + if (detailsCase_ == 4) { + return snapshotBuilder_.getMessage(); + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTEXT_URL_FIELD_NUMBER; - hash = (53 * hash) + getContextUrl().hashCode(); - switch (detailsCase_) { - case 2: - hash = (37 * hash) + GIT_FIELD_NUMBER; - hash = (53 * hash) + getGit().hashCode(); - break; - case 3: - hash = (37 * hash) + PREBUILD_FIELD_NUMBER; - hash = (53 * hash) + getPrebuild().hashCode(); - break; - case 4: - hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; - hash = (53 * hash) + getSnapshot().hashCode(); - break; - case 0: - default: + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder setSnapshot(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + snapshotBuilder_.setMessage(value); + } + detailsCase_ = 4; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder setSnapshot( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder builderForValue) { + if (snapshotBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 4; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder mergeSnapshot(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot value) { + if (snapshotBuilder_ == null) { + if (detailsCase_ == 4 && + details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance()) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_) + .mergeFrom(value).buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 4) { + snapshotBuilder_.mergeFrom(value); + } else { + snapshotBuilder_.setMessage(value); + } + } + detailsCase_ = 4; + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public Builder clearSnapshot() { + if (snapshotBuilder_ == null) { + if (detailsCase_ == 4) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 4) { + detailsCase_ = 0; + details_ = null; + } + snapshotBuilder_.clear(); + } + return this; + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder getSnapshotBuilder() { + return getSnapshotFieldBuilder().getBuilder(); + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder() { + if ((detailsCase_ == 4) && (snapshotBuilder_ != null)) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 4) { + return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; + } + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + } + /** + * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder> + getSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + if (!(detailsCase_ == 4)) { + details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + } + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder>( + (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 4; + onChanged(); + return snapshotBuilder_; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext) } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstance() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } + @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + + } + + public interface WorkspaceInstanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstance) + com.google.protobuf.MessageOrBuilder { + /** *
-     * WorkspaceContext describes the context a workspace was created from
+     * Instance ID is the unique identifier of the workspace instance
      * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceContext} + * string instance_id = 1 [json_name = "instanceId"]; + * @return The instanceId. */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceContext) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Builder.class); - } + java.lang.String getInstanceId(); + /** + *
+     * Instance ID is the unique identifier of the workspace instance
+     * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The bytes for instanceId. + */ + com.google.protobuf.ByteString + getInstanceIdBytes(); - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.newBuilder() - private Builder() { + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); - } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus(); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * WorkspaceInstance describes a single workspace instance
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstance} + */ + public static final class WorkspaceInstance extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstance) + WorkspaceInstanceOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + WorkspaceInstance.class.getName()); + } + // Use WorkspaceInstance.newBuilder() to construct. + private WorkspaceInstance(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceInstance() { + instanceId_ = ""; + workspaceId_ = ""; + } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - contextUrl_ = ""; - if (gitBuilder_ != null) { - gitBuilder_.clear(); - } - if (prebuildBuilder_ != null) { - prebuildBuilder_.clear(); - } - if (snapshotBuilder_ != null) { - snapshotBuilder_.clear(); - } - detailsCase_ = 0; - details_ = null; - return this; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder.class); + } - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance(); + private int bitField0_; + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + /** + *
+     * Instance ID is the unique identifier of the workspace instance
+     * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The instanceId. + */ + @java.lang.Override + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; } - - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + } + /** + *
+     * Instance ID is the unique identifier of the workspace instance
+     * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The bytes for instanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; + public static final int WORKSPACE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; } - - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.contextUrl_ = contextUrl_; - } + } + /** + *
+     * Workspace ID is the unique identifier of the workspace this instance belongs to
+     * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private void buildPartialOneofs(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext result) { - result.detailsCase_ = detailsCase_; - result.details_ = this.details_; - if (detailsCase_ == 2 && - gitBuilder_ != null) { - result.details_ = gitBuilder_.build(); - } - if (detailsCase_ == 3 && - prebuildBuilder_ != null) { - result.details_ = prebuildBuilder_.build(); - } - if (detailsCase_ == 4 && - snapshotBuilder_ != null) { - result.details_ = snapshotBuilder_.build(); - } - } + public static final int CREATED_AT_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createdAt_; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext)other); - } else { - super.mergeFrom(other); - return this; - } - } + public static final int STATUS_FIELD_NUMBER = 4; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus status_; + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.getDefaultInstance()) return this; - if (!other.getContextUrl().isEmpty()) { - contextUrl_ = other.contextUrl_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getDetailsCase()) { - case GIT: { - mergeGit(other.getGit()); - break; - } - case PREBUILD: { - mergePrebuild(other.getPrebuild()); - break; - } - case SNAPSHOT: { - mergeSnapshot(other.getSnapshot()); - break; - } - case DETAILS_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public final boolean isInitialized() { - return true; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - contextUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGitFieldBuilder().getBuilder(), - extensionRegistry); - detailsCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getPrebuildFieldBuilder().getBuilder(), - extensionRegistry); - detailsCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getSnapshotFieldBuilder().getBuilder(), - extensionRegistry); - detailsCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceId_); } - private int detailsCase_ = 0; - private java.lang.Object details_; - public DetailsCase - getDetailsCase() { - return DetailsCase.forNumber( - detailsCase_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workspaceId_); } - - public Builder clearDetails() { - detailsCase_ = 0; - details_ = null; - onChanged(); - return this; + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreatedAt()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getStatus()); } + getUnknownFields().writeTo(output); + } - private int bitField0_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private java.lang.Object contextUrl_ = ""; - /** - *
-       * All workspace context originates from a URL - this is the context URL
-       * which led to the creation of a workspace.
-       * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @return The contextUrl. - */ - public java.lang.String getContextUrl() { - java.lang.Object ref = contextUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceId_); } - /** - *
-       * All workspace context originates from a URL - this is the context URL
-       * which led to the creation of a workspace.
-       * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @return The bytes for contextUrl. - */ - public com.google.protobuf.ByteString - getContextUrlBytes() { - java.lang.Object ref = contextUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contextUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workspaceId_); } - /** - *
-       * All workspace context originates from a URL - this is the context URL
-       * which led to the creation of a workspace.
-       * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @param value The contextUrl to set. - * @return This builder for chaining. - */ - public Builder setContextUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - contextUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * All workspace context originates from a URL - this is the context URL
-       * which led to the creation of a workspace.
-       * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @return This builder for chaining. - */ - public Builder clearContextUrl() { - contextUrl_ = getDefaultInstance().getContextUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreatedAt()); } - /** - *
-       * All workspace context originates from a URL - this is the context URL
-       * which led to the creation of a workspace.
-       * 
- * - * string context_url = 1 [json_name = "contextUrl"]; - * @param value The bytes for contextUrl to set. - * @return This builder for chaining. - */ - public Builder setContextUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - contextUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStatus()); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> gitBuilder_; - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - * @return Whether the git field is set. - */ - @java.lang.Override - public boolean hasGit() { - return detailsCase_ == 2; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - * @return The git. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git getGit() { - if (gitBuilder_ == null) { - if (detailsCase_ == 2) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); - } else { - if (detailsCase_ == 2) { - return gitBuilder_.getMessage(); - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); - } - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - public Builder setGit(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { - if (gitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - details_ = value; - onChanged(); - } else { - gitBuilder_.setMessage(value); - } - detailsCase_ = 2; - return this; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - public Builder setGit( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder builderForValue) { - if (gitBuilder_ == null) { - details_ = builderForValue.build(); - onChanged(); - } else { - gitBuilder_.setMessage(builderForValue.build()); - } - detailsCase_ = 2; - return this; + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance)) { + return super.equals(obj); } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - public Builder mergeGit(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git value) { - if (gitBuilder_ == null) { - if (detailsCase_ == 2 && - details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance()) { - details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_) - .mergeFrom(value).buildPartial(); - } else { - details_ = value; - } - onChanged(); - } else { - if (detailsCase_ == 2) { - gitBuilder_.mergeFrom(value); - } else { - gitBuilder_.setMessage(value); - } - } - detailsCase_ = 2; - return this; + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance) obj; + + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - public Builder clearGit() { - if (gitBuilder_ == null) { - if (detailsCase_ == 2) { - detailsCase_ = 0; - details_ = null; - onChanged(); - } - } else { - if (detailsCase_ == 2) { - detailsCase_ = 0; - details_ = null; - } - gitBuilder_.clear(); - } - return this; + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder getGitBuilder() { - return getGitFieldBuilder().getBuilder(); + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder getGitOrBuilder() { - if ((detailsCase_ == 2) && (gitBuilder_ != null)) { - return gitBuilder_.getMessageOrBuilder(); - } else { - if (detailsCase_ == 2) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_; - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); - } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); } - /** - * .gitpod.experimental.v1.WorkspaceContext.Git git = 2 [json_name = "git"]; - */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder> - getGitFieldBuilder() { - if (gitBuilder_ == null) { - if (!(detailsCase_ == 2)) { - details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.getDefaultInstance(); - } - gitBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.GitOrBuilder>( - (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Git) details_, - getParentForChildren(), - isClean()); - details_ = null; - } - detailsCase_ = 2; - onChanged(); - return gitBuilder_; + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder> prebuildBuilder_; - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - * @return Whether the prebuild field is set. - */ - @java.lang.Override - public boolean hasPrebuild() { - return detailsCase_ == 3; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - * @return The prebuild. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild getPrebuild() { - if (prebuildBuilder_ == null) { - if (detailsCase_ == 3) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); - } else { - if (detailsCase_ == 3) { - return prebuildBuilder_.getMessage(); - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); - } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkspaceInstance describes a single workspace instance
+     * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstance) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - public Builder setPrebuild(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild value) { - if (prebuildBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - details_ = value; - onChanged(); - } else { - prebuildBuilder_.setMessage(value); - } - detailsCase_ = 3; - return this; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder.class); } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - public Builder setPrebuild( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder builderForValue) { - if (prebuildBuilder_ == null) { - details_ = builderForValue.build(); - onChanged(); - } else { - prebuildBuilder_.setMessage(builderForValue.build()); - } - detailsCase_ = 3; - return this; + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - public Builder mergePrebuild(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild value) { - if (prebuildBuilder_ == null) { - if (detailsCase_ == 3 && - details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance()) { - details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_) - .mergeFrom(value).buildPartial(); - } else { - details_ = value; - } - onChanged(); - } else { - if (detailsCase_ == 3) { - prebuildBuilder_.mergeFrom(value); - } else { - prebuildBuilder_.setMessage(value); - } - } - detailsCase_ = 3; - return this; + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - public Builder clearPrebuild() { - if (prebuildBuilder_ == null) { - if (detailsCase_ == 3) { - detailsCase_ = 0; - details_ = null; - onChanged(); - } - } else { - if (detailsCase_ == 3) { - detailsCase_ = 0; - details_ = null; - } - prebuildBuilder_.clear(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getStatusFieldBuilder(); } - return this; - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder getPrebuildBuilder() { - return getPrebuildFieldBuilder().getBuilder(); } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder getPrebuildOrBuilder() { - if ((detailsCase_ == 3) && (prebuildBuilder_ != null)) { - return prebuildBuilder_.getMessageOrBuilder(); - } else { - if (detailsCase_ == 3) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_; - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); + public Builder clear() { + super.clear(); + bitField0_ = 0; + instanceId_ = ""; + workspaceId_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; } - } - /** - * .gitpod.experimental.v1.WorkspaceContext.Prebuild prebuild = 3 [json_name = "prebuild"]; - */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder> - getPrebuildFieldBuilder() { - if (prebuildBuilder_ == null) { - if (!(detailsCase_ == 3)) { - details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.getDefaultInstance(); - } - prebuildBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.PrebuildOrBuilder>( - (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Prebuild) details_, - getParentForChildren(), - isClean()); - details_ = null; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; } - detailsCase_ = 3; - onChanged(); - return prebuildBuilder_; + return this; } - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder> snapshotBuilder_; - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - * @return Whether the snapshot field is set. - */ @java.lang.Override - public boolean hasSnapshot() { - return detailsCase_ == 4; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; } - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - * @return The snapshot. - */ + @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot getSnapshot() { - if (snapshotBuilder_ == null) { - if (detailsCase_ == 4) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceId_ = instanceId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workspaceId_ = workspaceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance)other); } else { - if (detailsCase_ == 4) { - return snapshotBuilder_.getMessage(); - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + super.mergeFrom(other); + return this; } } - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - */ - public Builder setSnapshot(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot value) { - if (snapshotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - details_ = value; + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance()) return this; + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000001; onChanged(); - } else { - snapshotBuilder_.setMessage(value); } - detailsCase_ = 4; + if (!other.getWorkspaceId().isEmpty()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } - /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; - */ - public Builder setSnapshot( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder builderForValue) { - if (snapshotBuilder_ == null) { - details_ = builderForValue.build(); - onChanged(); - } else { - snapshotBuilder_.setMessage(builderForValue.build()); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - detailsCase_ = 4; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + private int bitField0_; + + private java.lang.Object instanceId_ = ""; /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The instanceId. */ - public Builder mergeSnapshot(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot value) { - if (snapshotBuilder_ == null) { - if (detailsCase_ == 4 && - details_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance()) { - details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.newBuilder((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_) - .mergeFrom(value).buildPartial(); - } else { - details_ = value; - } - onChanged(); + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; } else { - if (detailsCase_ == 4) { - snapshotBuilder_.mergeFrom(value); - } else { - snapshotBuilder_.setMessage(value); - } + return (java.lang.String) ref; } - detailsCase_ = 4; - return this; } /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return The bytes for instanceId. */ - public Builder clearSnapshot() { - if (snapshotBuilder_ == null) { - if (detailsCase_ == 4) { - detailsCase_ = 0; - details_ = null; - onChanged(); - } + public com.google.protobuf.ByteString + getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceId_ = b; + return b; } else { - if (detailsCase_ == 4) { - detailsCase_ = 0; - details_ = null; - } - snapshotBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @param value The instanceId to set. + * @return This builder for chaining. */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder getSnapshotBuilder() { - return getSnapshotFieldBuilder().getBuilder(); + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + instanceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @return This builder for chaining. */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder getSnapshotOrBuilder() { - if ((detailsCase_ == 4) && (snapshotBuilder_ != null)) { - return snapshotBuilder_.getMessageOrBuilder(); + public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Instance ID is the unique identifier of the workspace instance
+       * 
+ * + * string instance_id = 1 [json_name = "instanceId"]; + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workspaceId_ = ""; + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; } else { - if (detailsCase_ == 4) { - return (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_; - } - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + return (java.lang.String) ref; } } /** - * .gitpod.experimental.v1.WorkspaceContext.Snapshot snapshot = 4 [json_name = "snapshot"]; + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @return This builder for chaining. */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * 
+ * + * string workspace_id = 2 [json_name = "workspaceId"]; + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder> - getSnapshotFieldBuilder() { - if (snapshotBuilder_ == null) { - if (!(detailsCase_ == 4)) { - details_ = io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.getDefaultInstance(); + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.SnapshotOrBuilder>( - (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext.Snapshot) details_, - getParentForChildren(), - isClean()); - details_ = null; + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); } - detailsCase_ = 4; + bitField0_ |= 0x00000004; onChanged(); - return snapshotBuilder_; + return this; } - - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceContext) - } - - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceContext) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext(); - } - - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkspaceContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); } - return builder.buildPartial(); + bitField0_ |= 0x00000004; + onChanged(); + return this; } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceContext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkspaceInstanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstance) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Instance ID is the unique identifier of the workspace instance
-     * 
- * - * string instance_id = 1 [json_name = "instanceId"]; - * @return The instanceId. - */ - java.lang.String getInstanceId(); - /** - *
-     * Instance ID is the unique identifier of the workspace instance
-     * 
- * - * string instance_id = 1 [json_name = "instanceId"]; - * @return The bytes for instanceId. - */ - com.google.protobuf.ByteString - getInstanceIdBytes(); - - /** - *
-     * Workspace ID is the unique identifier of the workspace this instance belongs to
-     * 
- * - * string workspace_id = 2 [json_name = "workspaceId"]; - * @return The workspaceId. - */ - java.lang.String getWorkspaceId(); - /** - *
-     * Workspace ID is the unique identifier of the workspace this instance belongs to
-     * 
- * - * string workspace_id = 2 [json_name = "workspaceId"]; - * @return The bytes for workspaceId. - */ - com.google.protobuf.ByteString - getWorkspaceIdBytes(); - - /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - * @return Whether the createdAt field is set. - */ - boolean hasCreatedAt(); - /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - * @return The createdAt. - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - * @return The status. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus(); - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder(); - } - /** - *
-   * WorkspaceInstance describes a single workspace instance
-   * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstance} - */ - public static final class WorkspaceInstance extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstance) - WorkspaceInstanceOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 27, - /* patch= */ 2, - /* suffix= */ "", - WorkspaceInstance.class.getName()); - } - // Use WorkspaceInstance.newBuilder() to construct. - private WorkspaceInstance(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WorkspaceInstance() { - instanceId_ = ""; - workspaceId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder.class); - } - - private int bitField0_; - public static final int INSTANCE_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object instanceId_ = ""; - /** - *
-     * Instance ID is the unique identifier of the workspace instance
-     * 
- * - * string instance_id = 1 [json_name = "instanceId"]; - * @return The instanceId. - */ - @java.lang.Override - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; } - } - /** - *
-     * Instance ID is the unique identifier of the workspace instance
-     * 
- * - * string instance_id = 1 [json_name = "instanceId"]; - * @return The bytes for instanceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000004); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; } - } - - public static final int WORKSPACE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object workspaceId_ = ""; - /** - *
-     * Workspace ID is the unique identifier of the workspace this instance belongs to
-     * 
- * - * string workspace_id = 2 [json_name = "workspaceId"]; - * @return The workspaceId. - */ - @java.lang.Override - public java.lang.String getWorkspaceId() { - java.lang.Object ref = workspaceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspaceId_ = s; - return s; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); } - } - /** - *
-     * Workspace ID is the unique identifier of the workspace this instance belongs to
-     * 
- * - * string workspace_id = 2 [json_name = "workspaceId"]; - * @return The bytes for workspaceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWorkspaceIdBytes() { - java.lang.Object ref = workspaceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workspaceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; } - } - public static final int CREATED_AT_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createdAt_; - /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - * @return Whether the createdAt field is set. - */ - @java.lang.Override - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - * @return The createdAt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - - public static final int STATUS_FIELD_NUMBER = 4; - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus status_; - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - * @return The status. - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus() { - return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; - } - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - */ - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder() { - return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, workspaceId_); + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus status_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder> statusBuilder_; + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000008) != 0); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCreatedAt()); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @return The status. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getStatus()); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder setStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceId_); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder setStatus( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workspaceId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workspaceId_); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + status_ != null && + status_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreatedAt()); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStatus()); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStatusFieldBuilder().getBuilder(); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; + } } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance)) { - return super.equals(obj); + /** + * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance) obj; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; - if (!getWorkspaceId() - .equals(other.getWorkspaceId())) return false; - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstance) } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getInstanceId().hashCode(); - hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkspaceId().hashCode(); - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstance) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkspaceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input, extensionRegistry); + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + + } + + public interface WorkspaceInstanceStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstanceStatus) + com.google.protobuf.MessageOrBuilder { + /** *
-     * WorkspaceInstance describes a single workspace instance
+     * version of the status update. Workspace instances themselves are unversioned,
+     * but their statuus has different versions.
+     * The value of this field has no semantic meaning (e.g. don't interpret it as
+     * as a timestemp), but it can be used to impose a partial order.
+     * If a.status_version < b.status_version then a was the status before b.
      * 
* - * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstance} + * uint64 status_version = 1 [json_name = "statusVersion"]; + * @return The statusVersion. */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstance) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; - } + long getStatusVersion(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.Builder.class); - } + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The enum numeric value on the wire for phase. + */ + int getPhaseValue(); + /** + *
+     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; + * @return The phase. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase getPhase(); - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return Whether the conditions field is set. + */ + boolean hasConditions(); + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + * @return The conditions. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getConditions(); + /** + *
+     * conditions detail the current state of the workspace instance
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder getConditionsOrBuilder(); - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - getCreatedAtFieldBuilder(); - getStatusFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - instanceId_ = ""; - workspaceId_ = ""; - createdAt_ = null; - if (createdAtBuilder_ != null) { - createdAtBuilder_.dispose(); - createdAtBuilder_ = null; - } - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } - return this; - } + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 4 [json_name = "message"]; + * @return The message. + */ + java.lang.String getMessage(); + /** + *
+     * message is an optional human-readable message detailing the current phase
+     * 
+ * + * string message = 4 [json_name = "message"]; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor; - } + /** + *
+     * URL contains the endpoint at which the workspace instance is available
+     * 
+ * + * string url = 5 [json_name = "url"]; + * @return The url. + */ + java.lang.String getUrl(); + /** + *
+     * URL contains the endpoint at which the workspace instance is available
+     * 
+ * + * string url = 5 [json_name = "url"]; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance(); - } + /** + *
+     * Admission describes who can access a workspace instance and its ports.
+     * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The enum numeric value on the wire for admission. + */ + int getAdmissionValue(); + /** + *
+     * Admission describes who can access a workspace instance and its ports.
+     * 
+ * + * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; + * @return The admission. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel getAdmission(); - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + java.util.List + getPortsList(); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.Port getPorts(int index); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + int getPortsCount(); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * ports is the list of exposed ports in the workspace.
+     * 
+ * + * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder getPortsOrBuilder( + int index); - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return A list containing the recentFolders. + */ + java.util.List + getRecentFoldersList(); + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @return The count of recentFolders. + */ + int getRecentFoldersCount(); + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the element to return. + * @return The recentFolders at the given index. + */ + java.lang.String getRecentFolders(int index); + /** + *
+     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
+     * 
+ * + * repeated string recent_folders = 8 [json_name = "recentFolders"]; + * @param index The index of the value to return. + * @return The bytes of the recentFolders at the given index. + */ + com.google.protobuf.ByteString + getRecentFoldersBytes(int index); - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.instanceId_ = instanceId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.workspaceId_ = workspaceId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createdAt_ = createdAtBuilder_ == null - ? createdAt_ - : createdAtBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.status_ = statusBuilder_ == null - ? status_ - : statusBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return Whether the gitStatus field is set. + */ + boolean hasGitStatus(); + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + * @return The gitStatus. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getGitStatus(); + /** + *
+     * gitStatus details the Git working copy status of the workspace.
+     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
+     * indicate the absence of a working copy.
+     * 
+ * + * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getGitStatusOrBuilder(); - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance)other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + boolean hasEditor(); + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + * @return The editor. + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference getEditor(); + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReferenceOrBuilder getEditorOrBuilder(); + } + /** + *
+   * WorkspaceStatus describes a workspace status
+   * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus} + */ + public static final class WorkspaceInstanceStatus extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstanceStatus) + WorkspaceInstanceStatusOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + WorkspaceInstanceStatus.class.getName()); + } + // Use WorkspaceInstanceStatus.newBuilder() to construct. + private WorkspaceInstanceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private WorkspaceInstanceStatus() { + phase_ = 0; + message_ = ""; + url_ = ""; + admission_ = 0; + ports_ = java.util.Collections.emptyList(); + recentFolders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance.getDefaultInstance()) return this; - if (!other.getInstanceId().isEmpty()) { - instanceId_ = other.instanceId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getWorkspaceId().isEmpty()) { - workspaceId_ = other.workspaceId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workspaceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreatedAtFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getStatusFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder.class); + } - private java.lang.Object instanceId_ = ""; + /** + *
+     * Phase is a simple, high-level summary of where the workspace instance is in its lifecycle.
+     * The phase is not intended to be a comprehensive rollup of observations of the workspace state,
+     * nor is it intended to be a comprehensive state machine.
+     * (based on  https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
+     * 
+ * + * Protobuf enum {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { /** *
-       * Instance ID is the unique identifier of the workspace instance
+       * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
+       * a workspace. This phase is usually accompanied by an error.
        * 
* - * string instance_id = 1 [json_name = "instanceId"]; - * @return The instanceId. + * PHASE_UNSPECIFIED = 0; */ - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + PHASE_UNSPECIFIED(0), /** *
-       * Instance ID is the unique identifier of the workspace instance
+       * Preparing means that we haven't actually started the workspace instance just yet, but rather
+       * are still preparing for launch.
        * 
* - * string instance_id = 1 [json_name = "instanceId"]; - * @return The bytes for instanceId. + * PHASE_PREPARING = 1; */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + PHASE_PREPARING(1), /** *
-       * Instance ID is the unique identifier of the workspace instance
+       * ImageBuild indicates that there's an image build running for this workspace.
        * 
* - * string instance_id = 1 [json_name = "instanceId"]; - * @param value The instanceId to set. - * @return This builder for chaining. + * PHASE_IMAGEBUILD = 2; */ - public Builder setInstanceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - instanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + PHASE_IMAGEBUILD(2), /** *
-       * Instance ID is the unique identifier of the workspace instance
+       * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
+       * some space within the cluster. If for example the cluster needs to scale up to accomodate the
+       * workspace, the workspace will be in Pending state until that happened.
        * 
* - * string instance_id = 1 [json_name = "instanceId"]; - * @return This builder for chaining. + * PHASE_PENDING = 3; */ - public Builder clearInstanceId() { - instanceId_ = getDefaultInstance().getInstanceId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + PHASE_PENDING(3), /** *
-       * Instance ID is the unique identifier of the workspace instance
+       * Creating means the workspace is currently being created. That includes downloading the images required
+       * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
+       * network speed, image size and cache states.
        * 
* - * string instance_id = 1 [json_name = "instanceId"]; - * @param value The bytes for instanceId to set. - * @return This builder for chaining. + * PHASE_CREATING = 4; */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - instanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object workspaceId_ = ""; + PHASE_CREATING(4), /** *
-       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
+       * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
        * 
* - * string workspace_id = 2 [json_name = "workspaceId"]; - * @return The workspaceId. + * PHASE_INITIALIZING = 5; */ - public java.lang.String getWorkspaceId() { - java.lang.Object ref = workspaceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workspaceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + PHASE_INITIALIZING(5), /** *
-       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * Running means the workspace is able to actively perform work, either by serving a user through Theia,
+       * or as a headless workspace.
        * 
* - * string workspace_id = 2 [json_name = "workspaceId"]; - * @return The bytes for workspaceId. + * PHASE_RUNNING = 6; */ - public com.google.protobuf.ByteString - getWorkspaceIdBytes() { - java.lang.Object ref = workspaceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workspaceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + PHASE_RUNNING(6), /** *
-       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
+       * When in this state, we expect it to become running or stopping anytime soon.
        * 
* - * string workspace_id = 2 [json_name = "workspaceId"]; - * @param value The workspaceId to set. - * @return This builder for chaining. + * PHASE_INTERRUPTED = 7; */ - public Builder setWorkspaceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - workspaceId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + PHASE_INTERRUPTED(7), /** *
-       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
        * 
* - * string workspace_id = 2 [json_name = "workspaceId"]; - * @return This builder for chaining. + * PHASE_STOPPING = 8; */ - public Builder clearWorkspaceId() { - workspaceId_ = getDefaultInstance().getWorkspaceId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + PHASE_STOPPING(8), /** *
-       * Workspace ID is the unique identifier of the workspace this instance belongs to
+       * Stopped means the workspace ended regularly because it was shut down.
        * 
* - * string workspace_id = 2 [json_name = "workspaceId"]; - * @param value The bytes for workspaceId to set. - * @return This builder for chaining. + * PHASE_STOPPED = 9; */ - public Builder setWorkspaceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - workspaceId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + PHASE_STOPPED(9), + UNRECOGNIZED(-1), + ; - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - * @return Whether the createdAt field is set. - */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000004) != 0); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + Phase.class.getName()); } /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; - * @return The createdAt. + *
+       * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
+       * a workspace. This phase is usually accompanied by an error.
+       * 
+ * + * PHASE_UNSPECIFIED = 0; */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } + public static final int PHASE_UNSPECIFIED_VALUE = 0; /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + *
+       * Preparing means that we haven't actually started the workspace instance just yet, but rather
+       * are still preparing for launch.
+       * 
+ * + * PHASE_PREPARING = 1; */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - } else { - createdAtBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + public static final int PHASE_PREPARING_VALUE = 1; /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + *
+       * ImageBuild indicates that there's an image build running for this workspace.
+       * 
+ * + * PHASE_IMAGEBUILD = 2; */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + public static final int PHASE_IMAGEBUILD_VALUE = 2; /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + *
+       * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
+       * some space within the cluster. If for example the cluster needs to scale up to accomodate the
+       * workspace, the workspace will be in Pending state until that happened.
+       * 
+ * + * PHASE_PENDING = 3; */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createdAt_ != null && - createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreatedAtBuilder().mergeFrom(value); - } else { - createdAt_ = value; - } - } else { - createdAtBuilder_.mergeFrom(value); - } - if (createdAt_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } + public static final int PHASE_PENDING_VALUE = 3; /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + *
+       * Creating means the workspace is currently being created. That includes downloading the images required
+       * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
+       * network speed, image size and cache states.
+       * 
+ * + * PHASE_CREATING = 4; */ - public Builder clearCreatedAt() { - bitField0_ = (bitField0_ & ~0x00000004); - createdAt_ = null; - if (createdAtBuilder_ != null) { - createdAtBuilder_.dispose(); - createdAtBuilder_ = null; - } - onChanged(); - return this; - } + public static final int PHASE_CREATING_VALUE = 4; /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + *
+       * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
+       * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
+       * 
+ * + * PHASE_INITIALIZING = 5; */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } + public static final int PHASE_INITIALIZING_VALUE = 5; /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + *
+       * Running means the workspace is able to actively perform work, either by serving a user through Theia,
+       * or as a headless workspace.
+       * 
+ * + * PHASE_RUNNING = 6; */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } + public static final int PHASE_RUNNING_VALUE = 6; /** - * .google.protobuf.Timestamp created_at = 3 [json_name = "createdAt"]; + *
+       * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
+       * When in this state, we expect it to become running or stopping anytime soon.
+       * 
+ * + * PHASE_INTERRUPTED = 7; */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - - private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus status_; - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder> statusBuilder_; + public static final int PHASE_INTERRUPTED_VALUE = 7; /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - * @return Whether the status field is set. + *
+       * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
+       * 
+ * + * PHASE_STOPPING = 8; */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000008) != 0); - } + public static final int PHASE_STOPPING_VALUE = 8; /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - * @return The status. + *
+       * Stopped means the workspace ended regularly because it was shut down.
+       * 
+ * + * PHASE_STOPPED = 9; */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; - } else { - return statusBuilder_.getMessage(); + public static final int PHASE_STOPPED_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } + return value; } + /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @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. */ - public Builder setStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - } else { - statusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); } + /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. */ - public Builder setStatus( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - } else { - statusBuilder_.setMessage(builderForValue.build()); + public static Phase forNumber(int value) { + switch (value) { + case 0: return PHASE_UNSPECIFIED; + case 1: return PHASE_PREPARING; + case 2: return PHASE_IMAGEBUILD; + case 3: return PHASE_PENDING; + case 4: return PHASE_CREATING; + case 5: return PHASE_INITIALIZING; + case 6: return PHASE_RUNNING; + case 7: return PHASE_INTERRUPTED; + case 8: return PHASE_STOPPING; + case 9: return PHASE_STOPPED; + default: return null; } - bitField0_ |= 0x00000008; - onChanged(); - return this; } - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - */ - public Builder mergeStatus(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus value) { - if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - status_ != null && - status_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance()) { - getStatusBuilder().mergeFrom(value); - } else { - status_ = value; - } - } else { - statusBuilder_.mergeFrom(value); - } - if (status_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; } - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); } - onChanged(); - return this; - } - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getStatusFieldBuilder().getBuilder(); + return getDescriptor().getValues().get(ordinal()); } - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - */ - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null ? - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDefaultInstance() : status_; - } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); } - /** - * .gitpod.experimental.v1.WorkspaceInstanceStatus status = 4 [json_name = "status"]; - */ - private com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); - status_ = null; - } - return statusBuilder_; + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDescriptor().getEnumTypes().get(0); } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstance) - } + private static final Phase[] VALUES = values(); - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstance) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance(); - } + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private final int value; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkspaceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + private Phase(int value) { + this.value = value; } - }; - public static com.google.protobuf.Parser parser() { - return PARSER; + // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Phase) } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public interface ConditionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + java.lang.String getFailed(); + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + com.google.protobuf.ByteString + getFailedBytes(); - } + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The timeout. + */ + java.lang.String getTimeout(); + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + com.google.protobuf.ByteString + getTimeoutBytes(); - public interface WorkspaceInstanceStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstanceStatus) - com.google.protobuf.MessageOrBuilder { + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return Whether the firstUserActivity field is set. + */ + boolean hasFirstUserActivity(); + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return The firstUserActivity. + */ + com.google.protobuf.Timestamp getFirstUserActivity(); + /** + *
+       * first_user_activity is the time when MarkActive was first called on the workspace
+       * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder(); + /** + *
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return Whether the stoppedByRequest field is set. + */ + boolean hasStoppedByRequest(); + /** + *
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return The stoppedByRequest. + */ + boolean getStoppedByRequest(); + } /** *
-     * version of the status update. Workspace instances themselves are unversioned,
-     * but their statuus has different versions.
-     * The value of this field has no semantic meaning (e.g. don't interpret it as
-     * as a timestemp), but it can be used to impose a partial order.
-     * If a.status_version < b.status_version then a was the status before b.
+     * Conditions gives more detailed information as to the state of the workspace. Which condition actually
+     * has a value depends on the phase the workspace is in.
      * 
* - * uint64 status_version = 1 [json_name = "statusVersion"]; - * @return The statusVersion. + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions} */ - long getStatusVersion(); - - /** - *
-     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; - * @return The enum numeric value on the wire for phase. - */ - int getPhaseValue(); - /** - *
-     * the phase of a workspace is a simple, high-level summary of where the workspace instance is in its lifecycle
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstanceStatus.Phase phase = 2 [json_name = "phase"]; - * @return The phase. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Phase getPhase(); + public static final class Conditions extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + ConditionsOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 27, + /* patch= */ 2, + /* suffix= */ "", + Conditions.class.getName()); + } + // Use Conditions.newBuilder() to construct. + private Conditions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Conditions() { + failed_ = ""; + timeout_ = ""; + } - /** - *
-     * conditions detail the current state of the workspace instance
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; - * @return Whether the conditions field is set. - */ - boolean hasConditions(); - /** - *
-     * conditions detail the current state of the workspace instance
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; - * @return The conditions. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getConditions(); - /** - *
-     * conditions detail the current state of the workspace instance
-     * 
- * - * .gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions conditions = 3 [json_name = "conditions"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder getConditionsOrBuilder(); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + } - /** - *
-     * message is an optional human-readable message detailing the current phase
-     * 
- * - * string message = 4 [json_name = "message"]; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-     * message is an optional human-readable message detailing the current phase
-     * 
- * - * string message = 4 [json_name = "message"]; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder.class); + } - /** - *
-     * URL contains the endpoint at which the workspace instance is available
-     * 
- * - * string url = 5 [json_name = "url"]; - * @return The url. - */ - java.lang.String getUrl(); - /** - *
-     * URL contains the endpoint at which the workspace instance is available
-     * 
- * - * string url = 5 [json_name = "url"]; - * @return The bytes for url. - */ - com.google.protobuf.ByteString - getUrlBytes(); + private int bitField0_; + public static final int FAILED_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object failed_ = ""; + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + @java.lang.Override + public java.lang.String getFailed() { + java.lang.Object ref = failed_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failed_ = s; + return s; + } + } + /** + *
+       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+       * This field is filled exclusively when caused by system errors.
+       * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFailedBytes() { + java.lang.Object ref = failed_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - *
-     * Admission describes who can access a workspace instance and its ports.
-     * 
- * - * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; - * @return The enum numeric value on the wire for admission. - */ - int getAdmissionValue(); - /** - *
-     * Admission describes who can access a workspace instance and its ports.
-     * 
- * - * .gitpod.experimental.v1.AdmissionLevel admission = 6 [json_name = "admission"]; - * @return The admission. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.AdmissionLevel getAdmission(); + public static final int TIMEOUT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object timeout_ = ""; + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The timeout. + */ + @java.lang.Override + public java.lang.String getTimeout() { + java.lang.Object ref = timeout_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeout_ = s; + return s; + } + } + /** + *
+       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+       * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimeoutBytes() { + java.lang.Object ref = timeout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - *
-     * ports is the list of exposed ports in the workspace.
-     * 
- * - * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; - */ - java.util.List - getPortsList(); - /** - *
-     * ports is the list of exposed ports in the workspace.
-     * 
- * - * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.Port getPorts(int index); - /** - *
-     * ports is the list of exposed ports in the workspace.
-     * 
- * - * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; - */ - int getPortsCount(); - /** - *
-     * ports is the list of exposed ports in the workspace.
-     * 
- * - * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; - */ - java.util.List - getPortsOrBuilderList(); - /** - *
-     * ports is the list of exposed ports in the workspace.
-     * 
- * - * repeated .gitpod.experimental.v1.Port ports = 7 [json_name = "ports"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.PortOrBuilder getPortsOrBuilder( - int index); - - /** - *
-     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
-     * 
- * - * repeated string recent_folders = 8 [json_name = "recentFolders"]; - * @return A list containing the recentFolders. - */ - java.util.List - getRecentFoldersList(); - /** - *
-     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
-     * 
- * - * repeated string recent_folders = 8 [json_name = "recentFolders"]; - * @return The count of recentFolders. - */ - int getRecentFoldersCount(); - /** - *
-     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
-     * 
- * - * repeated string recent_folders = 8 [json_name = "recentFolders"]; - * @param index The index of the element to return. - * @return The recentFolders at the given index. - */ - java.lang.String getRecentFolders(int index); - /** - *
-     * recent_folders is the opened folders inside the workspace. Used to determine the folder path to load the workspace in.
-     * 
- * - * repeated string recent_folders = 8 [json_name = "recentFolders"]; - * @param index The index of the value to return. - * @return The bytes of the recentFolders at the given index. - */ - com.google.protobuf.ByteString - getRecentFoldersBytes(int index); - - /** - *
-     * gitStatus details the Git working copy status of the workspace.
-     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
-     * indicate the absence of a working copy.
-     * 
- * - * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; - * @return Whether the gitStatus field is set. - */ - boolean hasGitStatus(); - /** - *
-     * gitStatus details the Git working copy status of the workspace.
-     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
-     * indicate the absence of a working copy.
-     * 
- * - * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; - * @return The gitStatus. - */ - io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus getGitStatus(); - /** - *
-     * gitStatus details the Git working copy status of the workspace.
-     * Note: this is a best-effort field and more often than not will not be present. Its absence does not
-     * indicate the absence of a working copy.
-     * 
- * - * .gitpod.experimental.v1.GitStatus git_status = 9 [json_name = "gitStatus"]; - */ - io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getGitStatusOrBuilder(); - } - /** - *
-   * WorkspaceStatus describes a workspace status
-   * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus} - */ - public static final class WorkspaceInstanceStatus extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstanceStatus) - WorkspaceInstanceStatusOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 27, - /* patch= */ 2, - /* suffix= */ "", - WorkspaceInstanceStatus.class.getName()); - } - // Use WorkspaceInstanceStatus.newBuilder() to construct. - private WorkspaceInstanceStatus(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WorkspaceInstanceStatus() { - phase_ = 0; - message_ = ""; - url_ = ""; - admission_ = 0; - ports_ = java.util.Collections.emptyList(); - recentFolders_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Builder.class); - } - - /** - *
-     * Phase is a simple, high-level summary of where the workspace instance is in its lifecycle.
-     * The phase is not intended to be a comprehensive rollup of observations of the workspace state,
-     * nor is it intended to be a comprehensive state machine.
-     * (based on  https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
-     * 
- * - * Protobuf enum {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
-       * a workspace. This phase is usually accompanied by an error.
-       * 
- * - * PHASE_UNSPECIFIED = 0; - */ - PHASE_UNSPECIFIED(0), - /** - *
-       * Preparing means that we haven't actually started the workspace instance just yet, but rather
-       * are still preparing for launch.
-       * 
- * - * PHASE_PREPARING = 1; - */ - PHASE_PREPARING(1), - /** - *
-       * ImageBuild indicates that there's an image build running for this workspace.
-       * 
- * - * PHASE_IMAGEBUILD = 2; - */ - PHASE_IMAGEBUILD(2), - /** - *
-       * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
-       * some space within the cluster. If for example the cluster needs to scale up to accomodate the
-       * workspace, the workspace will be in Pending state until that happened.
-       * 
- * - * PHASE_PENDING = 3; - */ - PHASE_PENDING(3), - /** - *
-       * Creating means the workspace is currently being created. That includes downloading the images required
-       * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
-       * network speed, image size and cache states.
-       * 
- * - * PHASE_CREATING = 4; - */ - PHASE_CREATING(4), + public static final int FIRST_USER_ACTIVITY_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp firstUserActivity_; /** *
-       * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
-       * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
+       * first_user_activity is the time when MarkActive was first called on the workspace
        * 
* - * PHASE_INITIALIZING = 5; + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return Whether the firstUserActivity field is set. */ - PHASE_INITIALIZING(5), + @java.lang.Override + public boolean hasFirstUserActivity() { + return ((bitField0_ & 0x00000001) != 0); + } /** *
-       * Running means the workspace is able to actively perform work, either by serving a user through Theia,
-       * or as a headless workspace.
+       * first_user_activity is the time when MarkActive was first called on the workspace
        * 
* - * PHASE_RUNNING = 6; + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return The firstUserActivity. */ - PHASE_RUNNING(6), + @java.lang.Override + public com.google.protobuf.Timestamp getFirstUserActivity() { + return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } /** *
-       * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
-       * When in this state, we expect it to become running or stopping anytime soon.
+       * first_user_activity is the time when MarkActive was first called on the workspace
        * 
* - * PHASE_INTERRUPTED = 7; + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; */ - PHASE_INTERRUPTED(7), + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder() { + return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } + + public static final int STOPPED_BY_REQUEST_FIELD_NUMBER = 11; + private boolean stoppedByRequest_ = false; /** *
-       * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
        * 
* - * PHASE_STOPPING = 8; + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return Whether the stoppedByRequest field is set. */ - PHASE_STOPPING(8), + @java.lang.Override + public boolean hasStoppedByRequest() { + return ((bitField0_ & 0x00000002) != 0); + } /** *
-       * Stopped means the workspace ended regularly because it was shut down.
+       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
        * 
* - * PHASE_STOPPED = 9; + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return The stoppedByRequest. */ - PHASE_STOPPED(9), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 27, - /* patch= */ 2, - /* suffix= */ "", - Phase.class.getName()); + @java.lang.Override + public boolean getStoppedByRequest() { + return stoppedByRequest_; } - /** - *
-       * Unknown indicates an issue within the workspace manager in that it cannot determine the actual phase of
-       * a workspace. This phase is usually accompanied by an error.
-       * 
- * - * PHASE_UNSPECIFIED = 0; - */ - public static final int PHASE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Preparing means that we haven't actually started the workspace instance just yet, but rather
-       * are still preparing for launch.
-       * 
- * - * PHASE_PREPARING = 1; - */ - public static final int PHASE_PREPARING_VALUE = 1; - /** - *
-       * ImageBuild indicates that there's an image build running for this workspace.
-       * 
- * - * PHASE_IMAGEBUILD = 2; - */ - public static final int PHASE_IMAGEBUILD_VALUE = 2; - /** - *
-       * Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
-       * some space within the cluster. If for example the cluster needs to scale up to accomodate the
-       * workspace, the workspace will be in Pending state until that happened.
-       * 
- * - * PHASE_PENDING = 3; - */ - public static final int PHASE_PENDING_VALUE = 3; - /** - *
-       * Creating means the workspace is currently being created. That includes downloading the images required
-       * to run the workspace over the network. The time spent in this phase varies widely and depends on the current
-       * network speed, image size and cache states.
-       * 
- * - * PHASE_CREATING = 4; - */ - public static final int PHASE_CREATING_VALUE = 4; - /** - *
-       * Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
-       * clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
-       * 
- * - * PHASE_INITIALIZING = 5; - */ - public static final int PHASE_INITIALIZING_VALUE = 5; - /** - *
-       * Running means the workspace is able to actively perform work, either by serving a user through Theia,
-       * or as a headless workspace.
-       * 
- * - * PHASE_RUNNING = 6; - */ - public static final int PHASE_RUNNING_VALUE = 6; - /** - *
-       * Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
-       * When in this state, we expect it to become running or stopping anytime soon.
-       * 
- * - * PHASE_INTERRUPTED = 7; - */ - public static final int PHASE_INTERRUPTED_VALUE = 7; - /** - *
-       * Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
-       * 
- * - * PHASE_STOPPING = 8; - */ - public static final int PHASE_STOPPING_VALUE = 8; - /** - *
-       * Stopped means the workspace ended regularly because it was shut down.
-       * 
- * - * PHASE_STOPPED = 9; - */ - public static final int PHASE_STOPPED_VALUE = 9; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, failed_); } - return value; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, timeout_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getFirstUserActivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(11, stoppedByRequest_); + } + getUnknownFields().writeTo(output); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, failed_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, timeout_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getFirstUserActivity()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, stoppedByRequest_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Phase forNumber(int value) { - switch (value) { - case 0: return PHASE_UNSPECIFIED; - case 1: return PHASE_PREPARING; - case 2: return PHASE_IMAGEBUILD; - case 3: return PHASE_PENDING; - case 4: return PHASE_CREATING; - case 5: return PHASE_INITIALIZING; - case 6: return PHASE_RUNNING; - case 7: return PHASE_INTERRUPTED; - case 8: return PHASE_STOPPING; - case 9: return PHASE_STOPPED; - default: return null; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions)) { + return super.equals(obj); + } + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions) obj; + + if (!getFailed() + .equals(other.getFailed())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; + if (hasFirstUserActivity() != other.hasFirstUserActivity()) return false; + if (hasFirstUserActivity()) { + if (!getFirstUserActivity() + .equals(other.getFirstUserActivity())) return false; + } + if (hasStoppedByRequest() != other.hasStoppedByRequest()) return false; + if (hasStoppedByRequest()) { + if (getStoppedByRequest() + != other.getStoppedByRequest()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FAILED_FIELD_NUMBER; + hash = (53 * hash) + getFailed().hashCode(); + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + if (hasFirstUserActivity()) { + hash = (37 * hash) + FIRST_USER_ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getFirstUserActivity().hashCode(); + } + if (hasStoppedByRequest()) { + hash = (37 * hash) + STOPPED_BY_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStoppedByRequest()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Conditions gives more detailed information as to the state of the workspace. Which condition actually
+       * has a value depends on the phase the workspace is in.
+       * 
+ * + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder.class); + } + + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getFirstUserActivityFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + failed_ = ""; + timeout_ = ""; + firstUserActivity_ = null; + if (firstUserActivityBuilder_ != null) { + firstUserActivityBuilder_.dispose(); + firstUserActivityBuilder_ = null; + } + stoppedByRequest_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance(); + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.failed_ = failed_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeout_ = timeout_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.firstUserActivity_ = firstUserActivityBuilder_ == null + ? firstUserActivity_ + : firstUserActivityBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stoppedByRequest_ = stoppedByRequest_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance()) return this; + if (!other.getFailed().isEmpty()) { + failed_ = other.failed_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTimeout().isEmpty()) { + timeout_ = other.timeout_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFirstUserActivity()) { + mergeFirstUserActivity(other.getFirstUserActivity()); + } + if (other.hasStoppedByRequest()) { + setStoppedByRequest(other.getStoppedByRequest()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + failed_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + timeout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 74: { + input.readMessage( + getFirstUserActivityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 88: { + stoppedByRequest_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object failed_ = ""; + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The failed. + */ + public java.lang.String getFailed() { + java.lang.Object ref = failed_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failed_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return The bytes for failed. + */ + public com.google.protobuf.ByteString + getFailedBytes() { + java.lang.Object ref = failed_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failed_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @param value The failed to set. + * @return This builder for chaining. + */ + public Builder setFailed( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + failed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @return This builder for chaining. + */ + public Builder clearFailed() { + failed_ = getDefaultInstance().getFailed(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
+         * This field is filled exclusively when caused by system errors.
+         * 
+ * + * string failed = 1 [json_name = "failed"]; + * @param value The bytes for failed to set. + * @return This builder for chaining. + */ + public Builder setFailedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + failed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object timeout_ = ""; + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The timeout. + */ + public java.lang.String getTimeout() { + java.lang.Object ref = timeout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return The bytes for timeout. + */ + public com.google.protobuf.ByteString + getTimeoutBytes() { + java.lang.Object ref = timeout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @param value The timeout to set. + * @return This builder for chaining. + */ + public Builder setTimeout( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + timeout_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @return This builder for chaining. + */ + public Builder clearTimeout() { + timeout_ = getDefaultInstance().getTimeout(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
+         * 
+ * + * string timeout = 2 [json_name = "timeout"]; + * @param value The bytes for timeout to set. + * @return This builder for chaining. + */ + public Builder setTimeoutBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + timeout_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp firstUserActivity_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> firstUserActivityBuilder_; + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return Whether the firstUserActivity field is set. + */ + public boolean hasFirstUserActivity() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + * @return The firstUserActivity. + */ + public com.google.protobuf.Timestamp getFirstUserActivity() { + if (firstUserActivityBuilder_ == null) { + return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } else { + return firstUserActivityBuilder_.getMessage(); + } + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder setFirstUserActivity(com.google.protobuf.Timestamp value) { + if (firstUserActivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firstUserActivity_ = value; + } else { + firstUserActivityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder setFirstUserActivity( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (firstUserActivityBuilder_ == null) { + firstUserActivity_ = builderForValue.build(); + } else { + firstUserActivityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder mergeFirstUserActivity(com.google.protobuf.Timestamp value) { + if (firstUserActivityBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + firstUserActivity_ != null && + firstUserActivity_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFirstUserActivityBuilder().mergeFrom(value); + } else { + firstUserActivity_ = value; + } + } else { + firstUserActivityBuilder_.mergeFrom(value); + } + if (firstUserActivity_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public Builder clearFirstUserActivity() { + bitField0_ = (bitField0_ & ~0x00000004); + firstUserActivity_ = null; + if (firstUserActivityBuilder_ != null) { + firstUserActivityBuilder_.dispose(); + firstUserActivityBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public com.google.protobuf.Timestamp.Builder getFirstUserActivityBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFirstUserActivityFieldBuilder().getBuilder(); + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + public com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder() { + if (firstUserActivityBuilder_ != null) { + return firstUserActivityBuilder_.getMessageOrBuilder(); + } else { + return firstUserActivity_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; + } + } + /** + *
+         * first_user_activity is the time when MarkActive was first called on the workspace
+         * 
+ * + * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getFirstUserActivityFieldBuilder() { + if (firstUserActivityBuilder_ == null) { + firstUserActivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getFirstUserActivity(), + getParentForChildren(), + isClean()); + firstUserActivity_ = null; + } + return firstUserActivityBuilder_; + } + + private boolean stoppedByRequest_ ; + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return Whether the stoppedByRequest field is set. + */ + @java.lang.Override + public boolean hasStoppedByRequest() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return The stoppedByRequest. + */ + @java.lang.Override + public boolean getStoppedByRequest() { + return stoppedByRequest_; + } + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @param value The stoppedByRequest to set. + * @return This builder for chaining. + */ + public Builder setStoppedByRequest(boolean value) { + + stoppedByRequest_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * 
+ * + * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * @return This builder for chaining. + */ + public Builder clearStoppedByRequest() { + bitField0_ = (bitField0_ & ~0x00000008); + stoppedByRequest_ = false; + onChanged(); + return this; } - } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.getDescriptor().getEnumTypes().get(0); + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions(); } - private static final Phase[] VALUES = values(); + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Phase valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Conditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } - return VALUES[desc.getIndex()]; + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - private final int value; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private Phase(int value) { - this.value = value; + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(enum_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Phase) } - public interface ConditionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + public interface EditorReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference) com.google.protobuf.MessageOrBuilder { /** - *
-       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-       * This field is filled exclusively when caused by system errors.
-       * 
- * - * string failed = 1 [json_name = "failed"]; - * @return The failed. + * string name = 1 [json_name = "name"]; + * @return The name. */ - java.lang.String getFailed(); + java.lang.String getName(); /** - *
-       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-       * This field is filled exclusively when caused by system errors.
-       * 
- * - * string failed = 1 [json_name = "failed"]; - * @return The bytes for failed. + * string name = 1 [json_name = "name"]; + * @return The bytes for name. */ com.google.protobuf.ByteString - getFailedBytes(); + getNameBytes(); /** - *
-       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-       * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @return The timeout. + * string version = 2 [json_name = "version"]; + * @return The version. */ - java.lang.String getTimeout(); + java.lang.String getVersion(); /** - *
-       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-       * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @return The bytes for timeout. + * string version = 2 [json_name = "version"]; + * @return The bytes for version. */ com.google.protobuf.ByteString - getTimeoutBytes(); - - /** - *
-       * first_user_activity is the time when MarkActive was first called on the workspace
-       * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - * @return Whether the firstUserActivity field is set. - */ - boolean hasFirstUserActivity(); - /** - *
-       * first_user_activity is the time when MarkActive was first called on the workspace
-       * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - * @return The firstUserActivity. - */ - com.google.protobuf.Timestamp getFirstUserActivity(); - /** - *
-       * first_user_activity is the time when MarkActive was first called on the workspace
-       * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder(); + getVersionBytes(); /** *
-       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
-       * 
- * - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; - * @return Whether the stoppedByRequest field is set. - */ - boolean hasStoppedByRequest(); - /** - *
-       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * prefer_toolbox indicates whether the editor should be launched with the
+       * JetBrains Toolbox instead of JetBrains Gateway
        * 
* - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; - * @return The stoppedByRequest. + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @return The preferToolbox. */ - boolean getStoppedByRequest(); + boolean getPreferToolbox(); } /** - *
-     * Conditions gives more detailed information as to the state of the workspace. Which condition actually
-     * has a value depends on the phase the workspace is in.
-     * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference} */ - public static final class Conditions extends + public static final class EditorReference extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) - ConditionsOrBuilder { + // @@protoc_insertion_point(message_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference) + EditorReferenceOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( @@ -21881,190 +21983,122 @@ public static final class Conditions extends /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", - Conditions.class.getName()); + EditorReference.class.getName()); } - // Use Conditions.newBuilder() to construct. - private Conditions(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use EditorReference.newBuilder() to construct. + private EditorReference(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Conditions() { - failed_ = ""; - timeout_ = ""; + private EditorReference() { + name_ = ""; + version_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.Builder.class); } - private int bitField0_; - public static final int FAILED_FIELD_NUMBER = 1; + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object failed_ = ""; + private volatile java.lang.Object name_ = ""; /** - *
-       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-       * This field is filled exclusively when caused by system errors.
-       * 
- * - * string failed = 1 [json_name = "failed"]; - * @return The failed. + * string name = 1 [json_name = "name"]; + * @return The name. */ @java.lang.Override - public java.lang.String getFailed() { - java.lang.Object ref = failed_; + 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(); - failed_ = s; + name_ = s; return s; } } /** - *
-       * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-       * This field is filled exclusively when caused by system errors.
-       * 
- * - * string failed = 1 [json_name = "failed"]; - * @return The bytes for failed. + * string name = 1 [json_name = "name"]; + * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString - getFailedBytes() { - java.lang.Object ref = failed_; + 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); - failed_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int TIMEOUT_FIELD_NUMBER = 2; + public static final int VERSION_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object timeout_ = ""; + private volatile java.lang.Object version_ = ""; /** - *
-       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-       * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @return The timeout. + * string version = 2 [json_name = "version"]; + * @return The version. */ - @java.lang.Override - public java.lang.String getTimeout() { - java.lang.Object ref = timeout_; + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - timeout_ = s; + version_ = s; return s; } } /** - *
-       * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-       * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @return The bytes for timeout. + * string version = 2 [json_name = "version"]; + * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString - getTimeoutBytes() { - java.lang.Object ref = timeout_; + getVersionBytes() { + java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - timeout_ = b; + version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int FIRST_USER_ACTIVITY_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp firstUserActivity_; - /** - *
-       * first_user_activity is the time when MarkActive was first called on the workspace
-       * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - * @return Whether the firstUserActivity field is set. - */ - @java.lang.Override - public boolean hasFirstUserActivity() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * first_user_activity is the time when MarkActive was first called on the workspace
-       * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - * @return The firstUserActivity. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getFirstUserActivity() { - return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; - } - /** - *
-       * first_user_activity is the time when MarkActive was first called on the workspace
-       * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder() { - return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; - } - - public static final int STOPPED_BY_REQUEST_FIELD_NUMBER = 11; - private boolean stoppedByRequest_ = false; - /** - *
-       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
-       * 
- * - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; - * @return Whether the stoppedByRequest field is set. - */ - @java.lang.Override - public boolean hasStoppedByRequest() { - return ((bitField0_ & 0x00000002) != 0); - } + public static final int PREFER_TOOLBOX_FIELD_NUMBER = 3; + private boolean preferToolbox_ = false; /** *
-       * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+       * prefer_toolbox indicates whether the editor should be launched with the
+       * JetBrains Toolbox instead of JetBrains Gateway
        * 
* - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; - * @return The stoppedByRequest. + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @return The preferToolbox. */ @java.lang.Override - public boolean getStoppedByRequest() { - return stoppedByRequest_; + public boolean getPreferToolbox() { + return preferToolbox_; } private byte memoizedIsInitialized = -1; @@ -22081,17 +22115,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, failed_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, timeout_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(9, getFirstUserActivity()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, version_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(11, stoppedByRequest_); + if (preferToolbox_ != false) { + output.writeBool(3, preferToolbox_); } getUnknownFields().writeTo(output); } @@ -22102,19 +22133,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(failed_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, failed_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeout_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, timeout_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getFirstUserActivity()); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, version_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (preferToolbox_ != false) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, stoppedByRequest_); + .computeBoolSize(3, preferToolbox_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -22126,25 +22153,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions)) { + if (!(obj instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference)) { return super.equals(obj); } - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions) obj; + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference other = (io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference) obj; - if (!getFailed() - .equals(other.getFailed())) return false; - if (!getTimeout() - .equals(other.getTimeout())) return false; - if (hasFirstUserActivity() != other.hasFirstUserActivity()) return false; - if (hasFirstUserActivity()) { - if (!getFirstUserActivity() - .equals(other.getFirstUserActivity())) return false; - } - if (hasStoppedByRequest() != other.hasStoppedByRequest()) return false; - if (hasStoppedByRequest()) { - if (getStoppedByRequest() - != other.getStoppedByRequest()) return false; - } + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (getPreferToolbox() + != other.getPreferToolbox()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -22156,62 +22175,56 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FAILED_FIELD_NUMBER; - hash = (53 * hash) + getFailed().hashCode(); - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - if (hasFirstUserActivity()) { - hash = (37 * hash) + FIRST_USER_ACTIVITY_FIELD_NUMBER; - hash = (53 * hash) + getFirstUserActivity().hashCode(); - } - if (hasStoppedByRequest()) { - hash = (37 * hash) + STOPPED_BY_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStoppedByRequest()); - } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + PREFER_TOOLBOX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreferToolbox()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom(byte[] data) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22219,26 +22232,26 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceSt .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseDelimitedFrom(java.io.InputStream input) + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseDelimitedFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions parseFrom( + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22251,7 +22264,7 @@ public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceSt public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions prototype) { + public static Builder newBuilder(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -22267,75 +22280,59 @@ protected Builder newBuilderForType( return builder; } /** - *
-       * Conditions gives more detailed information as to the state of the workspace. Which condition actually
-       * has a value depends on the phase the workspace is in.
-       * 
- * - * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions} + * Protobuf type {@code gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.ConditionsOrBuilder { + // @@protoc_insertion_point(builder_implements:gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference) + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.Builder.class); + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.class, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.Builder.class); } - // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.newBuilder() + // Construct using io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - getFirstUserActivityFieldBuilder(); - } + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - failed_ = ""; - timeout_ = ""; - firstUserActivity_ = null; - if (firstUserActivityBuilder_ != null) { - firstUserActivityBuilder_.dispose(); - firstUserActivityBuilder_ = null; - } - stoppedByRequest_ = false; + name_ = ""; + version_ = ""; + preferToolbox_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor; + return io.gitpod.publicapi.experimental.v1.Workspaces.internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_descriptor; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstanceForType() { - return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference getDefaultInstanceForType() { + return io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.getDefaultInstance(); } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions build() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result = buildPartial(); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference build() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -22343,62 +22340,50 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Co } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions buildPartial() { - io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions(this); + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference buildPartial() { + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference result = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions result) { + private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.failed_ = failed_; + result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.timeout_ = timeout_; + result.version_ = version_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.firstUserActivity_ = firstUserActivityBuilder_ == null - ? firstUserActivity_ - : firstUserActivityBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.stoppedByRequest_ = stoppedByRequest_; - to_bitField0_ |= 0x00000002; + result.preferToolbox_ = preferToolbox_; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions) { - return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions)other); + if (other instanceof io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference) { + return mergeFrom((io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions other) { - if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions.getDefaultInstance()) return this; - if (!other.getFailed().isEmpty()) { - failed_ = other.failed_; + public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference other) { + if (other == io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getTimeout().isEmpty()) { - timeout_ = other.timeout_; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; bitField0_ |= 0x00000002; onChanged(); } - if (other.hasFirstUserActivity()) { - mergeFirstUserActivity(other.getFirstUserActivity()); - } - if (other.hasStoppedByRequest()) { - setStoppedByRequest(other.getStoppedByRequest()); + if (other.getPreferToolbox() != false) { + setPreferToolbox(other.getPreferToolbox()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -22427,27 +22412,20 @@ public Builder mergeFrom( done = true; break; case 10: { - failed_ = input.readStringRequireUtf8(); + name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - timeout_ = input.readStringRequireUtf8(); + version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 - case 74: { - input.readMessage( - getFirstUserActivityFieldBuilder().getBuilder(), - extensionRegistry); + case 24: { + preferToolbox_ = input.readBool(); bitField0_ |= 0x00000004; break; - } // case 74 - case 88: { - stoppedByRequest_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 88 + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -22465,425 +22443,214 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object failed_ = ""; + private java.lang.Object name_ = ""; /** - *
-         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-         * This field is filled exclusively when caused by system errors.
-         * 
- * - * string failed = 1 [json_name = "failed"]; - * @return The failed. + * string name = 1 [json_name = "name"]; + * @return The name. */ - public java.lang.String getFailed() { - java.lang.Object ref = failed_; + 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(); - failed_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-         * This field is filled exclusively when caused by system errors.
-         * 
- * - * string failed = 1 [json_name = "failed"]; - * @return The bytes for failed. + * string name = 1 [json_name = "name"]; + * @return The bytes for name. */ public com.google.protobuf.ByteString - getFailedBytes() { - java.lang.Object ref = failed_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - failed_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-         * This field is filled exclusively when caused by system errors.
-         * 
- * - * string failed = 1 [json_name = "failed"]; - * @param value The failed to set. + * string name = 1 [json_name = "name"]; + * @param value The name to set. * @return This builder for chaining. */ - public Builder setFailed( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - failed_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - *
-         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-         * This field is filled exclusively when caused by system errors.
-         * 
- * - * string failed = 1 [json_name = "failed"]; + * string name = 1 [json_name = "name"]; * @return This builder for chaining. */ - public Builder clearFailed() { - failed_ = getDefaultInstance().getFailed(); + public Builder clearName() { + name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - *
-         * failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
-         * This field is filled exclusively when caused by system errors.
-         * 
- * - * string failed = 1 [json_name = "failed"]; - * @param value The bytes for failed to set. + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setFailedBytes( + public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - failed_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object timeout_ = ""; + private java.lang.Object version_ = ""; /** - *
-         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-         * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @return The timeout. + * string version = 2 [json_name = "version"]; + * @return The version. */ - public java.lang.String getTimeout() { - java.lang.Object ref = timeout_; + public java.lang.String getVersion() { + java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - timeout_ = s; + version_ = s; return s; } else { return (java.lang.String) ref; } } /** - *
-         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-         * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @return The bytes for timeout. + * string version = 2 [json_name = "version"]; + * @return The bytes for version. */ public com.google.protobuf.ByteString - getTimeoutBytes() { - java.lang.Object ref = timeout_; + getVersionBytes() { + java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - timeout_ = b; + version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - *
-         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-         * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @param value The timeout to set. + * string version = 2 [json_name = "version"]; + * @param value The version to set. * @return This builder for chaining. */ - public Builder setTimeout( + public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeout_ = value; + version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - *
-         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-         * 
- * - * string timeout = 2 [json_name = "timeout"]; + * string version = 2 [json_name = "version"]; * @return This builder for chaining. */ - public Builder clearTimeout() { - timeout_ = getDefaultInstance().getTimeout(); + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - *
-         * timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
-         * 
- * - * string timeout = 2 [json_name = "timeout"]; - * @param value The bytes for timeout to set. + * string version = 2 [json_name = "version"]; + * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setTimeoutBytes( + public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeout_ = value; + version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.Timestamp firstUserActivity_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> firstUserActivityBuilder_; - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - * @return Whether the firstUserActivity field is set. - */ - public boolean hasFirstUserActivity() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - * @return The firstUserActivity. - */ - public com.google.protobuf.Timestamp getFirstUserActivity() { - if (firstUserActivityBuilder_ == null) { - return firstUserActivity_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; - } else { - return firstUserActivityBuilder_.getMessage(); - } - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - public Builder setFirstUserActivity(com.google.protobuf.Timestamp value) { - if (firstUserActivityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - firstUserActivity_ = value; - } else { - firstUserActivityBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - public Builder setFirstUserActivity( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (firstUserActivityBuilder_ == null) { - firstUserActivity_ = builderForValue.build(); - } else { - firstUserActivityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - public Builder mergeFirstUserActivity(com.google.protobuf.Timestamp value) { - if (firstUserActivityBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - firstUserActivity_ != null && - firstUserActivity_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getFirstUserActivityBuilder().mergeFrom(value); - } else { - firstUserActivity_ = value; - } - } else { - firstUserActivityBuilder_.mergeFrom(value); - } - if (firstUserActivity_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - public Builder clearFirstUserActivity() { - bitField0_ = (bitField0_ & ~0x00000004); - firstUserActivity_ = null; - if (firstUserActivityBuilder_ != null) { - firstUserActivityBuilder_.dispose(); - firstUserActivityBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - public com.google.protobuf.Timestamp.Builder getFirstUserActivityBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getFirstUserActivityFieldBuilder().getBuilder(); - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - public com.google.protobuf.TimestampOrBuilder getFirstUserActivityOrBuilder() { - if (firstUserActivityBuilder_ != null) { - return firstUserActivityBuilder_.getMessageOrBuilder(); - } else { - return firstUserActivity_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : firstUserActivity_; - } - } - /** - *
-         * first_user_activity is the time when MarkActive was first called on the workspace
-         * 
- * - * .google.protobuf.Timestamp first_user_activity = 9 [json_name = "firstUserActivity"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getFirstUserActivityFieldBuilder() { - if (firstUserActivityBuilder_ == null) { - firstUserActivityBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getFirstUserActivity(), - getParentForChildren(), - isClean()); - firstUserActivity_ = null; - } - return firstUserActivityBuilder_; - } - - private boolean stoppedByRequest_ ; - /** - *
-         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
-         * 
- * - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; - * @return Whether the stoppedByRequest field is set. - */ - @java.lang.Override - public boolean hasStoppedByRequest() { - return ((bitField0_ & 0x00000008) != 0); - } + private boolean preferToolbox_ ; /** *
-         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * prefer_toolbox indicates whether the editor should be launched with the
+         * JetBrains Toolbox instead of JetBrains Gateway
          * 
* - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; - * @return The stoppedByRequest. + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @return The preferToolbox. */ @java.lang.Override - public boolean getStoppedByRequest() { - return stoppedByRequest_; + public boolean getPreferToolbox() { + return preferToolbox_; } /** *
-         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * prefer_toolbox indicates whether the editor should be launched with the
+         * JetBrains Toolbox instead of JetBrains Gateway
          * 
* - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; - * @param value The stoppedByRequest to set. + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; + * @param value The preferToolbox to set. * @return This builder for chaining. */ - public Builder setStoppedByRequest(boolean value) { + public Builder setPreferToolbox(boolean value) { - stoppedByRequest_ = value; - bitField0_ |= 0x00000008; + preferToolbox_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** *
-         * stopped_by_request is true if the workspace was stopped using a StopWorkspace call
+         * prefer_toolbox indicates whether the editor should be launched with the
+         * JetBrains Toolbox instead of JetBrains Gateway
          * 
* - * optional bool stopped_by_request = 11 [json_name = "stoppedByRequest"]; + * bool prefer_toolbox = 3 [json_name = "preferToolbox"]; * @return This builder for chaining. */ - public Builder clearStoppedByRequest() { - bitField0_ = (bitField0_ & ~0x00000008); - stoppedByRequest_ = false; + public Builder clearPreferToolbox() { + bitField0_ = (bitField0_ & ~0x00000004); + preferToolbox_ = false; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference) } - // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.Conditions) - private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference) + private static final io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions(); + DEFAULT_INSTANCE = new io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference(); } - public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstance() { + public static io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Conditions parsePartialFrom( + public EditorReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -22902,17 +22669,17 @@ public Conditions parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.Conditions getDefaultInstanceForType() { + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -23280,6 +23047,44 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getGitS return gitStatus_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.GitStatus.getDefaultInstance() : gitStatus_; } + public static final int EDITOR_FIELD_NUMBER = 10; + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference editor_; + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + @java.lang.Override + public boolean hasEditor() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + * @return The editor. + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference getEditor() { + return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.getDefaultInstance() : editor_; + } + /** + *
+     * editor is the editor to be used in this workspace
+     * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + @java.lang.Override + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReferenceOrBuilder getEditorOrBuilder() { + return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.getDefaultInstance() : editor_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -23321,6 +23126,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getGitStatus()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getEditor()); + } getUnknownFields().writeTo(output); } @@ -23368,6 +23176,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getGitStatus()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getEditor()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -23405,6 +23217,11 @@ public boolean equals(final java.lang.Object obj) { if (!getGitStatus() .equals(other.getGitStatus())) return false; } + if (hasEditor() != other.hasEditor()) return false; + if (hasEditor()) { + if (!getEditor() + .equals(other.getEditor())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -23443,6 +23260,10 @@ public int hashCode() { hash = (37 * hash) + GIT_STATUS_FIELD_NUMBER; hash = (53 * hash) + getGitStatus().hashCode(); } + if (hasEditor()) { + hash = (37 * hash) + EDITOR_FIELD_NUMBER; + hash = (53 * hash) + getEditor().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -23580,6 +23401,7 @@ private void maybeForceBuilderInitialization() { getConditionsFieldBuilder(); getPortsFieldBuilder(); getGitStatusFieldBuilder(); + getEditorFieldBuilder(); } } @java.lang.Override @@ -23610,6 +23432,11 @@ public Builder clear() { gitStatusBuilder_.dispose(); gitStatusBuilder_ = null; } + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } return this; } @@ -23688,6 +23515,12 @@ private void buildPartial0(io.gitpod.publicapi.experimental.v1.Workspaces.Worksp : gitStatusBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.editor_ = editorBuilder_ == null + ? editor_ + : editorBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -23764,6 +23597,9 @@ public Builder mergeFrom(io.gitpod.publicapi.experimental.v1.Workspaces.Workspac if (other.hasGitStatus()) { mergeGitStatus(other.getGitStatus()); } + if (other.hasEditor()) { + mergeEditor(other.getEditor()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -23848,6 +23684,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 82: { + input.readMessage( + getEditorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -25042,6 +24885,163 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GitStatusOrBuilder getGitS return gitStatusBuilder_; } + private io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference editor_; + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReferenceOrBuilder> editorBuilder_; + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + * @return Whether the editor field is set. + */ + public boolean hasEditor() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + * @return The editor. + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference getEditor() { + if (editorBuilder_ == null) { + return editor_ == null ? io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.getDefaultInstance() : editor_; + } else { + return editorBuilder_.getMessage(); + } + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + public Builder setEditor(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference value) { + if (editorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editor_ = value; + } else { + editorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + public Builder setEditor( + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.Builder builderForValue) { + if (editorBuilder_ == null) { + editor_ = builderForValue.build(); + } else { + editorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + public Builder mergeEditor(io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference value) { + if (editorBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + editor_ != null && + editor_ != io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.getDefaultInstance()) { + getEditorBuilder().mergeFrom(value); + } else { + editor_ = value; + } + } else { + editorBuilder_.mergeFrom(value); + } + if (editor_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + public Builder clearEditor() { + bitField0_ = (bitField0_ & ~0x00000200); + editor_ = null; + if (editorBuilder_ != null) { + editorBuilder_.dispose(); + editorBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.Builder getEditorBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getEditorFieldBuilder().getBuilder(); + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + public io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReferenceOrBuilder getEditorOrBuilder() { + if (editorBuilder_ != null) { + return editorBuilder_.getMessageOrBuilder(); + } else { + return editor_ == null ? + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.getDefaultInstance() : editor_; + } + } + /** + *
+       * editor is the editor to be used in this workspace
+       * 
+ * + * .gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10 [json_name = "editor"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReferenceOrBuilder> + getEditorFieldBuilder() { + if (editorBuilder_ == null) { + editorBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReference.Builder, io.gitpod.publicapi.experimental.v1.Workspaces.WorkspaceInstanceStatus.EditorReferenceOrBuilder>( + getEditor(), + getParentForChildren(), + isClean()); + editor_ = null; + } + return editorBuilder_; + } + // @@protoc_insertion_point(builder_scope:gitpod.experimental.v1.WorkspaceInstanceStatus) } @@ -33611,11 +33611,6 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_gitpod_experimental_v1_EditorReference_descriptor; - private static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor; private static final @@ -33666,6 +33661,11 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gitpod_experimental_v1_Port_descriptor; private static final @@ -33775,154 +33775,154 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe "sponse\"\035\n\033ListWorkspaceClassesRequest\"^\n" + "\034ListWorkspaceClassesResponse\022>\n\006result\030" + "\001 \003(\0132&.gitpod.experimental.v1.Workspace" + - "ClassR\006result\"\320\002\n\tWorkspace\022!\n\014workspace" + + "ClassR\006result\"\217\002\n\tWorkspace\022!\n\014workspace" + "_id\030\001 \001(\tR\013workspaceId\022\031\n\010owner_id\030\002 \001(\t" + "R\007ownerId\022\035\n\nproject_id\030\003 \001(\tR\tprojectId" + "\022B\n\007context\030\004 \001(\0132(.gitpod.experimental." + "v1.WorkspaceContextR\007context\022 \n\013descript" + "ion\030\005 \001(\tR\013description\022?\n\006status\030\006 \001(\0132\'" + ".gitpod.experimental.v1.WorkspaceStatusR" + - "\006status\022?\n\006editor\030\007 \001(\0132\'.gitpod.experim" + - "ental.v1.EditorReferenceR\006editor\"f\n\017Edit" + - "orReference\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007versi" + - "on\030\002 \001(\tR\007version\022%\n\016prefer_toolbox\030\003 \001(" + - "\010R\rpreferToolbox\"X\n\017WorkspaceStatus\022E\n\010i" + - "nstance\030\001 \001(\0132).gitpod.experimental.v1.W" + - "orkspaceInstanceR\010instance\"\262\006\n\020Workspace" + - "Context\022\037\n\013context_url\030\001 \001(\tR\ncontextUrl" + - "\022@\n\003git\030\002 \001(\0132,.gitpod.experimental.v1.W" + - "orkspaceContext.GitH\000R\003git\022O\n\010prebuild\030\003" + - " \001(\01321.gitpod.experimental.v1.WorkspaceC" + - "ontext.PrebuildH\000R\010prebuild\022O\n\010snapshot\030" + - "\004 \001(\01321.gitpod.experimental.v1.Workspace" + - "Context.SnapshotH\000R\010snapshot\032=\n\013GitProvi" + - "der\022\022\n\004type\030\001 \001(\tR\004type\022\032\n\010hostname\030\002 \001(" + - "\tR\010hostname\0326\n\nRepository\022\022\n\004name\030\001 \001(\tR" + - "\004name\022\024\n\005owner\030\002 \001(\tR\005owner\032\342\001\n\003Git\0224\n\026n" + - "ormalized_context_url\030\001 \001(\tR\024normalizedC" + - "ontextUrl\022S\n\nrepository\030\002 \001(\01323.gitpod.e" + - "xperimental.v1.WorkspaceContext.Reposito" + - "ryR\nrepository\022P\n\010provider\030\003 \001(\01324.gitpo" + - "d.experimental.v1.WorkspaceContext.GitPr" + - "oviderR\010provider\032\204\001\n\010Prebuild\022W\n\020origina" + - "l_context\030\001 \001(\0132,.gitpod.experimental.v1" + - ".WorkspaceContext.GitR\017originalContext\022\037" + - "\n\013prebuild_id\030\002 \001(\tR\nprebuildId\032+\n\010Snaps" + - "hot\022\037\n\013snapshot_id\030\001 \001(\tR\nsnapshotIdB\t\n\007" + - "details\"\333\001\n\021WorkspaceInstance\022\037\n\013instanc" + - "e_id\030\001 \001(\tR\ninstanceId\022!\n\014workspace_id\030\002" + - " \001(\tR\013workspaceId\0229\n\ncreated_at\030\003 \001(\0132\032." + - "google.protobuf.TimestampR\tcreatedAt\022G\n\006" + - "status\030\004 \001(\0132/.gitpod.experimental.v1.Wo" + - "rkspaceInstanceStatusR\006status\"\253\007\n\027Worksp" + - "aceInstanceStatus\022%\n\016status_version\030\001 \001(" + - "\004R\rstatusVersion\022K\n\005phase\030\002 \001(\01625.gitpod" + - ".experimental.v1.WorkspaceInstanceStatus" + - ".PhaseR\005phase\022Z\n\nconditions\030\003 \001(\0132:.gitp" + - "od.experimental.v1.WorkspaceInstanceStat" + - "us.ConditionsR\nconditions\022\030\n\007message\030\004 \001" + - "(\tR\007message\022\020\n\003url\030\005 \001(\tR\003url\022D\n\tadmissi" + - "on\030\006 \001(\0162&.gitpod.experimental.v1.Admiss" + - "ionLevelR\tadmission\0222\n\005ports\030\007 \003(\0132\034.git" + - "pod.experimental.v1.PortR\005ports\022%\n\016recen" + - "t_folders\030\010 \003(\tR\rrecentFolders\022@\n\ngit_st" + - "atus\030\t \001(\0132!.gitpod.experimental.v1.GitS" + - "tatusR\tgitStatus\032\324\001\n\nConditions\022\026\n\006faile" + + "\006status\"X\n\017WorkspaceStatus\022E\n\010instance\030\001" + + " \001(\0132).gitpod.experimental.v1.WorkspaceI" + + "nstanceR\010instance\"\262\006\n\020WorkspaceContext\022\037" + + "\n\013context_url\030\001 \001(\tR\ncontextUrl\022@\n\003git\030\002" + + " \001(\0132,.gitpod.experimental.v1.WorkspaceC" + + "ontext.GitH\000R\003git\022O\n\010prebuild\030\003 \001(\01321.gi" + + "tpod.experimental.v1.WorkspaceContext.Pr" + + "ebuildH\000R\010prebuild\022O\n\010snapshot\030\004 \001(\01321.g" + + "itpod.experimental.v1.WorkspaceContext.S" + + "napshotH\000R\010snapshot\032=\n\013GitProvider\022\022\n\004ty" + + "pe\030\001 \001(\tR\004type\022\032\n\010hostname\030\002 \001(\tR\010hostna" + + "me\0326\n\nRepository\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005" + + "owner\030\002 \001(\tR\005owner\032\342\001\n\003Git\0224\n\026normalized" + + "_context_url\030\001 \001(\tR\024normalizedContextUrl" + + "\022S\n\nrepository\030\002 \001(\01323.gitpod.experiment" + + "al.v1.WorkspaceContext.RepositoryR\nrepos" + + "itory\022P\n\010provider\030\003 \001(\01324.gitpod.experim" + + "ental.v1.WorkspaceContext.GitProviderR\010p" + + "rovider\032\204\001\n\010Prebuild\022W\n\020original_context" + + "\030\001 \001(\0132,.gitpod.experimental.v1.Workspac" + + "eContext.GitR\017originalContext\022\037\n\013prebuil" + + "d_id\030\002 \001(\tR\nprebuildId\032+\n\010Snapshot\022\037\n\013sn" + + "apshot_id\030\001 \001(\tR\nsnapshotIdB\t\n\007details\"\333" + + "\001\n\021WorkspaceInstance\022\037\n\013instance_id\030\001 \001(" + + "\tR\ninstanceId\022!\n\014workspace_id\030\002 \001(\tR\013wor" + + "kspaceId\0229\n\ncreated_at\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampR\tcreatedAt\022G\n\006status\030\004 " + + "\001(\0132/.gitpod.experimental.v1.WorkspaceIn" + + "stanceStatusR\006status\"\354\010\n\027WorkspaceInstan" + + "ceStatus\022%\n\016status_version\030\001 \001(\004R\rstatus" + + "Version\022K\n\005phase\030\002 \001(\01625.gitpod.experime" + + "ntal.v1.WorkspaceInstanceStatus.PhaseR\005p" + + "hase\022Z\n\nconditions\030\003 \001(\0132:.gitpod.experi" + + "mental.v1.WorkspaceInstanceStatus.Condit" + + "ionsR\nconditions\022\030\n\007message\030\004 \001(\tR\007messa" + + "ge\022\020\n\003url\030\005 \001(\tR\003url\022D\n\tadmission\030\006 \001(\0162" + + "&.gitpod.experimental.v1.AdmissionLevelR" + + "\tadmission\0222\n\005ports\030\007 \003(\0132\034.gitpod.exper" + + "imental.v1.PortR\005ports\022%\n\016recent_folders" + + "\030\010 \003(\tR\rrecentFolders\022@\n\ngit_status\030\t \001(" + + "\0132!.gitpod.experimental.v1.GitStatusR\tgi" + + "tStatus\022W\n\006editor\030\n \001(\0132?.gitpod.experim" + + "ental.v1.WorkspaceInstanceStatus.EditorR" + + "eferenceR\006editor\032\324\001\n\nConditions\022\026\n\006faile" + "d\030\001 \001(\tR\006failed\022\030\n\007timeout\030\002 \001(\tR\007timeou" + "t\022J\n\023first_user_activity\030\t \001(\0132\032.google." + "protobuf.TimestampR\021firstUserActivity\0221\n" + "\022stopped_by_request\030\013 \001(\010H\000R\020stoppedByRe" + - "quest\210\001\001B\025\n\023_stopped_by_request\"\331\001\n\005Phas" + - "e\022\025\n\021PHASE_UNSPECIFIED\020\000\022\023\n\017PHASE_PREPAR" + - "ING\020\001\022\024\n\020PHASE_IMAGEBUILD\020\002\022\021\n\rPHASE_PEN" + - "DING\020\003\022\022\n\016PHASE_CREATING\020\004\022\026\n\022PHASE_INIT" + - "IALIZING\020\005\022\021\n\rPHASE_RUNNING\020\006\022\025\n\021PHASE_I" + - "NTERRUPTED\020\007\022\022\n\016PHASE_STOPPING\020\010\022\021\n\rPHAS" + - "E_STOPPED\020\t\"\252\001\n\004Port\022\022\n\004port\030\001 \001(\004R\004port" + - "\022:\n\006policy\030\002 \001(\0162\".gitpod.experimental.v" + - "1.PortPolicyR\006policy\022\020\n\003url\030\003 \001(\tR\003url\022@" + - "\n\010protocol\030\004 \001(\0162$.gitpod.experimental.v" + - "1.PortProtocolR\010protocol\"\235\001\n\022StartWorksp" + - "aceSpec\022\'\n\017workspace_class\030\001 \001(\tR\016worksp" + - "aceClass\022F\n\014ide_settings\030\002 \001(\0132#.gitpod." + - "experimental.v1.IDESettingsR\013ideSettings" + - "\022\026\n\006region\030\003 \001(\tR\006region\"\\\n\013IDESettings\022" + - "\037\n\013default_ide\030\001 \001(\tR\ndefaultIde\022,\n\022use_" + - "latest_version\030\002 \001(\010R\020useLatestVersion\"\234" + - "\001\n\010PortSpec\022\022\n\004port\030\001 \001(\004R\004port\022:\n\006polic" + - "y\030\002 \001(\0162\".gitpod.experimental.v1.PortPol" + - "icyR\006policy\022@\n\010protocol\030\003 \001(\0162$.gitpod.e" + - "xperimental.v1.PortProtocolR\010protocol\"l\n" + - "\021UpdatePortRequest\022!\n\014workspace_id\030\001 \001(\t" + - "R\013workspaceId\0224\n\004port\030\002 \001(\0132 .gitpod.exp" + - "erimental.v1.PortSpecR\004port\"\024\n\022UpdatePor" + - "tResponse\"\347\002\n\tGitStatus\022\026\n\006branch\030\001 \001(\tR" + - "\006branch\022#\n\rlatest_commit\030\002 \001(\tR\014latestCo" + - "mmit\022)\n\020uncommited_files\030\003 \003(\tR\017uncommit" + - "edFiles\0224\n\026total_uncommited_files\030\006 \001(\005R" + - "\024totalUncommitedFiles\022\'\n\017untracked_files" + - "\030\004 \003(\tR\016untrackedFiles\0222\n\025total_untracke" + - "d_files\030\007 \001(\005R\023totalUntrackedFiles\022)\n\020un" + - "pushed_commits\030\005 \003(\tR\017unpushedCommits\0224\n" + - "\026total_unpushed_commits\030\010 \001(\005R\024totalUnpu" + - "shedCommits\"\204\001\n\016WorkspaceClass\022\016\n\002id\030\001 \001" + - "(\tR\002id\022!\n\014display_name\030\002 \001(\tR\013displayNam" + - "e\022 \n\013description\030\003 \001(\tR\013description\022\035\n\ni" + - "s_default\030\004 \001(\010R\tisDefault\"Z\n\037GetDefault" + - "WorkspaceImageRequest\022&\n\014workspace_id\030\001 " + - "\001(\tH\000R\013workspaceId\210\001\001B\017\n\r_workspace_id\"\201" + - "\002\n GetDefaultWorkspaceImageResponse\022\024\n\005i" + - "mage\030\001 \001(\tR\005image\022\\\n\006source\030\002 \001(\0162D.gitp" + - "od.experimental.v1.GetDefaultWorkspaceIm" + - "ageResponse.ImageSourceR\006source\"i\n\013Image" + - "Source\022\034\n\030IMAGE_SOURCE_UNSPECIFIED\020\000\022\035\n\031" + - "IMAGE_SOURCE_INSTALLATION\020\001\022\035\n\031IMAGE_SOU" + - "RCE_ORGANIZATION\020\002*Z\n\nPortPolicy\022\033\n\027PORT" + - "_POLICY_UNSPECIFIED\020\000\022\027\n\023PORT_POLICY_PRI" + - "VATE\020\001\022\026\n\022PORT_POLICY_PUBLIC\020\002*^\n\014PortPr" + - "otocol\022\035\n\031PORT_PROTOCOL_UNSPECIFIED\020\000\022\026\n" + - "\022PORT_PROTOCOL_HTTP\020\001\022\027\n\023PORT_PROTOCOL_H" + - "TTPS\020\002*o\n\016AdmissionLevel\022\037\n\033ADMISSION_LE" + - "VEL_UNSPECIFIED\020\000\022\036\n\032ADMISSION_LEVEL_OWN" + - "ER_ONLY\020\001\022\034\n\030ADMISSION_LEVEL_EVERYONE\020\0022" + - "\325\n\n\021WorkspacesService\022q\n\016ListWorkspaces\022" + - "-.gitpod.experimental.v1.ListWorkspacesR" + - "equest\032..gitpod.experimental.v1.ListWork" + - "spacesResponse\"\000\022k\n\014GetWorkspace\022+.gitpo" + - "d.experimental.v1.GetWorkspaceRequest\032,." + - "gitpod.experimental.v1.GetWorkspaceRespo" + - "nse\"\000\022\210\001\n\025StreamWorkspaceStatus\0224.gitpod" + - ".experimental.v1.StreamWorkspaceStatusRe" + - "quest\0325.gitpod.experimental.v1.StreamWor" + - "kspaceStatusResponse\"\0000\001\022n\n\rGetOwnerToke" + - "n\022,.gitpod.experimental.v1.GetOwnerToken" + - "Request\032-.gitpod.experimental.v1.GetOwne" + - "rTokenResponse\"\000\022\214\001\n\027CreateAndStartWorks" + - "pace\0226.gitpod.experimental.v1.CreateAndS" + - "tartWorkspaceRequest\0327.gitpod.experiment" + - "al.v1.CreateAndStartWorkspaceResponse\"\000\022" + - "q\n\016StartWorkspace\022-.gitpod.experimental." + - "v1.StartWorkspaceRequest\032..gitpod.experi" + - "mental.v1.StartWorkspaceResponse\"\000\022n\n\rSt" + - "opWorkspace\022,.gitpod.experimental.v1.Sto" + - "pWorkspaceRequest\032-.gitpod.experimental." + - "v1.StopWorkspaceResponse\"\000\022t\n\017DeleteWork" + - "space\022..gitpod.experimental.v1.DeleteWor" + - "kspaceRequest\032/.gitpod.experimental.v1.D" + - "eleteWorkspaceResponse\"\000\022e\n\nUpdatePort\022)" + - ".gitpod.experimental.v1.UpdatePortReques" + - "t\032*.gitpod.experimental.v1.UpdatePortRes" + - "ponse\"\000\022\203\001\n\024ListWorkspaceClasses\0223.gitpo" + - "d.experimental.v1.ListWorkspaceClassesRe" + - "quest\0324.gitpod.experimental.v1.ListWorks" + - "paceClassesResponse\"\000\022\217\001\n\030GetDefaultWork" + - "spaceImage\0227.gitpod.experimental.v1.GetD" + - "efaultWorkspaceImageRequest\0328.gitpod.exp" + - "erimental.v1.GetDefaultWorkspaceImageRes" + - "ponse\"\000Bk\n#io.gitpod.publicapi.experimen" + - "tal.v1ZDgithub.com/gitpod-io/gitpod/comp" + - "onents/public-api/go/experimental/v1b\006pr" + - "oto3" + "quest\210\001\001B\025\n\023_stopped_by_request\032f\n\017Edito" + + "rReference\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007versio" + + "n\030\002 \001(\tR\007version\022%\n\016prefer_toolbox\030\003 \001(\010" + + "R\rpreferToolbox\"\331\001\n\005Phase\022\025\n\021PHASE_UNSPE" + + "CIFIED\020\000\022\023\n\017PHASE_PREPARING\020\001\022\024\n\020PHASE_I" + + "MAGEBUILD\020\002\022\021\n\rPHASE_PENDING\020\003\022\022\n\016PHASE_" + + "CREATING\020\004\022\026\n\022PHASE_INITIALIZING\020\005\022\021\n\rPH" + + "ASE_RUNNING\020\006\022\025\n\021PHASE_INTERRUPTED\020\007\022\022\n\016" + + "PHASE_STOPPING\020\010\022\021\n\rPHASE_STOPPED\020\t\"\252\001\n\004" + + "Port\022\022\n\004port\030\001 \001(\004R\004port\022:\n\006policy\030\002 \001(\016" + + "2\".gitpod.experimental.v1.PortPolicyR\006po" + + "licy\022\020\n\003url\030\003 \001(\tR\003url\022@\n\010protocol\030\004 \001(\016" + + "2$.gitpod.experimental.v1.PortProtocolR\010" + + "protocol\"\235\001\n\022StartWorkspaceSpec\022\'\n\017works" + + "pace_class\030\001 \001(\tR\016workspaceClass\022F\n\014ide_" + + "settings\030\002 \001(\0132#.gitpod.experimental.v1." + + "IDESettingsR\013ideSettings\022\026\n\006region\030\003 \001(\t" + + "R\006region\"\\\n\013IDESettings\022\037\n\013default_ide\030\001" + + " \001(\tR\ndefaultIde\022,\n\022use_latest_version\030\002" + + " \001(\010R\020useLatestVersion\"\234\001\n\010PortSpec\022\022\n\004p" + + "ort\030\001 \001(\004R\004port\022:\n\006policy\030\002 \001(\0162\".gitpod" + + ".experimental.v1.PortPolicyR\006policy\022@\n\010p" + + "rotocol\030\003 \001(\0162$.gitpod.experimental.v1.P" + + "ortProtocolR\010protocol\"l\n\021UpdatePortReque" + + "st\022!\n\014workspace_id\030\001 \001(\tR\013workspaceId\0224\n" + + "\004port\030\002 \001(\0132 .gitpod.experimental.v1.Por" + + "tSpecR\004port\"\024\n\022UpdatePortResponse\"\347\002\n\tGi" + + "tStatus\022\026\n\006branch\030\001 \001(\tR\006branch\022#\n\rlates" + + "t_commit\030\002 \001(\tR\014latestCommit\022)\n\020uncommit" + + "ed_files\030\003 \003(\tR\017uncommitedFiles\0224\n\026total" + + "_uncommited_files\030\006 \001(\005R\024totalUncommited" + + "Files\022\'\n\017untracked_files\030\004 \003(\tR\016untracke" + + "dFiles\0222\n\025total_untracked_files\030\007 \001(\005R\023t" + + "otalUntrackedFiles\022)\n\020unpushed_commits\030\005" + + " \003(\tR\017unpushedCommits\0224\n\026total_unpushed_" + + "commits\030\010 \001(\005R\024totalUnpushedCommits\"\204\001\n\016" + + "WorkspaceClass\022\016\n\002id\030\001 \001(\tR\002id\022!\n\014displa" + + "y_name\030\002 \001(\tR\013displayName\022 \n\013description" + + "\030\003 \001(\tR\013description\022\035\n\nis_default\030\004 \001(\010R" + + "\tisDefault\"Z\n\037GetDefaultWorkspaceImageRe" + + "quest\022&\n\014workspace_id\030\001 \001(\tH\000R\013workspace" + + "Id\210\001\001B\017\n\r_workspace_id\"\201\002\n GetDefaultWor" + + "kspaceImageResponse\022\024\n\005image\030\001 \001(\tR\005imag" + + "e\022\\\n\006source\030\002 \001(\0162D.gitpod.experimental." + + "v1.GetDefaultWorkspaceImageResponse.Imag" + + "eSourceR\006source\"i\n\013ImageSource\022\034\n\030IMAGE_" + + "SOURCE_UNSPECIFIED\020\000\022\035\n\031IMAGE_SOURCE_INS" + + "TALLATION\020\001\022\035\n\031IMAGE_SOURCE_ORGANIZATION" + + "\020\002*Z\n\nPortPolicy\022\033\n\027PORT_POLICY_UNSPECIF" + + "IED\020\000\022\027\n\023PORT_POLICY_PRIVATE\020\001\022\026\n\022PORT_P" + + "OLICY_PUBLIC\020\002*^\n\014PortProtocol\022\035\n\031PORT_P" + + "ROTOCOL_UNSPECIFIED\020\000\022\026\n\022PORT_PROTOCOL_H" + + "TTP\020\001\022\027\n\023PORT_PROTOCOL_HTTPS\020\002*o\n\016Admiss" + + "ionLevel\022\037\n\033ADMISSION_LEVEL_UNSPECIFIED\020" + + "\000\022\036\n\032ADMISSION_LEVEL_OWNER_ONLY\020\001\022\034\n\030ADM" + + "ISSION_LEVEL_EVERYONE\020\0022\325\n\n\021WorkspacesSe" + + "rvice\022q\n\016ListWorkspaces\022-.gitpod.experim" + + "ental.v1.ListWorkspacesRequest\032..gitpod." + + "experimental.v1.ListWorkspacesResponse\"\000" + + "\022k\n\014GetWorkspace\022+.gitpod.experimental.v" + + "1.GetWorkspaceRequest\032,.gitpod.experimen" + + "tal.v1.GetWorkspaceResponse\"\000\022\210\001\n\025Stream" + + "WorkspaceStatus\0224.gitpod.experimental.v1" + + ".StreamWorkspaceStatusRequest\0325.gitpod.e" + + "xperimental.v1.StreamWorkspaceStatusResp" + + "onse\"\0000\001\022n\n\rGetOwnerToken\022,.gitpod.exper" + + "imental.v1.GetOwnerTokenRequest\032-.gitpod" + + ".experimental.v1.GetOwnerTokenResponse\"\000" + + "\022\214\001\n\027CreateAndStartWorkspace\0226.gitpod.ex" + + "perimental.v1.CreateAndStartWorkspaceReq" + + "uest\0327.gitpod.experimental.v1.CreateAndS" + + "tartWorkspaceResponse\"\000\022q\n\016StartWorkspac" + + "e\022-.gitpod.experimental.v1.StartWorkspac" + + "eRequest\032..gitpod.experimental.v1.StartW" + + "orkspaceResponse\"\000\022n\n\rStopWorkspace\022,.gi" + + "tpod.experimental.v1.StopWorkspaceReques" + + "t\032-.gitpod.experimental.v1.StopWorkspace" + + "Response\"\000\022t\n\017DeleteWorkspace\022..gitpod.e" + + "xperimental.v1.DeleteWorkspaceRequest\032/." + + "gitpod.experimental.v1.DeleteWorkspaceRe" + + "sponse\"\000\022e\n\nUpdatePort\022).gitpod.experime" + + "ntal.v1.UpdatePortRequest\032*.gitpod.exper" + + "imental.v1.UpdatePortResponse\"\000\022\203\001\n\024List" + + "WorkspaceClasses\0223.gitpod.experimental.v" + + "1.ListWorkspaceClassesRequest\0324.gitpod.e" + + "xperimental.v1.ListWorkspaceClassesRespo" + + "nse\"\000\022\217\001\n\030GetDefaultWorkspaceImage\0227.git" + + "pod.experimental.v1.GetDefaultWorkspaceI" + + "mageRequest\0328.gitpod.experimental.v1.Get" + + "DefaultWorkspaceImageResponse\"\000Bk\n#io.gi" + + "tpod.publicapi.experimental.v1ZDgithub.c" + + "om/gitpod-io/gitpod/components/public-ap" + + "i/go/experimental/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -34044,21 +34044,15 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe internal_static_gitpod_experimental_v1_Workspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_Workspace_descriptor, - new java.lang.String[] { "WorkspaceId", "OwnerId", "ProjectId", "Context", "Description", "Status", "Editor", }); - internal_static_gitpod_experimental_v1_EditorReference_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_gitpod_experimental_v1_EditorReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_gitpod_experimental_v1_EditorReference_descriptor, - new java.lang.String[] { "Name", "Version", "PreferToolbox", }); + new java.lang.String[] { "WorkspaceId", "OwnerId", "ProjectId", "Context", "Description", "Status", }); internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(19); internal_static_gitpod_experimental_v1_WorkspaceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceStatus_descriptor, new java.lang.String[] { "Instance", }); internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(20); internal_static_gitpod_experimental_v1_WorkspaceContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceContext_descriptor, @@ -34094,79 +34088,85 @@ public io.gitpod.publicapi.experimental.v1.Workspaces.GetDefaultWorkspaceImageRe internal_static_gitpod_experimental_v1_WorkspaceContext_Snapshot_descriptor, new java.lang.String[] { "SnapshotId", }); internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(21); internal_static_gitpod_experimental_v1_WorkspaceInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceInstance_descriptor, new java.lang.String[] { "InstanceId", "WorkspaceId", "CreatedAt", "Status", }); internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(22); internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor, - new java.lang.String[] { "StatusVersion", "Phase", "Conditions", "Message", "Url", "Admission", "Ports", "RecentFolders", "GitStatus", }); + new java.lang.String[] { "StatusVersion", "Phase", "Conditions", "Message", "Url", "Admission", "Ports", "RecentFolders", "GitStatus", "Editor", }); internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor = internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor.getNestedTypes().get(0); internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_Conditions_descriptor, new java.lang.String[] { "Failed", "Timeout", "FirstUserActivity", "StoppedByRequest", }); + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_descriptor = + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_descriptor.getNestedTypes().get(1); + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_gitpod_experimental_v1_WorkspaceInstanceStatus_EditorReference_descriptor, + new java.lang.String[] { "Name", "Version", "PreferToolbox", }); internal_static_gitpod_experimental_v1_Port_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(23); internal_static_gitpod_experimental_v1_Port_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_Port_descriptor, new java.lang.String[] { "Port", "Policy", "Url", "Protocol", }); internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(24); internal_static_gitpod_experimental_v1_StartWorkspaceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_StartWorkspaceSpec_descriptor, new java.lang.String[] { "WorkspaceClass", "IdeSettings", "Region", }); internal_static_gitpod_experimental_v1_IDESettings_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(25); internal_static_gitpod_experimental_v1_IDESettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_IDESettings_descriptor, new java.lang.String[] { "DefaultIde", "UseLatestVersion", }); internal_static_gitpod_experimental_v1_PortSpec_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(26); internal_static_gitpod_experimental_v1_PortSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_PortSpec_descriptor, new java.lang.String[] { "Port", "Policy", "Protocol", }); internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(27); internal_static_gitpod_experimental_v1_UpdatePortRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_UpdatePortRequest_descriptor, new java.lang.String[] { "WorkspaceId", "Port", }); internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(28); internal_static_gitpod_experimental_v1_UpdatePortResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_UpdatePortResponse_descriptor, new java.lang.String[] { }); internal_static_gitpod_experimental_v1_GitStatus_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(29); internal_static_gitpod_experimental_v1_GitStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_GitStatus_descriptor, new java.lang.String[] { "Branch", "LatestCommit", "UncommitedFiles", "TotalUncommitedFiles", "UntrackedFiles", "TotalUntrackedFiles", "UnpushedCommits", "TotalUnpushedCommits", }); internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(30); internal_static_gitpod_experimental_v1_WorkspaceClass_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_WorkspaceClass_descriptor, new java.lang.String[] { "Id", "DisplayName", "Description", "IsDefault", }); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(31); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageRequest_descriptor, new java.lang.String[] { "WorkspaceId", }); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(32); internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gitpod_experimental_v1_GetDefaultWorkspaceImageResponse_descriptor, diff --git a/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts b/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts index 5963a74a01009f..1f376e4a21500a 100644 --- a/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts +++ b/components/public-api/typescript/src/gitpod/experimental/v1/workspaces_pb.ts @@ -884,13 +884,6 @@ export class Workspace extends Message { */ status?: WorkspaceStatus; - /** - * editor is the editor to be used in this workspace - * - * @generated from field: gitpod.experimental.v1.EditorReference editor = 7; - */ - editor?: EditorReference; - constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -905,7 +898,6 @@ export class Workspace extends Message { { no: 4, name: "context", kind: "message", T: WorkspaceContext }, { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "status", kind: "message", T: WorkspaceStatus }, - { no: 7, name: "editor", kind: "message", T: EditorReference }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Workspace { @@ -925,58 +917,6 @@ export class Workspace extends Message { } } -/** - * @generated from message gitpod.experimental.v1.EditorReference - */ -export class EditorReference extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: string version = 2; - */ - version = ""; - - /** - * prefer_toolbox indicates whether the editor should be launched with the - * JetBrains Toolbox instead of JetBrains Gateway - * - * @generated from field: bool prefer_toolbox = 3; - */ - preferToolbox = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "gitpod.experimental.v1.EditorReference"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "prefer_toolbox", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EditorReference { - return new EditorReference().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EditorReference { - return new EditorReference().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EditorReference { - return new EditorReference().fromJsonString(jsonString, options); - } - - static equals(a: EditorReference | PlainMessage | undefined, b: EditorReference | PlainMessage | undefined): boolean { - return proto3.util.equals(EditorReference, a, b); - } -} - /** * WorkspaceStatus represents the currently observed status of a Workspace, including data about child resources that belong to this Workspace. * @@ -1458,6 +1398,13 @@ export class WorkspaceInstanceStatus extends Message { */ gitStatus?: GitStatus; + /** + * editor is the editor to be used in this workspace + * + * @generated from field: gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference editor = 10; + */ + editor?: WorkspaceInstanceStatus_EditorReference; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1475,6 +1422,7 @@ export class WorkspaceInstanceStatus extends Message { { no: 7, name: "ports", kind: "message", T: Port, repeated: true }, { no: 8, name: "recent_folders", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 9, name: "git_status", kind: "message", T: GitStatus }, + { no: 10, name: "editor", kind: "message", T: WorkspaceInstanceStatus_EditorReference }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): WorkspaceInstanceStatus { @@ -1663,6 +1611,58 @@ export class WorkspaceInstanceStatus_Conditions extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: string version = 2; + */ + version = ""; + + /** + * prefer_toolbox indicates whether the editor should be launched with the + * JetBrains Toolbox instead of JetBrains Gateway + * + * @generated from field: bool prefer_toolbox = 3; + */ + preferToolbox = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gitpod.experimental.v1.WorkspaceInstanceStatus.EditorReference"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "prefer_toolbox", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkspaceInstanceStatus_EditorReference { + return new WorkspaceInstanceStatus_EditorReference().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkspaceInstanceStatus_EditorReference { + return new WorkspaceInstanceStatus_EditorReference().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkspaceInstanceStatus_EditorReference { + return new WorkspaceInstanceStatus_EditorReference().fromJsonString(jsonString, options); + } + + static equals(a: WorkspaceInstanceStatus_EditorReference | PlainMessage | undefined, b: WorkspaceInstanceStatus_EditorReference | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkspaceInstanceStatus_EditorReference, a, b); + } +} + /** * @generated from message gitpod.experimental.v1.Port */ From d93d3658b3efa4af3d4fa532a800a7ee5e2d9428 Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 20:41:34 +0000 Subject: [PATCH 7/9] papi impl +1 --- components/public-api-server/pkg/apiv1/workspace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/public-api-server/pkg/apiv1/workspace.go b/components/public-api-server/pkg/apiv1/workspace.go index ca073c2aaac606..8925c0a12ea928 100644 --- a/components/public-api-server/pkg/apiv1/workspace.go +++ b/components/public-api-server/pkg/apiv1/workspace.go @@ -427,7 +427,6 @@ func convertWorkspaceInfo(input *protocol.WorkspaceInfo) (*v1.Workspace, error) }, }}, }, - Editor: convertIdeConfig(input.LatestInstance.Configuration.IDEConfig), Description: input.Workspace.Description, Status: &v1.WorkspaceStatus{ Instance: instance, @@ -555,6 +554,7 @@ func convertWorkspaceInstance(wsi *protocol.WorkspaceInstance, wsCtx *protocol.W Ports: ports, RecentFolders: recentFolders, GitStatus: gitStatus, + Editor: convertIdeConfig(wsi.Configuration.IDEConfig), }, }, nil } From b6ef9a1e79c750bb7df32ece88e45c1ad910779e Mon Sep 17 00:00:00 2001 From: Huiwen Date: Fri, 29 Nov 2024 20:42:43 +0000 Subject: [PATCH 8/9] impl + 2 --- components/public-api-server/pkg/apiv1/workspace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/public-api-server/pkg/apiv1/workspace.go b/components/public-api-server/pkg/apiv1/workspace.go index 8925c0a12ea928..84be550c0739bd 100644 --- a/components/public-api-server/pkg/apiv1/workspace.go +++ b/components/public-api-server/pkg/apiv1/workspace.go @@ -434,7 +434,7 @@ func convertWorkspaceInfo(input *protocol.WorkspaceInfo) (*v1.Workspace, error) }, nil } -func convertIdeConfig(ideConfig *protocol.WorkspaceInstanceIDEConfig) *v1.EditorReference { +func convertIdeConfig(ideConfig *protocol.WorkspaceInstanceIDEConfig) *v1.WorkspaceInstanceStatus_EditorReference { if ideConfig == nil { return nil } @@ -442,7 +442,7 @@ func convertIdeConfig(ideConfig *protocol.WorkspaceInstanceIDEConfig) *v1.Editor if ideConfig.UseLatest { ideVersion = "stable" } - return &v1.EditorReference{ + return &v1.WorkspaceInstanceStatus_EditorReference{ Name: ideConfig.IDE, Version: ideVersion, PreferToolbox: ideConfig.PreferToolbox, From f9ce16062f65dc16f625d91d0c71bc234d6363d0 Mon Sep 17 00:00:00 2001 From: mustard Date: Sat, 30 Nov 2024 04:55:16 +0800 Subject: [PATCH 9/9] Update components/public-api-server/pkg/apiv1/workspace.go Co-authored-by: iQQBot --- components/public-api-server/pkg/apiv1/workspace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/public-api-server/pkg/apiv1/workspace.go b/components/public-api-server/pkg/apiv1/workspace.go index 84be550c0739bd..964d87a44fc73b 100644 --- a/components/public-api-server/pkg/apiv1/workspace.go +++ b/components/public-api-server/pkg/apiv1/workspace.go @@ -440,7 +440,7 @@ func convertIdeConfig(ideConfig *protocol.WorkspaceInstanceIDEConfig) *v1.Worksp } ideVersion := "stable" if ideConfig.UseLatest { - ideVersion = "stable" + ideVersion = "latest" } return &v1.WorkspaceInstanceStatus_EditorReference{ Name: ideConfig.IDE,