@@ -43,21 +43,21 @@ message Workspace {
43
43
// Obtain available regions using the ListRegions operation.
44
44
//
45
45
// +optional defaults to the user's default region
46
- optional string region = 8 ;
46
+ string region = 8 ;
47
47
48
48
// workspace_class specifies the workspace class with which to create the
49
49
// workspace. Obtain available workspace classes using the ListWorkspaceClass
50
50
// operation.
51
51
//
52
52
// +optional defaults to the class configured on the project or the cluster's
53
53
// default class.
54
- optional string workspace_class = 9 ;
54
+ string workspace_class = 9 ;
55
55
56
56
// editor specifies the editor that will be used with this workspace.
57
57
// Obtain available editors using the EditorService.ListEditors operation.
58
58
//
59
59
// +optional defaults to the default editor of the user
60
- optional EditorReference editor = 10 ;
60
+ EditorReference editor = 10 ;
61
61
62
62
// context_url is the normalized URL from which the workspace was created
63
63
// TODO(ak) replace with resolveContextURL API
@@ -66,7 +66,7 @@ message Workspace {
66
66
// Prebuild ID is the unique identifier of the prebuild
67
67
// from which this workspace was created
68
68
// +optional if empty then this workspace was not created from a prebuild
69
- optional string prebuild_id = 12 ;
69
+ string prebuild_id = 12 ;
70
70
}
71
71
72
72
message WorkspaceStatus {
@@ -77,7 +77,7 @@ message WorkspaceStatus {
77
77
WorkspacePhase phase = 1 ;
78
78
79
79
// message is an optional human-readable message detailing the current phase
80
- optional string message = 2 ;
80
+ string message = 2 ;
81
81
82
82
// workspace_url is the URL of the workspace. Only present when the phase is
83
83
// running.
@@ -104,11 +104,11 @@ message WorkspaceStatus {
104
104
message WorkspaceConditions {
105
105
// failed contains technical details for the failure of the workspace.
106
106
// +optional If this field is empty, the workspace has not failed.
107
- optional string failed = 1 ;
107
+ string failed = 1 ;
108
108
109
109
// timeout contains the reason the workspace has timed out.
110
110
// +optional If this field is empty, the workspace has not timed out.
111
- optional string timeout = 2 ;
111
+ string timeout = 2 ;
112
112
}
113
113
114
114
// Admission level describes who can access a workspace instance and its ports.
@@ -256,5 +256,5 @@ message EditorReference {
256
256
257
257
message WorkspaceEnvironmentVariable {
258
258
string name = 1 ;
259
- optional string value = 2 ;
259
+ string value = 2 ;
260
260
}
0 commit comments