go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/tsmon/ts_mon_proto/service.pb.go (about) 1 // Copyright 2021 The Chromium Authors. All rights reserved. 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/common/tsmon/ts_mon_proto/service.proto 10 11 package ts_mon_proto 12 13 import prpc "go.chromium.org/luci/grpc/prpc" 14 15 import ( 16 context "context" 17 status "google.golang.org/genproto/googleapis/rpc/status" 18 grpc "google.golang.org/grpc" 19 codes "google.golang.org/grpc/codes" 20 status1 "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 type MonitoringInsertRequest struct { 35 state protoimpl.MessageState 36 sizeCache protoimpl.SizeCache 37 unknownFields protoimpl.UnknownFields 38 39 Payload *MetricsPayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` 40 } 41 42 func (x *MonitoringInsertRequest) Reset() { 43 *x = MonitoringInsertRequest{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *MonitoringInsertRequest) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*MonitoringInsertRequest) ProtoMessage() {} 56 57 func (x *MonitoringInsertRequest) ProtoReflect() protoreflect.Message { 58 mi := &file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use MonitoringInsertRequest.ProtoReflect.Descriptor instead. 70 func (*MonitoringInsertRequest) Descriptor() ([]byte, []int) { 71 return file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *MonitoringInsertRequest) GetPayload() *MetricsPayload { 75 if x != nil { 76 return x.Payload 77 } 78 return nil 79 } 80 81 type MonitoringInsertResponse struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 ResponseStatus *status.Status `protobuf:"bytes,1,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` 87 } 88 89 func (x *MonitoringInsertResponse) Reset() { 90 *x = MonitoringInsertResponse{} 91 if protoimpl.UnsafeEnabled { 92 mi := &file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes[1] 93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 94 ms.StoreMessageInfo(mi) 95 } 96 } 97 98 func (x *MonitoringInsertResponse) String() string { 99 return protoimpl.X.MessageStringOf(x) 100 } 101 102 func (*MonitoringInsertResponse) ProtoMessage() {} 103 104 func (x *MonitoringInsertResponse) ProtoReflect() protoreflect.Message { 105 mi := &file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes[1] 106 if protoimpl.UnsafeEnabled && x != nil { 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 if ms.LoadMessageInfo() == nil { 109 ms.StoreMessageInfo(mi) 110 } 111 return ms 112 } 113 return mi.MessageOf(x) 114 } 115 116 // Deprecated: Use MonitoringInsertResponse.ProtoReflect.Descriptor instead. 117 func (*MonitoringInsertResponse) Descriptor() ([]byte, []int) { 118 return file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescGZIP(), []int{1} 119 } 120 121 func (x *MonitoringInsertResponse) GetResponseStatus() *status.Status { 122 if x != nil { 123 return x.ResponseStatus 124 } 125 return nil 126 } 127 128 var File_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto protoreflect.FileDescriptor 129 130 var file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDesc = []byte{ 131 0x0a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 132 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x73, 133 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 134 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 135 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 136 0x70, 0x72, 0x6f, 0x64, 0x78, 0x2e, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x67, 0x6f, 137 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 138 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 139 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 140 0x6f, 0x6e, 0x2f, 0x74, 0x73, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x5f, 141 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 142 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x17, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 143 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 144 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 145 0x1c, 0x2e, 0x74, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 146 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x07, 0x70, 147 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0x57, 0x0a, 0x18, 148 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 149 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 150 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 151 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 152 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 153 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x8c, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 154 0x72, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x77, 0x0a, 0x06, 0x49, 155 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 156 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x78, 0x2e, 0x6d, 0x6f, 157 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x49, 158 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 159 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 160 0x72, 0x6f, 0x64, 0x78, 0x2e, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 161 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 162 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 163 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 164 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x73, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 165 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 166 } 167 168 var ( 169 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescOnce sync.Once 170 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescData = file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDesc 171 ) 172 173 func file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescGZIP() []byte { 174 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescOnce.Do(func() { 175 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescData) 176 }) 177 return file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDescData 178 } 179 180 var file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 181 var file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_goTypes = []interface{}{ 182 (*MonitoringInsertRequest)(nil), // 0: google.internal.prodx.mon.v1.MonitoringInsertRequest 183 (*MonitoringInsertResponse)(nil), // 1: google.internal.prodx.mon.v1.MonitoringInsertResponse 184 (*MetricsPayload)(nil), // 2: ts_mon.proto.MetricsPayload 185 (*status.Status)(nil), // 3: google.rpc.Status 186 } 187 var file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_depIdxs = []int32{ 188 2, // 0: google.internal.prodx.mon.v1.MonitoringInsertRequest.payload:type_name -> ts_mon.proto.MetricsPayload 189 3, // 1: google.internal.prodx.mon.v1.MonitoringInsertResponse.response_status:type_name -> google.rpc.Status 190 0, // 2: google.internal.prodx.mon.v1.MonitoringService.Insert:input_type -> google.internal.prodx.mon.v1.MonitoringInsertRequest 191 1, // 3: google.internal.prodx.mon.v1.MonitoringService.Insert:output_type -> google.internal.prodx.mon.v1.MonitoringInsertResponse 192 3, // [3:4] is the sub-list for method output_type 193 2, // [2:3] is the sub-list for method input_type 194 2, // [2:2] is the sub-list for extension type_name 195 2, // [2:2] is the sub-list for extension extendee 196 0, // [0:2] is the sub-list for field type_name 197 } 198 199 func init() { file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_init() } 200 func file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_init() { 201 if File_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto != nil { 202 return 203 } 204 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_metrics_proto_init() 205 if !protoimpl.UnsafeEnabled { 206 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 207 switch v := v.(*MonitoringInsertRequest); i { 208 case 0: 209 return &v.state 210 case 1: 211 return &v.sizeCache 212 case 2: 213 return &v.unknownFields 214 default: 215 return nil 216 } 217 } 218 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 219 switch v := v.(*MonitoringInsertResponse); i { 220 case 0: 221 return &v.state 222 case 1: 223 return &v.sizeCache 224 case 2: 225 return &v.unknownFields 226 default: 227 return nil 228 } 229 } 230 } 231 type x struct{} 232 out := protoimpl.TypeBuilder{ 233 File: protoimpl.DescBuilder{ 234 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 235 RawDescriptor: file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDesc, 236 NumEnums: 0, 237 NumMessages: 2, 238 NumExtensions: 0, 239 NumServices: 1, 240 }, 241 GoTypes: file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_goTypes, 242 DependencyIndexes: file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_depIdxs, 243 MessageInfos: file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_msgTypes, 244 }.Build() 245 File_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto = out.File 246 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_rawDesc = nil 247 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_goTypes = nil 248 file_go_chromium_org_luci_common_tsmon_ts_mon_proto_service_proto_depIdxs = nil 249 } 250 251 // Reference imports to suppress errors if they are not otherwise used. 252 var _ context.Context 253 var _ grpc.ClientConnInterface 254 255 // This is a compile-time assertion to ensure that this generated file 256 // is compatible with the grpc package it is being compiled against. 257 const _ = grpc.SupportPackageIsVersion6 258 259 // MonitoringServiceClient is the client API for MonitoringService service. 260 // 261 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 262 type MonitoringServiceClient interface { 263 Insert(ctx context.Context, in *MonitoringInsertRequest, opts ...grpc.CallOption) (*MonitoringInsertResponse, error) 264 } 265 type monitoringServicePRPCClient struct { 266 client *prpc.Client 267 } 268 269 func NewMonitoringServicePRPCClient(client *prpc.Client) MonitoringServiceClient { 270 return &monitoringServicePRPCClient{client} 271 } 272 273 func (c *monitoringServicePRPCClient) Insert(ctx context.Context, in *MonitoringInsertRequest, opts ...grpc.CallOption) (*MonitoringInsertResponse, error) { 274 out := new(MonitoringInsertResponse) 275 err := c.client.Call(ctx, "google.internal.prodx.mon.v1.MonitoringService", "Insert", in, out, opts...) 276 if err != nil { 277 return nil, err 278 } 279 return out, nil 280 } 281 282 type monitoringServiceClient struct { 283 cc grpc.ClientConnInterface 284 } 285 286 func NewMonitoringServiceClient(cc grpc.ClientConnInterface) MonitoringServiceClient { 287 return &monitoringServiceClient{cc} 288 } 289 290 func (c *monitoringServiceClient) Insert(ctx context.Context, in *MonitoringInsertRequest, opts ...grpc.CallOption) (*MonitoringInsertResponse, error) { 291 out := new(MonitoringInsertResponse) 292 err := c.cc.Invoke(ctx, "/google.internal.prodx.mon.v1.MonitoringService/Insert", in, out, opts...) 293 if err != nil { 294 return nil, err 295 } 296 return out, nil 297 } 298 299 // MonitoringServiceServer is the server API for MonitoringService service. 300 type MonitoringServiceServer interface { 301 Insert(context.Context, *MonitoringInsertRequest) (*MonitoringInsertResponse, error) 302 } 303 304 // UnimplementedMonitoringServiceServer can be embedded to have forward compatible implementations. 305 type UnimplementedMonitoringServiceServer struct { 306 } 307 308 func (*UnimplementedMonitoringServiceServer) Insert(context.Context, *MonitoringInsertRequest) (*MonitoringInsertResponse, error) { 309 return nil, status1.Errorf(codes.Unimplemented, "method Insert not implemented") 310 } 311 312 func RegisterMonitoringServiceServer(s prpc.Registrar, srv MonitoringServiceServer) { 313 s.RegisterService(&_MonitoringService_serviceDesc, srv) 314 } 315 316 func _MonitoringService_Insert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 317 in := new(MonitoringInsertRequest) 318 if err := dec(in); err != nil { 319 return nil, err 320 } 321 if interceptor == nil { 322 return srv.(MonitoringServiceServer).Insert(ctx, in) 323 } 324 info := &grpc.UnaryServerInfo{ 325 Server: srv, 326 FullMethod: "/google.internal.prodx.mon.v1.MonitoringService/Insert", 327 } 328 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 329 return srv.(MonitoringServiceServer).Insert(ctx, req.(*MonitoringInsertRequest)) 330 } 331 return interceptor(ctx, in, info, handler) 332 } 333 334 var _MonitoringService_serviceDesc = grpc.ServiceDesc{ 335 ServiceName: "google.internal.prodx.mon.v1.MonitoringService", 336 HandlerType: (*MonitoringServiceServer)(nil), 337 Methods: []grpc.MethodDesc{ 338 { 339 MethodName: "Insert", 340 Handler: _MonitoringService_Insert_Handler, 341 }, 342 }, 343 Streams: []grpc.StreamDesc{}, 344 Metadata: "go.chromium.org/luci/common/tsmon/ts_mon_proto/service.proto", 345 }