go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/internal/bugs/monorail/api_proto/frontend.pb.go (about) 1 // Copyright 2020 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/analysis/internal/bugs/monorail/api_proto/frontend.proto 10 11 package api_proto 12 13 import prpc "go.chromium.org/luci/grpc/prpc" 14 15 import ( 16 context "context" 17 _ "google.golang.org/genproto/googleapis/api/annotations" 18 grpc "google.golang.org/grpc" 19 codes "google.golang.org/grpc/codes" 20 status "google.golang.org/grpc/status" 21 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 22 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 23 reflect "reflect" 24 sync "sync" 25 ) 26 27 const ( 28 // Verify that this generated code is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 30 // Verify that runtime/protoimpl is sufficiently up-to-date. 31 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 32 ) 33 34 // Request message for GatherProjectEnvironment 35 // Next available tag: 2 36 type GatherProjectEnvironmentRequest struct { 37 state protoimpl.MessageState 38 sizeCache protoimpl.SizeCache 39 unknownFields protoimpl.UnknownFields 40 41 // The name of the project these config environments belong to. 42 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 43 } 44 45 func (x *GatherProjectEnvironmentRequest) Reset() { 46 *x = GatherProjectEnvironmentRequest{} 47 if protoimpl.UnsafeEnabled { 48 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[0] 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 ms.StoreMessageInfo(mi) 51 } 52 } 53 54 func (x *GatherProjectEnvironmentRequest) String() string { 55 return protoimpl.X.MessageStringOf(x) 56 } 57 58 func (*GatherProjectEnvironmentRequest) ProtoMessage() {} 59 60 func (x *GatherProjectEnvironmentRequest) ProtoReflect() protoreflect.Message { 61 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[0] 62 if protoimpl.UnsafeEnabled && x != nil { 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 if ms.LoadMessageInfo() == nil { 65 ms.StoreMessageInfo(mi) 66 } 67 return ms 68 } 69 return mi.MessageOf(x) 70 } 71 72 // Deprecated: Use GatherProjectEnvironmentRequest.ProtoReflect.Descriptor instead. 73 func (*GatherProjectEnvironmentRequest) Descriptor() ([]byte, []int) { 74 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescGZIP(), []int{0} 75 } 76 77 func (x *GatherProjectEnvironmentRequest) GetParent() string { 78 if x != nil { 79 return x.Parent 80 } 81 return "" 82 } 83 84 // Response message for GatherProjectEnvironment 85 // Next available tag: 9 86 type GatherProjectEnvironmentResponse struct { 87 state protoimpl.MessageState 88 sizeCache protoimpl.SizeCache 89 unknownFields protoimpl.UnknownFields 90 91 // Project definitions such as display_name and summary. 92 Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 93 // Configurations of this project such as default search term, 94 // default templates for members and non members. 95 ProjectConfig *ProjectConfig `protobuf:"bytes,2,opt,name=project_config,json=projectConfig,proto3" json:"project_config,omitempty"` 96 // List of statuses that belong to this project. 97 Statuses []*StatusDef `protobuf:"bytes,3,rep,name=statuses,proto3" json:"statuses,omitempty"` 98 // List of well known labels that belong to this project. 99 WellKnownLabels []*LabelDef `protobuf:"bytes,4,rep,name=well_known_labels,json=wellKnownLabels,proto3" json:"well_known_labels,omitempty"` 100 // List of components that belong to this project. 101 Components []*ComponentDef `protobuf:"bytes,5,rep,name=components,proto3" json:"components,omitempty"` 102 // List of custom fields that belong to this project. 103 Fields []*FieldDef `protobuf:"bytes,6,rep,name=fields,proto3" json:"fields,omitempty"` 104 // List of approval fields that belong to this project. 105 ApprovalFields []*ApprovalDef `protobuf:"bytes,7,rep,name=approval_fields,json=approvalFields,proto3" json:"approval_fields,omitempty"` 106 // Saved search queries that admins defined for this project. 107 SavedQueries []*ProjectSavedQuery `protobuf:"bytes,8,rep,name=saved_queries,json=savedQueries,proto3" json:"saved_queries,omitempty"` 108 } 109 110 func (x *GatherProjectEnvironmentResponse) Reset() { 111 *x = GatherProjectEnvironmentResponse{} 112 if protoimpl.UnsafeEnabled { 113 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[1] 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 ms.StoreMessageInfo(mi) 116 } 117 } 118 119 func (x *GatherProjectEnvironmentResponse) String() string { 120 return protoimpl.X.MessageStringOf(x) 121 } 122 123 func (*GatherProjectEnvironmentResponse) ProtoMessage() {} 124 125 func (x *GatherProjectEnvironmentResponse) ProtoReflect() protoreflect.Message { 126 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[1] 127 if protoimpl.UnsafeEnabled && x != nil { 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 if ms.LoadMessageInfo() == nil { 130 ms.StoreMessageInfo(mi) 131 } 132 return ms 133 } 134 return mi.MessageOf(x) 135 } 136 137 // Deprecated: Use GatherProjectEnvironmentResponse.ProtoReflect.Descriptor instead. 138 func (*GatherProjectEnvironmentResponse) Descriptor() ([]byte, []int) { 139 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescGZIP(), []int{1} 140 } 141 142 func (x *GatherProjectEnvironmentResponse) GetProject() *Project { 143 if x != nil { 144 return x.Project 145 } 146 return nil 147 } 148 149 func (x *GatherProjectEnvironmentResponse) GetProjectConfig() *ProjectConfig { 150 if x != nil { 151 return x.ProjectConfig 152 } 153 return nil 154 } 155 156 func (x *GatherProjectEnvironmentResponse) GetStatuses() []*StatusDef { 157 if x != nil { 158 return x.Statuses 159 } 160 return nil 161 } 162 163 func (x *GatherProjectEnvironmentResponse) GetWellKnownLabels() []*LabelDef { 164 if x != nil { 165 return x.WellKnownLabels 166 } 167 return nil 168 } 169 170 func (x *GatherProjectEnvironmentResponse) GetComponents() []*ComponentDef { 171 if x != nil { 172 return x.Components 173 } 174 return nil 175 } 176 177 func (x *GatherProjectEnvironmentResponse) GetFields() []*FieldDef { 178 if x != nil { 179 return x.Fields 180 } 181 return nil 182 } 183 184 func (x *GatherProjectEnvironmentResponse) GetApprovalFields() []*ApprovalDef { 185 if x != nil { 186 return x.ApprovalFields 187 } 188 return nil 189 } 190 191 func (x *GatherProjectEnvironmentResponse) GetSavedQueries() []*ProjectSavedQuery { 192 if x != nil { 193 return x.SavedQueries 194 } 195 return nil 196 } 197 198 // The request message for Frontend.GatherProjectMembershipsForUser. 199 // Next available tag: 2 200 type GatherProjectMembershipsForUserRequest struct { 201 state protoimpl.MessageState 202 sizeCache protoimpl.SizeCache 203 unknownFields protoimpl.UnknownFields 204 205 // The name of the user to request. 206 User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` 207 } 208 209 func (x *GatherProjectMembershipsForUserRequest) Reset() { 210 *x = GatherProjectMembershipsForUserRequest{} 211 if protoimpl.UnsafeEnabled { 212 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[2] 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 ms.StoreMessageInfo(mi) 215 } 216 } 217 218 func (x *GatherProjectMembershipsForUserRequest) String() string { 219 return protoimpl.X.MessageStringOf(x) 220 } 221 222 func (*GatherProjectMembershipsForUserRequest) ProtoMessage() {} 223 224 func (x *GatherProjectMembershipsForUserRequest) ProtoReflect() protoreflect.Message { 225 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[2] 226 if protoimpl.UnsafeEnabled && x != nil { 227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 228 if ms.LoadMessageInfo() == nil { 229 ms.StoreMessageInfo(mi) 230 } 231 return ms 232 } 233 return mi.MessageOf(x) 234 } 235 236 // Deprecated: Use GatherProjectMembershipsForUserRequest.ProtoReflect.Descriptor instead. 237 func (*GatherProjectMembershipsForUserRequest) Descriptor() ([]byte, []int) { 238 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescGZIP(), []int{2} 239 } 240 241 func (x *GatherProjectMembershipsForUserRequest) GetUser() string { 242 if x != nil { 243 return x.User 244 } 245 return "" 246 } 247 248 // The response message for Frontend.GatherProjectMembershipsForUser. 249 // Next available tag: 2 250 type GatherProjectMembershipsForUserResponse struct { 251 state protoimpl.MessageState 252 sizeCache protoimpl.SizeCache 253 unknownFields protoimpl.UnknownFields 254 255 // The projects that the user is a member of. 256 ProjectMemberships []*ProjectMember `protobuf:"bytes,1,rep,name=project_memberships,json=projectMemberships,proto3" json:"project_memberships,omitempty"` 257 } 258 259 func (x *GatherProjectMembershipsForUserResponse) Reset() { 260 *x = GatherProjectMembershipsForUserResponse{} 261 if protoimpl.UnsafeEnabled { 262 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[3] 263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 264 ms.StoreMessageInfo(mi) 265 } 266 } 267 268 func (x *GatherProjectMembershipsForUserResponse) String() string { 269 return protoimpl.X.MessageStringOf(x) 270 } 271 272 func (*GatherProjectMembershipsForUserResponse) ProtoMessage() {} 273 274 func (x *GatherProjectMembershipsForUserResponse) ProtoReflect() protoreflect.Message { 275 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[3] 276 if protoimpl.UnsafeEnabled && x != nil { 277 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 278 if ms.LoadMessageInfo() == nil { 279 ms.StoreMessageInfo(mi) 280 } 281 return ms 282 } 283 return mi.MessageOf(x) 284 } 285 286 // Deprecated: Use GatherProjectMembershipsForUserResponse.ProtoReflect.Descriptor instead. 287 func (*GatherProjectMembershipsForUserResponse) Descriptor() ([]byte, []int) { 288 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescGZIP(), []int{3} 289 } 290 291 func (x *GatherProjectMembershipsForUserResponse) GetProjectMemberships() []*ProjectMember { 292 if x != nil { 293 return x.ProjectMemberships 294 } 295 return nil 296 } 297 298 var File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto protoreflect.FileDescriptor 299 300 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDesc = []byte{ 301 0x0a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 302 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 303 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x6d, 0x6f, 304 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 305 0x2f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 306 0x0b, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x67, 0x6f, 307 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 308 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 309 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 310 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x54, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 311 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 312 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 313 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 314 0x70, 0x69, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 315 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 316 0x0a, 0x1f, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 317 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 318 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 319 0x09, 0x42, 0x1d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x61, 0x70, 0x69, 0x2e, 0x63, 320 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 321 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0xfe, 0x03, 0x0a, 0x20, 0x47, 0x61, 0x74, 322 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 323 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 324 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 325 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 326 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x41, 0x0a, 327 0x0e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 328 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 329 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 330 0x67, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 331 0x12, 0x32, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 332 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 333 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x44, 0x65, 0x66, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 334 0x75, 0x73, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x77, 0x65, 0x6c, 0x6c, 0x5f, 0x6b, 0x6e, 0x6f, 335 0x77, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 336 0x15, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x61, 337 0x62, 0x65, 0x6c, 0x44, 0x65, 0x66, 0x52, 0x0f, 0x77, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 338 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 339 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x6f, 340 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 341 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 342 0x74, 0x73, 0x12, 0x2d, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 343 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 344 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x66, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 345 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x66, 0x69, 346 0x65, 0x6c, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x6f, 0x6e, 347 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 348 0x6c, 0x44, 0x65, 0x66, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x46, 0x69, 349 0x65, 0x6c, 0x64, 0x73, 0x12, 0x43, 0x0a, 0x0d, 0x73, 0x61, 0x76, 0x65, 0x64, 0x5f, 0x71, 0x75, 350 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x6f, 351 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 352 0x74, 0x53, 0x61, 0x76, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x0c, 0x73, 0x61, 0x76, 353 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x55, 0x0a, 0x26, 0x47, 0x61, 0x74, 354 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 355 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 356 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 357 0x09, 0x42, 0x17, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 358 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 359 0x22, 0x76, 0x0a, 0x27, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 360 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x55, 361 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x13, 0x70, 362 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 363 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 364 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 365 0x6d, 0x62, 0x65, 0x72, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 366 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x32, 0x96, 0x02, 0x0a, 0x08, 0x46, 0x72, 0x6f, 367 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x79, 0x0a, 0x18, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x50, 368 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 369 0x74, 0x12, 0x2c, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 370 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 371 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 372 0x2d, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x61, 373 0x74, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 374 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 375 0x12, 0x8e, 0x01, 0x0a, 0x1f, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 376 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 377 0x55, 0x73, 0x65, 0x72, 0x12, 0x33, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 378 0x76, 0x33, 0x2e, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 379 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 0x46, 0x6f, 0x72, 0x55, 0x73, 380 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 381 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x61, 0x74, 0x68, 0x65, 0x72, 0x50, 0x72, 382 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x73, 383 0x46, 0x6f, 0x72, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 384 0x00, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 385 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 386 0x69, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 387 0x2f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 388 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 389 } 390 391 var ( 392 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescOnce sync.Once 393 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescData = file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDesc 394 ) 395 396 func file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescGZIP() []byte { 397 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescOnce.Do(func() { 398 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescData) 399 }) 400 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDescData 401 } 402 403 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 404 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_goTypes = []interface{}{ 405 (*GatherProjectEnvironmentRequest)(nil), // 0: monorail.v3.GatherProjectEnvironmentRequest 406 (*GatherProjectEnvironmentResponse)(nil), // 1: monorail.v3.GatherProjectEnvironmentResponse 407 (*GatherProjectMembershipsForUserRequest)(nil), // 2: monorail.v3.GatherProjectMembershipsForUserRequest 408 (*GatherProjectMembershipsForUserResponse)(nil), // 3: monorail.v3.GatherProjectMembershipsForUserResponse 409 (*Project)(nil), // 4: monorail.v3.Project 410 (*ProjectConfig)(nil), // 5: monorail.v3.ProjectConfig 411 (*StatusDef)(nil), // 6: monorail.v3.StatusDef 412 (*LabelDef)(nil), // 7: monorail.v3.LabelDef 413 (*ComponentDef)(nil), // 8: monorail.v3.ComponentDef 414 (*FieldDef)(nil), // 9: monorail.v3.FieldDef 415 (*ApprovalDef)(nil), // 10: monorail.v3.ApprovalDef 416 (*ProjectSavedQuery)(nil), // 11: monorail.v3.ProjectSavedQuery 417 (*ProjectMember)(nil), // 12: monorail.v3.ProjectMember 418 } 419 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_depIdxs = []int32{ 420 4, // 0: monorail.v3.GatherProjectEnvironmentResponse.project:type_name -> monorail.v3.Project 421 5, // 1: monorail.v3.GatherProjectEnvironmentResponse.project_config:type_name -> monorail.v3.ProjectConfig 422 6, // 2: monorail.v3.GatherProjectEnvironmentResponse.statuses:type_name -> monorail.v3.StatusDef 423 7, // 3: monorail.v3.GatherProjectEnvironmentResponse.well_known_labels:type_name -> monorail.v3.LabelDef 424 8, // 4: monorail.v3.GatherProjectEnvironmentResponse.components:type_name -> monorail.v3.ComponentDef 425 9, // 5: monorail.v3.GatherProjectEnvironmentResponse.fields:type_name -> monorail.v3.FieldDef 426 10, // 6: monorail.v3.GatherProjectEnvironmentResponse.approval_fields:type_name -> monorail.v3.ApprovalDef 427 11, // 7: monorail.v3.GatherProjectEnvironmentResponse.saved_queries:type_name -> monorail.v3.ProjectSavedQuery 428 12, // 8: monorail.v3.GatherProjectMembershipsForUserResponse.project_memberships:type_name -> monorail.v3.ProjectMember 429 0, // 9: monorail.v3.Frontend.GatherProjectEnvironment:input_type -> monorail.v3.GatherProjectEnvironmentRequest 430 2, // 10: monorail.v3.Frontend.GatherProjectMembershipsForUser:input_type -> monorail.v3.GatherProjectMembershipsForUserRequest 431 1, // 11: monorail.v3.Frontend.GatherProjectEnvironment:output_type -> monorail.v3.GatherProjectEnvironmentResponse 432 3, // 12: monorail.v3.Frontend.GatherProjectMembershipsForUser:output_type -> monorail.v3.GatherProjectMembershipsForUserResponse 433 11, // [11:13] is the sub-list for method output_type 434 9, // [9:11] is the sub-list for method input_type 435 9, // [9:9] is the sub-list for extension type_name 436 9, // [9:9] is the sub-list for extension extendee 437 0, // [0:9] is the sub-list for field type_name 438 } 439 440 func init() { 441 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_init() 442 } 443 func file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_init() { 444 if File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto != nil { 445 return 446 } 447 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_project_objects_proto_init() 448 if !protoimpl.UnsafeEnabled { 449 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 450 switch v := v.(*GatherProjectEnvironmentRequest); i { 451 case 0: 452 return &v.state 453 case 1: 454 return &v.sizeCache 455 case 2: 456 return &v.unknownFields 457 default: 458 return nil 459 } 460 } 461 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 462 switch v := v.(*GatherProjectEnvironmentResponse); i { 463 case 0: 464 return &v.state 465 case 1: 466 return &v.sizeCache 467 case 2: 468 return &v.unknownFields 469 default: 470 return nil 471 } 472 } 473 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 474 switch v := v.(*GatherProjectMembershipsForUserRequest); i { 475 case 0: 476 return &v.state 477 case 1: 478 return &v.sizeCache 479 case 2: 480 return &v.unknownFields 481 default: 482 return nil 483 } 484 } 485 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 486 switch v := v.(*GatherProjectMembershipsForUserResponse); i { 487 case 0: 488 return &v.state 489 case 1: 490 return &v.sizeCache 491 case 2: 492 return &v.unknownFields 493 default: 494 return nil 495 } 496 } 497 } 498 type x struct{} 499 out := protoimpl.TypeBuilder{ 500 File: protoimpl.DescBuilder{ 501 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 502 RawDescriptor: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDesc, 503 NumEnums: 0, 504 NumMessages: 4, 505 NumExtensions: 0, 506 NumServices: 1, 507 }, 508 GoTypes: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_goTypes, 509 DependencyIndexes: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_depIdxs, 510 MessageInfos: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_msgTypes, 511 }.Build() 512 File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto = out.File 513 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_rawDesc = nil 514 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_goTypes = nil 515 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_frontend_proto_depIdxs = nil 516 } 517 518 // Reference imports to suppress errors if they are not otherwise used. 519 var _ context.Context 520 var _ grpc.ClientConnInterface 521 522 // This is a compile-time assertion to ensure that this generated file 523 // is compatible with the grpc package it is being compiled against. 524 const _ = grpc.SupportPackageIsVersion6 525 526 // FrontendClient is the client API for Frontend service. 527 // 528 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 529 type FrontendClient interface { 530 // status: DO NOT USE 531 // Returns all project specific configurations needed for the SPA client. 532 // 533 // Raises: 534 // 535 // INVALID_ARGUMENT if the project resource name provided is invalid. 536 // NOT_FOUND if the parent project is not found. 537 // PERMISSION_DENIED if user is not allowed to view this project. 538 GatherProjectEnvironment(ctx context.Context, in *GatherProjectEnvironmentRequest, opts ...grpc.CallOption) (*GatherProjectEnvironmentResponse, error) 539 // status: DO NOT USE 540 // Returns all of a given user's project memberships. 541 // 542 // Raises: 543 // 544 // NOT_FOUND if the user is not found. 545 // INVALID_ARGUMENT if the user resource name provided is invalid. 546 GatherProjectMembershipsForUser(ctx context.Context, in *GatherProjectMembershipsForUserRequest, opts ...grpc.CallOption) (*GatherProjectMembershipsForUserResponse, error) 547 } 548 type frontendPRPCClient struct { 549 client *prpc.Client 550 } 551 552 func NewFrontendPRPCClient(client *prpc.Client) FrontendClient { 553 return &frontendPRPCClient{client} 554 } 555 556 func (c *frontendPRPCClient) GatherProjectEnvironment(ctx context.Context, in *GatherProjectEnvironmentRequest, opts ...grpc.CallOption) (*GatherProjectEnvironmentResponse, error) { 557 out := new(GatherProjectEnvironmentResponse) 558 err := c.client.Call(ctx, "monorail.v3.Frontend", "GatherProjectEnvironment", in, out, opts...) 559 if err != nil { 560 return nil, err 561 } 562 return out, nil 563 } 564 565 func (c *frontendPRPCClient) GatherProjectMembershipsForUser(ctx context.Context, in *GatherProjectMembershipsForUserRequest, opts ...grpc.CallOption) (*GatherProjectMembershipsForUserResponse, error) { 566 out := new(GatherProjectMembershipsForUserResponse) 567 err := c.client.Call(ctx, "monorail.v3.Frontend", "GatherProjectMembershipsForUser", in, out, opts...) 568 if err != nil { 569 return nil, err 570 } 571 return out, nil 572 } 573 574 type frontendClient struct { 575 cc grpc.ClientConnInterface 576 } 577 578 func NewFrontendClient(cc grpc.ClientConnInterface) FrontendClient { 579 return &frontendClient{cc} 580 } 581 582 func (c *frontendClient) GatherProjectEnvironment(ctx context.Context, in *GatherProjectEnvironmentRequest, opts ...grpc.CallOption) (*GatherProjectEnvironmentResponse, error) { 583 out := new(GatherProjectEnvironmentResponse) 584 err := c.cc.Invoke(ctx, "/monorail.v3.Frontend/GatherProjectEnvironment", in, out, opts...) 585 if err != nil { 586 return nil, err 587 } 588 return out, nil 589 } 590 591 func (c *frontendClient) GatherProjectMembershipsForUser(ctx context.Context, in *GatherProjectMembershipsForUserRequest, opts ...grpc.CallOption) (*GatherProjectMembershipsForUserResponse, error) { 592 out := new(GatherProjectMembershipsForUserResponse) 593 err := c.cc.Invoke(ctx, "/monorail.v3.Frontend/GatherProjectMembershipsForUser", in, out, opts...) 594 if err != nil { 595 return nil, err 596 } 597 return out, nil 598 } 599 600 // FrontendServer is the server API for Frontend service. 601 type FrontendServer interface { 602 // status: DO NOT USE 603 // Returns all project specific configurations needed for the SPA client. 604 // 605 // Raises: 606 // 607 // INVALID_ARGUMENT if the project resource name provided is invalid. 608 // NOT_FOUND if the parent project is not found. 609 // PERMISSION_DENIED if user is not allowed to view this project. 610 GatherProjectEnvironment(context.Context, *GatherProjectEnvironmentRequest) (*GatherProjectEnvironmentResponse, error) 611 // status: DO NOT USE 612 // Returns all of a given user's project memberships. 613 // 614 // Raises: 615 // 616 // NOT_FOUND if the user is not found. 617 // INVALID_ARGUMENT if the user resource name provided is invalid. 618 GatherProjectMembershipsForUser(context.Context, *GatherProjectMembershipsForUserRequest) (*GatherProjectMembershipsForUserResponse, error) 619 } 620 621 // UnimplementedFrontendServer can be embedded to have forward compatible implementations. 622 type UnimplementedFrontendServer struct { 623 } 624 625 func (*UnimplementedFrontendServer) GatherProjectEnvironment(context.Context, *GatherProjectEnvironmentRequest) (*GatherProjectEnvironmentResponse, error) { 626 return nil, status.Errorf(codes.Unimplemented, "method GatherProjectEnvironment not implemented") 627 } 628 func (*UnimplementedFrontendServer) GatherProjectMembershipsForUser(context.Context, *GatherProjectMembershipsForUserRequest) (*GatherProjectMembershipsForUserResponse, error) { 629 return nil, status.Errorf(codes.Unimplemented, "method GatherProjectMembershipsForUser not implemented") 630 } 631 632 func RegisterFrontendServer(s prpc.Registrar, srv FrontendServer) { 633 s.RegisterService(&_Frontend_serviceDesc, srv) 634 } 635 636 func _Frontend_GatherProjectEnvironment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 637 in := new(GatherProjectEnvironmentRequest) 638 if err := dec(in); err != nil { 639 return nil, err 640 } 641 if interceptor == nil { 642 return srv.(FrontendServer).GatherProjectEnvironment(ctx, in) 643 } 644 info := &grpc.UnaryServerInfo{ 645 Server: srv, 646 FullMethod: "/monorail.v3.Frontend/GatherProjectEnvironment", 647 } 648 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 649 return srv.(FrontendServer).GatherProjectEnvironment(ctx, req.(*GatherProjectEnvironmentRequest)) 650 } 651 return interceptor(ctx, in, info, handler) 652 } 653 654 func _Frontend_GatherProjectMembershipsForUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 655 in := new(GatherProjectMembershipsForUserRequest) 656 if err := dec(in); err != nil { 657 return nil, err 658 } 659 if interceptor == nil { 660 return srv.(FrontendServer).GatherProjectMembershipsForUser(ctx, in) 661 } 662 info := &grpc.UnaryServerInfo{ 663 Server: srv, 664 FullMethod: "/monorail.v3.Frontend/GatherProjectMembershipsForUser", 665 } 666 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 667 return srv.(FrontendServer).GatherProjectMembershipsForUser(ctx, req.(*GatherProjectMembershipsForUserRequest)) 668 } 669 return interceptor(ctx, in, info, handler) 670 } 671 672 var _Frontend_serviceDesc = grpc.ServiceDesc{ 673 ServiceName: "monorail.v3.Frontend", 674 HandlerType: (*FrontendServer)(nil), 675 Methods: []grpc.MethodDesc{ 676 { 677 MethodName: "GatherProjectEnvironment", 678 Handler: _Frontend_GatherProjectEnvironment_Handler, 679 }, 680 { 681 MethodName: "GatherProjectMembershipsForUser", 682 Handler: _Frontend_GatherProjectMembershipsForUser_Handler, 683 }, 684 }, 685 Streams: []grpc.StreamDesc{}, 686 Metadata: "go.chromium.org/luci/analysis/internal/bugs/monorail/api_proto/frontend.proto", 687 }