go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/luci_notify/api/service/v1/rpc.pb.go (about) 1 // Copyright 2021 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.32.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/luci_notify/api/service/v1/rpc.proto 20 21 package lucinotifypb 22 23 import prpc "go.chromium.org/luci/grpc/prpc" 24 25 import ( 26 context "context" 27 grpc "google.golang.org/grpc" 28 codes "google.golang.org/grpc/codes" 29 status "google.golang.org/grpc/status" 30 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 31 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 32 reflect "reflect" 33 sync "sync" 34 ) 35 36 const ( 37 // Verify that this generated code is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 39 // Verify that runtime/protoimpl is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 41 ) 42 43 type CheckTreeCloserRequest struct { 44 state protoimpl.MessageState 45 sizeCache protoimpl.SizeCache 46 unknownFields protoimpl.UnknownFields 47 48 // Project of the builder 49 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 50 // Bucket of the builder 51 Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` 52 // Name of the builder 53 Builder string `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"` 54 // Some tree closers are only close if some particular steps failed. 55 Step string `protobuf:"bytes,4,opt,name=step,proto3" json:"step,omitempty"` 56 } 57 58 func (x *CheckTreeCloserRequest) Reset() { 59 *x = CheckTreeCloserRequest{} 60 if protoimpl.UnsafeEnabled { 61 mi := &file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes[0] 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 ms.StoreMessageInfo(mi) 64 } 65 } 66 67 func (x *CheckTreeCloserRequest) String() string { 68 return protoimpl.X.MessageStringOf(x) 69 } 70 71 func (*CheckTreeCloserRequest) ProtoMessage() {} 72 73 func (x *CheckTreeCloserRequest) ProtoReflect() protoreflect.Message { 74 mi := &file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes[0] 75 if protoimpl.UnsafeEnabled && x != nil { 76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 77 if ms.LoadMessageInfo() == nil { 78 ms.StoreMessageInfo(mi) 79 } 80 return ms 81 } 82 return mi.MessageOf(x) 83 } 84 85 // Deprecated: Use CheckTreeCloserRequest.ProtoReflect.Descriptor instead. 86 func (*CheckTreeCloserRequest) Descriptor() ([]byte, []int) { 87 return file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescGZIP(), []int{0} 88 } 89 90 func (x *CheckTreeCloserRequest) GetProject() string { 91 if x != nil { 92 return x.Project 93 } 94 return "" 95 } 96 97 func (x *CheckTreeCloserRequest) GetBucket() string { 98 if x != nil { 99 return x.Bucket 100 } 101 return "" 102 } 103 104 func (x *CheckTreeCloserRequest) GetBuilder() string { 105 if x != nil { 106 return x.Builder 107 } 108 return "" 109 } 110 111 func (x *CheckTreeCloserRequest) GetStep() string { 112 if x != nil { 113 return x.Step 114 } 115 return "" 116 } 117 118 type CheckTreeCloserResponse struct { 119 state protoimpl.MessageState 120 sizeCache protoimpl.SizeCache 121 unknownFields protoimpl.UnknownFields 122 123 // Whether this is a tree closer 124 IsTreeCloser bool `protobuf:"varint,1,opt,name=is_tree_closer,json=isTreeCloser,proto3" json:"is_tree_closer,omitempty"` 125 } 126 127 func (x *CheckTreeCloserResponse) Reset() { 128 *x = CheckTreeCloserResponse{} 129 if protoimpl.UnsafeEnabled { 130 mi := &file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes[1] 131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 132 ms.StoreMessageInfo(mi) 133 } 134 } 135 136 func (x *CheckTreeCloserResponse) String() string { 137 return protoimpl.X.MessageStringOf(x) 138 } 139 140 func (*CheckTreeCloserResponse) ProtoMessage() {} 141 142 func (x *CheckTreeCloserResponse) ProtoReflect() protoreflect.Message { 143 mi := &file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes[1] 144 if protoimpl.UnsafeEnabled && x != nil { 145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 146 if ms.LoadMessageInfo() == nil { 147 ms.StoreMessageInfo(mi) 148 } 149 return ms 150 } 151 return mi.MessageOf(x) 152 } 153 154 // Deprecated: Use CheckTreeCloserResponse.ProtoReflect.Descriptor instead. 155 func (*CheckTreeCloserResponse) Descriptor() ([]byte, []int) { 156 return file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescGZIP(), []int{1} 157 } 158 159 func (x *CheckTreeCloserResponse) GetIsTreeCloser() bool { 160 if x != nil { 161 return x.IsTreeCloser 162 } 163 return false 164 } 165 166 var File_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto protoreflect.FileDescriptor 167 168 var file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDesc = []byte{ 169 0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 170 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 171 0x66, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 172 0x31, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x75, 0x63, 173 0x69, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x76, 0x31, 0x22, 0x78, 0x0a, 0x16, 0x43, 174 0x68, 0x65, 0x63, 0x6b, 0x54, 0x72, 0x65, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x72, 0x52, 0x65, 175 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 176 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 177 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 178 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 179 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 180 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 181 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x3f, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x72, 182 0x65, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 183 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 184 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x54, 0x72, 0x65, 0x65, 185 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x72, 0x32, 0x72, 0x0a, 0x0a, 0x54, 0x72, 0x65, 0x65, 0x43, 0x6c, 186 0x6f, 0x73, 0x65, 0x72, 0x12, 0x64, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x72, 0x65, 187 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x6e, 188 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x72, 189 0x65, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 190 0x27, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x76, 0x31, 191 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x72, 0x65, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x72, 192 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x6f, 193 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 194 0x63, 0x69, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2f, 0x61, 195 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6c, 0x75, 196 0x63, 0x69, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 197 0x6f, 0x33, 198 } 199 200 var ( 201 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescOnce sync.Once 202 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescData = file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDesc 203 ) 204 205 func file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescGZIP() []byte { 206 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescOnce.Do(func() { 207 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescData) 208 }) 209 return file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDescData 210 } 211 212 var file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 213 var file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_goTypes = []interface{}{ 214 (*CheckTreeCloserRequest)(nil), // 0: luci.notify.v1.CheckTreeCloserRequest 215 (*CheckTreeCloserResponse)(nil), // 1: luci.notify.v1.CheckTreeCloserResponse 216 } 217 var file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_depIdxs = []int32{ 218 0, // 0: luci.notify.v1.TreeCloser.CheckTreeCloser:input_type -> luci.notify.v1.CheckTreeCloserRequest 219 1, // 1: luci.notify.v1.TreeCloser.CheckTreeCloser:output_type -> luci.notify.v1.CheckTreeCloserResponse 220 1, // [1:2] is the sub-list for method output_type 221 0, // [0:1] is the sub-list for method input_type 222 0, // [0:0] is the sub-list for extension type_name 223 0, // [0:0] is the sub-list for extension extendee 224 0, // [0:0] is the sub-list for field type_name 225 } 226 227 func init() { file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_init() } 228 func file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_init() { 229 if File_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto != nil { 230 return 231 } 232 if !protoimpl.UnsafeEnabled { 233 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 234 switch v := v.(*CheckTreeCloserRequest); i { 235 case 0: 236 return &v.state 237 case 1: 238 return &v.sizeCache 239 case 2: 240 return &v.unknownFields 241 default: 242 return nil 243 } 244 } 245 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 246 switch v := v.(*CheckTreeCloserResponse); i { 247 case 0: 248 return &v.state 249 case 1: 250 return &v.sizeCache 251 case 2: 252 return &v.unknownFields 253 default: 254 return nil 255 } 256 } 257 } 258 type x struct{} 259 out := protoimpl.TypeBuilder{ 260 File: protoimpl.DescBuilder{ 261 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 262 RawDescriptor: file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDesc, 263 NumEnums: 0, 264 NumMessages: 2, 265 NumExtensions: 0, 266 NumServices: 1, 267 }, 268 GoTypes: file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_goTypes, 269 DependencyIndexes: file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_depIdxs, 270 MessageInfos: file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_msgTypes, 271 }.Build() 272 File_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto = out.File 273 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_rawDesc = nil 274 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_goTypes = nil 275 file_go_chromium_org_luci_luci_notify_api_service_v1_rpc_proto_depIdxs = nil 276 } 277 278 // Reference imports to suppress errors if they are not otherwise used. 279 var _ context.Context 280 var _ grpc.ClientConnInterface 281 282 // This is a compile-time assertion to ensure that this generated file 283 // is compatible with the grpc package it is being compiled against. 284 const _ = grpc.SupportPackageIsVersion6 285 286 // TreeCloserClient is the client API for TreeCloser service. 287 // 288 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 289 type TreeCloserClient interface { 290 // Checks if the builder in CheckTreeCloserRequest is tree-closer or not 291 CheckTreeCloser(ctx context.Context, in *CheckTreeCloserRequest, opts ...grpc.CallOption) (*CheckTreeCloserResponse, error) 292 } 293 type treeCloserPRPCClient struct { 294 client *prpc.Client 295 } 296 297 func NewTreeCloserPRPCClient(client *prpc.Client) TreeCloserClient { 298 return &treeCloserPRPCClient{client} 299 } 300 301 func (c *treeCloserPRPCClient) CheckTreeCloser(ctx context.Context, in *CheckTreeCloserRequest, opts ...grpc.CallOption) (*CheckTreeCloserResponse, error) { 302 out := new(CheckTreeCloserResponse) 303 err := c.client.Call(ctx, "luci.notify.v1.TreeCloser", "CheckTreeCloser", in, out, opts...) 304 if err != nil { 305 return nil, err 306 } 307 return out, nil 308 } 309 310 type treeCloserClient struct { 311 cc grpc.ClientConnInterface 312 } 313 314 func NewTreeCloserClient(cc grpc.ClientConnInterface) TreeCloserClient { 315 return &treeCloserClient{cc} 316 } 317 318 func (c *treeCloserClient) CheckTreeCloser(ctx context.Context, in *CheckTreeCloserRequest, opts ...grpc.CallOption) (*CheckTreeCloserResponse, error) { 319 out := new(CheckTreeCloserResponse) 320 err := c.cc.Invoke(ctx, "/luci.notify.v1.TreeCloser/CheckTreeCloser", in, out, opts...) 321 if err != nil { 322 return nil, err 323 } 324 return out, nil 325 } 326 327 // TreeCloserServer is the server API for TreeCloser service. 328 type TreeCloserServer interface { 329 // Checks if the builder in CheckTreeCloserRequest is tree-closer or not 330 CheckTreeCloser(context.Context, *CheckTreeCloserRequest) (*CheckTreeCloserResponse, error) 331 } 332 333 // UnimplementedTreeCloserServer can be embedded to have forward compatible implementations. 334 type UnimplementedTreeCloserServer struct { 335 } 336 337 func (*UnimplementedTreeCloserServer) CheckTreeCloser(context.Context, *CheckTreeCloserRequest) (*CheckTreeCloserResponse, error) { 338 return nil, status.Errorf(codes.Unimplemented, "method CheckTreeCloser not implemented") 339 } 340 341 func RegisterTreeCloserServer(s prpc.Registrar, srv TreeCloserServer) { 342 s.RegisterService(&_TreeCloser_serviceDesc, srv) 343 } 344 345 func _TreeCloser_CheckTreeCloser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 346 in := new(CheckTreeCloserRequest) 347 if err := dec(in); err != nil { 348 return nil, err 349 } 350 if interceptor == nil { 351 return srv.(TreeCloserServer).CheckTreeCloser(ctx, in) 352 } 353 info := &grpc.UnaryServerInfo{ 354 Server: srv, 355 FullMethod: "/luci.notify.v1.TreeCloser/CheckTreeCloser", 356 } 357 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 358 return srv.(TreeCloserServer).CheckTreeCloser(ctx, req.(*CheckTreeCloserRequest)) 359 } 360 return interceptor(ctx, in, info, handler) 361 } 362 363 var _TreeCloser_serviceDesc = grpc.ServiceDesc{ 364 ServiceName: "luci.notify.v1.TreeCloser", 365 HandlerType: (*TreeCloserServer)(nil), 366 Methods: []grpc.MethodDesc{ 367 { 368 MethodName: "CheckTreeCloser", 369 Handler: _TreeCloser_CheckTreeCloser_Handler, 370 }, 371 }, 372 Streams: []grpc.StreamDesc{}, 373 Metadata: "go.chromium.org/luci/luci_notify/api/service/v1/rpc.proto", 374 }