Live video on the AT Protocol
at natb/analytics 1221 lines 41 kB view raw
1// Code generated by protoc-gen-go. DO NOT EDIT. 2// versions: 3// protoc-gen-go v1.36.11 4// protoc v6.33.3 5// source: rust/sp-analytics/proto/analytics.proto 6 7package pb 8 9import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 unsafe "unsafe" 15) 16 17const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22) 23 24type IngestEventsRequest struct { 25 state protoimpl.MessageState `protogen:"open.v1"` 26 Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` 27 unknownFields protoimpl.UnknownFields 28 sizeCache protoimpl.SizeCache 29} 30 31func (x *IngestEventsRequest) Reset() { 32 *x = IngestEventsRequest{} 33 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[0] 34 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 35 ms.StoreMessageInfo(mi) 36} 37 38func (x *IngestEventsRequest) String() string { 39 return protoimpl.X.MessageStringOf(x) 40} 41 42func (*IngestEventsRequest) ProtoMessage() {} 43 44func (x *IngestEventsRequest) ProtoReflect() protoreflect.Message { 45 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[0] 46 if x != nil { 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 if ms.LoadMessageInfo() == nil { 49 ms.StoreMessageInfo(mi) 50 } 51 return ms 52 } 53 return mi.MessageOf(x) 54} 55 56// Deprecated: Use IngestEventsRequest.ProtoReflect.Descriptor instead. 57func (*IngestEventsRequest) Descriptor() ([]byte, []int) { 58 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{0} 59} 60 61func (x *IngestEventsRequest) GetEvents() []*Event { 62 if x != nil { 63 return x.Events 64 } 65 return nil 66} 67 68type IngestEventsResponse struct { 69 state protoimpl.MessageState `protogen:"open.v1"` 70 Accepted uint32 `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"` 71 Rejected uint32 `protobuf:"varint,2,opt,name=rejected,proto3" json:"rejected,omitempty"` 72 Errors []string `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` 73 unknownFields protoimpl.UnknownFields 74 sizeCache protoimpl.SizeCache 75} 76 77func (x *IngestEventsResponse) Reset() { 78 *x = IngestEventsResponse{} 79 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[1] 80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 81 ms.StoreMessageInfo(mi) 82} 83 84func (x *IngestEventsResponse) String() string { 85 return protoimpl.X.MessageStringOf(x) 86} 87 88func (*IngestEventsResponse) ProtoMessage() {} 89 90func (x *IngestEventsResponse) ProtoReflect() protoreflect.Message { 91 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[1] 92 if x != nil { 93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 94 if ms.LoadMessageInfo() == nil { 95 ms.StoreMessageInfo(mi) 96 } 97 return ms 98 } 99 return mi.MessageOf(x) 100} 101 102// Deprecated: Use IngestEventsResponse.ProtoReflect.Descriptor instead. 103func (*IngestEventsResponse) Descriptor() ([]byte, []int) { 104 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{1} 105} 106 107func (x *IngestEventsResponse) GetAccepted() uint32 { 108 if x != nil { 109 return x.Accepted 110 } 111 return 0 112} 113 114func (x *IngestEventsResponse) GetRejected() uint32 { 115 if x != nil { 116 return x.Rejected 117 } 118 return 0 119} 120 121func (x *IngestEventsResponse) GetErrors() []string { 122 if x != nil { 123 return x.Errors 124 } 125 return nil 126} 127 128type Event struct { 129 state protoimpl.MessageState `protogen:"open.v1"` 130 EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` 131 EventType string `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` 132 DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` 133 Did *string `protobuf:"bytes,4,opt,name=did,proto3,oneof" json:"did,omitempty"` 134 SessionId string `protobuf:"bytes,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` 135 TimestampMs int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"` 136 StreamerDid string `protobuf:"bytes,7,opt,name=streamer_did,json=streamerDid,proto3" json:"streamer_did,omitempty"` 137 StreamId *string `protobuf:"bytes,8,opt,name=stream_id,json=streamId,proto3,oneof" json:"stream_id,omitempty"` 138 PropertiesJson string `protobuf:"bytes,9,opt,name=properties_json,json=propertiesJson,proto3" json:"properties_json,omitempty"` 139 SchemaVersion uint32 `protobuf:"varint,10,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"` 140 ClientVersion string `protobuf:"bytes,11,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"` 141 Platform string `protobuf:"bytes,12,opt,name=platform,proto3" json:"platform,omitempty"` 142 unknownFields protoimpl.UnknownFields 143 sizeCache protoimpl.SizeCache 144} 145 146func (x *Event) Reset() { 147 *x = Event{} 148 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[2] 149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 150 ms.StoreMessageInfo(mi) 151} 152 153func (x *Event) String() string { 154 return protoimpl.X.MessageStringOf(x) 155} 156 157func (*Event) ProtoMessage() {} 158 159func (x *Event) ProtoReflect() protoreflect.Message { 160 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[2] 161 if x != nil { 162 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 163 if ms.LoadMessageInfo() == nil { 164 ms.StoreMessageInfo(mi) 165 } 166 return ms 167 } 168 return mi.MessageOf(x) 169} 170 171// Deprecated: Use Event.ProtoReflect.Descriptor instead. 172func (*Event) Descriptor() ([]byte, []int) { 173 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{2} 174} 175 176func (x *Event) GetEventId() string { 177 if x != nil { 178 return x.EventId 179 } 180 return "" 181} 182 183func (x *Event) GetEventType() string { 184 if x != nil { 185 return x.EventType 186 } 187 return "" 188} 189 190func (x *Event) GetDeviceId() string { 191 if x != nil { 192 return x.DeviceId 193 } 194 return "" 195} 196 197func (x *Event) GetDid() string { 198 if x != nil && x.Did != nil { 199 return *x.Did 200 } 201 return "" 202} 203 204func (x *Event) GetSessionId() string { 205 if x != nil { 206 return x.SessionId 207 } 208 return "" 209} 210 211func (x *Event) GetTimestampMs() int64 { 212 if x != nil { 213 return x.TimestampMs 214 } 215 return 0 216} 217 218func (x *Event) GetStreamerDid() string { 219 if x != nil { 220 return x.StreamerDid 221 } 222 return "" 223} 224 225func (x *Event) GetStreamId() string { 226 if x != nil && x.StreamId != nil { 227 return *x.StreamId 228 } 229 return "" 230} 231 232func (x *Event) GetPropertiesJson() string { 233 if x != nil { 234 return x.PropertiesJson 235 } 236 return "" 237} 238 239func (x *Event) GetSchemaVersion() uint32 { 240 if x != nil { 241 return x.SchemaVersion 242 } 243 return 0 244} 245 246func (x *Event) GetClientVersion() string { 247 if x != nil { 248 return x.ClientVersion 249 } 250 return "" 251} 252 253func (x *Event) GetPlatform() string { 254 if x != nil { 255 return x.Platform 256 } 257 return "" 258} 259 260type StreamerStatsRequest struct { 261 state protoimpl.MessageState `protogen:"open.v1"` 262 StreamerDid string `protobuf:"bytes,1,opt,name=streamer_did,json=streamerDid,proto3" json:"streamer_did,omitempty"` 263 StartTimeMs *int64 `protobuf:"varint,2,opt,name=start_time_ms,json=startTimeMs,proto3,oneof" json:"start_time_ms,omitempty"` 264 EndTimeMs *int64 `protobuf:"varint,3,opt,name=end_time_ms,json=endTimeMs,proto3,oneof" json:"end_time_ms,omitempty"` 265 unknownFields protoimpl.UnknownFields 266 sizeCache protoimpl.SizeCache 267} 268 269func (x *StreamerStatsRequest) Reset() { 270 *x = StreamerStatsRequest{} 271 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[3] 272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 273 ms.StoreMessageInfo(mi) 274} 275 276func (x *StreamerStatsRequest) String() string { 277 return protoimpl.X.MessageStringOf(x) 278} 279 280func (*StreamerStatsRequest) ProtoMessage() {} 281 282func (x *StreamerStatsRequest) ProtoReflect() protoreflect.Message { 283 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[3] 284 if x != nil { 285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 286 if ms.LoadMessageInfo() == nil { 287 ms.StoreMessageInfo(mi) 288 } 289 return ms 290 } 291 return mi.MessageOf(x) 292} 293 294// Deprecated: Use StreamerStatsRequest.ProtoReflect.Descriptor instead. 295func (*StreamerStatsRequest) Descriptor() ([]byte, []int) { 296 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{3} 297} 298 299func (x *StreamerStatsRequest) GetStreamerDid() string { 300 if x != nil { 301 return x.StreamerDid 302 } 303 return "" 304} 305 306func (x *StreamerStatsRequest) GetStartTimeMs() int64 { 307 if x != nil && x.StartTimeMs != nil { 308 return *x.StartTimeMs 309 } 310 return 0 311} 312 313func (x *StreamerStatsRequest) GetEndTimeMs() int64 { 314 if x != nil && x.EndTimeMs != nil { 315 return *x.EndTimeMs 316 } 317 return 0 318} 319 320type StreamerStatsResponse struct { 321 state protoimpl.MessageState `protogen:"open.v1"` 322 StreamerDid string `protobuf:"bytes,1,opt,name=streamer_did,json=streamerDid,proto3" json:"streamer_did,omitempty"` 323 TotalViews uint64 `protobuf:"varint,2,opt,name=total_views,json=totalViews,proto3" json:"total_views,omitempty"` 324 TotalWatchTimeMs uint64 `protobuf:"varint,3,opt,name=total_watch_time_ms,json=totalWatchTimeMs,proto3" json:"total_watch_time_ms,omitempty"` 325 UniqueViewers uint64 `protobuf:"varint,4,opt,name=unique_viewers,json=uniqueViewers,proto3" json:"unique_viewers,omitempty"` 326 DailyStats []*DailyStats `protobuf:"bytes,5,rep,name=daily_stats,json=dailyStats,proto3" json:"daily_stats,omitempty"` 327 unknownFields protoimpl.UnknownFields 328 sizeCache protoimpl.SizeCache 329} 330 331func (x *StreamerStatsResponse) Reset() { 332 *x = StreamerStatsResponse{} 333 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[4] 334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 335 ms.StoreMessageInfo(mi) 336} 337 338func (x *StreamerStatsResponse) String() string { 339 return protoimpl.X.MessageStringOf(x) 340} 341 342func (*StreamerStatsResponse) ProtoMessage() {} 343 344func (x *StreamerStatsResponse) ProtoReflect() protoreflect.Message { 345 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[4] 346 if x != nil { 347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 348 if ms.LoadMessageInfo() == nil { 349 ms.StoreMessageInfo(mi) 350 } 351 return ms 352 } 353 return mi.MessageOf(x) 354} 355 356// Deprecated: Use StreamerStatsResponse.ProtoReflect.Descriptor instead. 357func (*StreamerStatsResponse) Descriptor() ([]byte, []int) { 358 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{4} 359} 360 361func (x *StreamerStatsResponse) GetStreamerDid() string { 362 if x != nil { 363 return x.StreamerDid 364 } 365 return "" 366} 367 368func (x *StreamerStatsResponse) GetTotalViews() uint64 { 369 if x != nil { 370 return x.TotalViews 371 } 372 return 0 373} 374 375func (x *StreamerStatsResponse) GetTotalWatchTimeMs() uint64 { 376 if x != nil { 377 return x.TotalWatchTimeMs 378 } 379 return 0 380} 381 382func (x *StreamerStatsResponse) GetUniqueViewers() uint64 { 383 if x != nil { 384 return x.UniqueViewers 385 } 386 return 0 387} 388 389func (x *StreamerStatsResponse) GetDailyStats() []*DailyStats { 390 if x != nil { 391 return x.DailyStats 392 } 393 return nil 394} 395 396type DailyStats struct { 397 state protoimpl.MessageState `protogen:"open.v1"` 398 Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` 399 Views uint64 `protobuf:"varint,2,opt,name=views,proto3" json:"views,omitempty"` 400 WatchTimeMs uint64 `protobuf:"varint,3,opt,name=watch_time_ms,json=watchTimeMs,proto3" json:"watch_time_ms,omitempty"` 401 UniqueViewers uint64 `protobuf:"varint,4,opt,name=unique_viewers,json=uniqueViewers,proto3" json:"unique_viewers,omitempty"` 402 unknownFields protoimpl.UnknownFields 403 sizeCache protoimpl.SizeCache 404} 405 406func (x *DailyStats) Reset() { 407 *x = DailyStats{} 408 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[5] 409 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 410 ms.StoreMessageInfo(mi) 411} 412 413func (x *DailyStats) String() string { 414 return protoimpl.X.MessageStringOf(x) 415} 416 417func (*DailyStats) ProtoMessage() {} 418 419func (x *DailyStats) ProtoReflect() protoreflect.Message { 420 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[5] 421 if x != nil { 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 if ms.LoadMessageInfo() == nil { 424 ms.StoreMessageInfo(mi) 425 } 426 return ms 427 } 428 return mi.MessageOf(x) 429} 430 431// Deprecated: Use DailyStats.ProtoReflect.Descriptor instead. 432func (*DailyStats) Descriptor() ([]byte, []int) { 433 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{5} 434} 435 436func (x *DailyStats) GetDate() string { 437 if x != nil { 438 return x.Date 439 } 440 return "" 441} 442 443func (x *DailyStats) GetViews() uint64 { 444 if x != nil { 445 return x.Views 446 } 447 return 0 448} 449 450func (x *DailyStats) GetWatchTimeMs() uint64 { 451 if x != nil { 452 return x.WatchTimeMs 453 } 454 return 0 455} 456 457func (x *DailyStats) GetUniqueViewers() uint64 { 458 if x != nil { 459 return x.UniqueViewers 460 } 461 return 0 462} 463 464type ViewerHistoryRequest struct { 465 state protoimpl.MessageState `protogen:"open.v1"` 466 Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` 467 StartTimeMs *int64 `protobuf:"varint,2,opt,name=start_time_ms,json=startTimeMs,proto3,oneof" json:"start_time_ms,omitempty"` 468 EndTimeMs *int64 `protobuf:"varint,3,opt,name=end_time_ms,json=endTimeMs,proto3,oneof" json:"end_time_ms,omitempty"` 469 Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` 470 unknownFields protoimpl.UnknownFields 471 sizeCache protoimpl.SizeCache 472} 473 474func (x *ViewerHistoryRequest) Reset() { 475 *x = ViewerHistoryRequest{} 476 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[6] 477 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 478 ms.StoreMessageInfo(mi) 479} 480 481func (x *ViewerHistoryRequest) String() string { 482 return protoimpl.X.MessageStringOf(x) 483} 484 485func (*ViewerHistoryRequest) ProtoMessage() {} 486 487func (x *ViewerHistoryRequest) ProtoReflect() protoreflect.Message { 488 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[6] 489 if x != nil { 490 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 491 if ms.LoadMessageInfo() == nil { 492 ms.StoreMessageInfo(mi) 493 } 494 return ms 495 } 496 return mi.MessageOf(x) 497} 498 499// Deprecated: Use ViewerHistoryRequest.ProtoReflect.Descriptor instead. 500func (*ViewerHistoryRequest) Descriptor() ([]byte, []int) { 501 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{6} 502} 503 504func (x *ViewerHistoryRequest) GetDid() string { 505 if x != nil { 506 return x.Did 507 } 508 return "" 509} 510 511func (x *ViewerHistoryRequest) GetStartTimeMs() int64 { 512 if x != nil && x.StartTimeMs != nil { 513 return *x.StartTimeMs 514 } 515 return 0 516} 517 518func (x *ViewerHistoryRequest) GetEndTimeMs() int64 { 519 if x != nil && x.EndTimeMs != nil { 520 return *x.EndTimeMs 521 } 522 return 0 523} 524 525func (x *ViewerHistoryRequest) GetLimit() uint32 { 526 if x != nil { 527 return x.Limit 528 } 529 return 0 530} 531 532type ViewerHistoryResponse struct { 533 state protoimpl.MessageState `protogen:"open.v1"` 534 Sessions []*WatchSession `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` 535 unknownFields protoimpl.UnknownFields 536 sizeCache protoimpl.SizeCache 537} 538 539func (x *ViewerHistoryResponse) Reset() { 540 *x = ViewerHistoryResponse{} 541 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[7] 542 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 543 ms.StoreMessageInfo(mi) 544} 545 546func (x *ViewerHistoryResponse) String() string { 547 return protoimpl.X.MessageStringOf(x) 548} 549 550func (*ViewerHistoryResponse) ProtoMessage() {} 551 552func (x *ViewerHistoryResponse) ProtoReflect() protoreflect.Message { 553 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[7] 554 if x != nil { 555 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 556 if ms.LoadMessageInfo() == nil { 557 ms.StoreMessageInfo(mi) 558 } 559 return ms 560 } 561 return mi.MessageOf(x) 562} 563 564// Deprecated: Use ViewerHistoryResponse.ProtoReflect.Descriptor instead. 565func (*ViewerHistoryResponse) Descriptor() ([]byte, []int) { 566 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{7} 567} 568 569func (x *ViewerHistoryResponse) GetSessions() []*WatchSession { 570 if x != nil { 571 return x.Sessions 572 } 573 return nil 574} 575 576type WatchSession struct { 577 state protoimpl.MessageState `protogen:"open.v1"` 578 SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` 579 StreamerDid string `protobuf:"bytes,2,opt,name=streamer_did,json=streamerDid,proto3" json:"streamer_did,omitempty"` 580 StreamId *string `protobuf:"bytes,3,opt,name=stream_id,json=streamId,proto3,oneof" json:"stream_id,omitempty"` 581 StartTimeMs int64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` 582 EndTimeMs int64 `protobuf:"varint,5,opt,name=end_time_ms,json=endTimeMs,proto3" json:"end_time_ms,omitempty"` 583 DurationMs uint64 `protobuf:"varint,6,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"` 584 unknownFields protoimpl.UnknownFields 585 sizeCache protoimpl.SizeCache 586} 587 588func (x *WatchSession) Reset() { 589 *x = WatchSession{} 590 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[8] 591 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 592 ms.StoreMessageInfo(mi) 593} 594 595func (x *WatchSession) String() string { 596 return protoimpl.X.MessageStringOf(x) 597} 598 599func (*WatchSession) ProtoMessage() {} 600 601func (x *WatchSession) ProtoReflect() protoreflect.Message { 602 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[8] 603 if x != nil { 604 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 605 if ms.LoadMessageInfo() == nil { 606 ms.StoreMessageInfo(mi) 607 } 608 return ms 609 } 610 return mi.MessageOf(x) 611} 612 613// Deprecated: Use WatchSession.ProtoReflect.Descriptor instead. 614func (*WatchSession) Descriptor() ([]byte, []int) { 615 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{8} 616} 617 618func (x *WatchSession) GetSessionId() string { 619 if x != nil { 620 return x.SessionId 621 } 622 return "" 623} 624 625func (x *WatchSession) GetStreamerDid() string { 626 if x != nil { 627 return x.StreamerDid 628 } 629 return "" 630} 631 632func (x *WatchSession) GetStreamId() string { 633 if x != nil && x.StreamId != nil { 634 return *x.StreamId 635 } 636 return "" 637} 638 639func (x *WatchSession) GetStartTimeMs() int64 { 640 if x != nil { 641 return x.StartTimeMs 642 } 643 return 0 644} 645 646func (x *WatchSession) GetEndTimeMs() int64 { 647 if x != nil { 648 return x.EndTimeMs 649 } 650 return 0 651} 652 653func (x *WatchSession) GetDurationMs() uint64 { 654 if x != nil { 655 return x.DurationMs 656 } 657 return 0 658} 659 660type RealtimeStatsRequest struct { 661 state protoimpl.MessageState `protogen:"open.v1"` 662 StreamerDid *string `protobuf:"bytes,1,opt,name=streamer_did,json=streamerDid,proto3,oneof" json:"streamer_did,omitempty"` 663 WindowMinutes uint32 `protobuf:"varint,2,opt,name=window_minutes,json=windowMinutes,proto3" json:"window_minutes,omitempty"` 664 unknownFields protoimpl.UnknownFields 665 sizeCache protoimpl.SizeCache 666} 667 668func (x *RealtimeStatsRequest) Reset() { 669 *x = RealtimeStatsRequest{} 670 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[9] 671 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 672 ms.StoreMessageInfo(mi) 673} 674 675func (x *RealtimeStatsRequest) String() string { 676 return protoimpl.X.MessageStringOf(x) 677} 678 679func (*RealtimeStatsRequest) ProtoMessage() {} 680 681func (x *RealtimeStatsRequest) ProtoReflect() protoreflect.Message { 682 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[9] 683 if x != nil { 684 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 685 if ms.LoadMessageInfo() == nil { 686 ms.StoreMessageInfo(mi) 687 } 688 return ms 689 } 690 return mi.MessageOf(x) 691} 692 693// Deprecated: Use RealtimeStatsRequest.ProtoReflect.Descriptor instead. 694func (*RealtimeStatsRequest) Descriptor() ([]byte, []int) { 695 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{9} 696} 697 698func (x *RealtimeStatsRequest) GetStreamerDid() string { 699 if x != nil && x.StreamerDid != nil { 700 return *x.StreamerDid 701 } 702 return "" 703} 704 705func (x *RealtimeStatsRequest) GetWindowMinutes() uint32 { 706 if x != nil { 707 return x.WindowMinutes 708 } 709 return 0 710} 711 712type RealtimeStatsResponse struct { 713 state protoimpl.MessageState `protogen:"open.v1"` 714 Streamers []*StreamerRealtimeStats `protobuf:"bytes,1,rep,name=streamers,proto3" json:"streamers,omitempty"` 715 unknownFields protoimpl.UnknownFields 716 sizeCache protoimpl.SizeCache 717} 718 719func (x *RealtimeStatsResponse) Reset() { 720 *x = RealtimeStatsResponse{} 721 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[10] 722 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 723 ms.StoreMessageInfo(mi) 724} 725 726func (x *RealtimeStatsResponse) String() string { 727 return protoimpl.X.MessageStringOf(x) 728} 729 730func (*RealtimeStatsResponse) ProtoMessage() {} 731 732func (x *RealtimeStatsResponse) ProtoReflect() protoreflect.Message { 733 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[10] 734 if x != nil { 735 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 736 if ms.LoadMessageInfo() == nil { 737 ms.StoreMessageInfo(mi) 738 } 739 return ms 740 } 741 return mi.MessageOf(x) 742} 743 744// Deprecated: Use RealtimeStatsResponse.ProtoReflect.Descriptor instead. 745func (*RealtimeStatsResponse) Descriptor() ([]byte, []int) { 746 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{10} 747} 748 749func (x *RealtimeStatsResponse) GetStreamers() []*StreamerRealtimeStats { 750 if x != nil { 751 return x.Streamers 752 } 753 return nil 754} 755 756type StreamerRealtimeStats struct { 757 state protoimpl.MessageState `protogen:"open.v1"` 758 StreamerDid string `protobuf:"bytes,1,opt,name=streamer_did,json=streamerDid,proto3" json:"streamer_did,omitempty"` 759 CurrentViewers uint64 `protobuf:"varint,2,opt,name=current_viewers,json=currentViewers,proto3" json:"current_viewers,omitempty"` 760 TotalWatchTimeMs uint64 `protobuf:"varint,3,opt,name=total_watch_time_ms,json=totalWatchTimeMs,proto3" json:"total_watch_time_ms,omitempty"` 761 unknownFields protoimpl.UnknownFields 762 sizeCache protoimpl.SizeCache 763} 764 765func (x *StreamerRealtimeStats) Reset() { 766 *x = StreamerRealtimeStats{} 767 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[11] 768 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 769 ms.StoreMessageInfo(mi) 770} 771 772func (x *StreamerRealtimeStats) String() string { 773 return protoimpl.X.MessageStringOf(x) 774} 775 776func (*StreamerRealtimeStats) ProtoMessage() {} 777 778func (x *StreamerRealtimeStats) ProtoReflect() protoreflect.Message { 779 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[11] 780 if x != nil { 781 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 782 if ms.LoadMessageInfo() == nil { 783 ms.StoreMessageInfo(mi) 784 } 785 return ms 786 } 787 return mi.MessageOf(x) 788} 789 790// Deprecated: Use StreamerRealtimeStats.ProtoReflect.Descriptor instead. 791func (*StreamerRealtimeStats) Descriptor() ([]byte, []int) { 792 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{11} 793} 794 795func (x *StreamerRealtimeStats) GetStreamerDid() string { 796 if x != nil { 797 return x.StreamerDid 798 } 799 return "" 800} 801 802func (x *StreamerRealtimeStats) GetCurrentViewers() uint64 { 803 if x != nil { 804 return x.CurrentViewers 805 } 806 return 0 807} 808 809func (x *StreamerRealtimeStats) GetTotalWatchTimeMs() uint64 { 810 if x != nil { 811 return x.TotalWatchTimeMs 812 } 813 return 0 814} 815 816type DeleteUserDataRequest struct { 817 state protoimpl.MessageState `protogen:"open.v1"` 818 Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` 819 unknownFields protoimpl.UnknownFields 820 sizeCache protoimpl.SizeCache 821} 822 823func (x *DeleteUserDataRequest) Reset() { 824 *x = DeleteUserDataRequest{} 825 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[12] 826 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 827 ms.StoreMessageInfo(mi) 828} 829 830func (x *DeleteUserDataRequest) String() string { 831 return protoimpl.X.MessageStringOf(x) 832} 833 834func (*DeleteUserDataRequest) ProtoMessage() {} 835 836func (x *DeleteUserDataRequest) ProtoReflect() protoreflect.Message { 837 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[12] 838 if x != nil { 839 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 840 if ms.LoadMessageInfo() == nil { 841 ms.StoreMessageInfo(mi) 842 } 843 return ms 844 } 845 return mi.MessageOf(x) 846} 847 848// Deprecated: Use DeleteUserDataRequest.ProtoReflect.Descriptor instead. 849func (*DeleteUserDataRequest) Descriptor() ([]byte, []int) { 850 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{12} 851} 852 853func (x *DeleteUserDataRequest) GetDid() string { 854 if x != nil { 855 return x.Did 856 } 857 return "" 858} 859 860type DeleteUserDataResponse struct { 861 state protoimpl.MessageState `protogen:"open.v1"` 862 RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 863 Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` 864 unknownFields protoimpl.UnknownFields 865 sizeCache protoimpl.SizeCache 866} 867 868func (x *DeleteUserDataResponse) Reset() { 869 *x = DeleteUserDataResponse{} 870 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[13] 871 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 872 ms.StoreMessageInfo(mi) 873} 874 875func (x *DeleteUserDataResponse) String() string { 876 return protoimpl.X.MessageStringOf(x) 877} 878 879func (*DeleteUserDataResponse) ProtoMessage() {} 880 881func (x *DeleteUserDataResponse) ProtoReflect() protoreflect.Message { 882 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[13] 883 if x != nil { 884 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 885 if ms.LoadMessageInfo() == nil { 886 ms.StoreMessageInfo(mi) 887 } 888 return ms 889 } 890 return mi.MessageOf(x) 891} 892 893// Deprecated: Use DeleteUserDataResponse.ProtoReflect.Descriptor instead. 894func (*DeleteUserDataResponse) Descriptor() ([]byte, []int) { 895 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{13} 896} 897 898func (x *DeleteUserDataResponse) GetRequestId() string { 899 if x != nil { 900 return x.RequestId 901 } 902 return "" 903} 904 905func (x *DeleteUserDataResponse) GetStatus() string { 906 if x != nil { 907 return x.Status 908 } 909 return "" 910} 911 912type GetDeletionStatusRequest struct { 913 state protoimpl.MessageState `protogen:"open.v1"` 914 RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 915 unknownFields protoimpl.UnknownFields 916 sizeCache protoimpl.SizeCache 917} 918 919func (x *GetDeletionStatusRequest) Reset() { 920 *x = GetDeletionStatusRequest{} 921 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[14] 922 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 923 ms.StoreMessageInfo(mi) 924} 925 926func (x *GetDeletionStatusRequest) String() string { 927 return protoimpl.X.MessageStringOf(x) 928} 929 930func (*GetDeletionStatusRequest) ProtoMessage() {} 931 932func (x *GetDeletionStatusRequest) ProtoReflect() protoreflect.Message { 933 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[14] 934 if x != nil { 935 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 936 if ms.LoadMessageInfo() == nil { 937 ms.StoreMessageInfo(mi) 938 } 939 return ms 940 } 941 return mi.MessageOf(x) 942} 943 944// Deprecated: Use GetDeletionStatusRequest.ProtoReflect.Descriptor instead. 945func (*GetDeletionStatusRequest) Descriptor() ([]byte, []int) { 946 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{14} 947} 948 949func (x *GetDeletionStatusRequest) GetRequestId() string { 950 if x != nil { 951 return x.RequestId 952 } 953 return "" 954} 955 956type DeletionStatusResponse struct { 957 state protoimpl.MessageState `protogen:"open.v1"` 958 RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 959 Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` 960 Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` 961 RequestedAtMs *int64 `protobuf:"varint,4,opt,name=requested_at_ms,json=requestedAtMs,proto3,oneof" json:"requested_at_ms,omitempty"` 962 CompletedAtMs *int64 `protobuf:"varint,5,opt,name=completed_at_ms,json=completedAtMs,proto3,oneof" json:"completed_at_ms,omitempty"` 963 unknownFields protoimpl.UnknownFields 964 sizeCache protoimpl.SizeCache 965} 966 967func (x *DeletionStatusResponse) Reset() { 968 *x = DeletionStatusResponse{} 969 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[15] 970 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 971 ms.StoreMessageInfo(mi) 972} 973 974func (x *DeletionStatusResponse) String() string { 975 return protoimpl.X.MessageStringOf(x) 976} 977 978func (*DeletionStatusResponse) ProtoMessage() {} 979 980func (x *DeletionStatusResponse) ProtoReflect() protoreflect.Message { 981 mi := &file_rust_sp_analytics_proto_analytics_proto_msgTypes[15] 982 if x != nil { 983 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 984 if ms.LoadMessageInfo() == nil { 985 ms.StoreMessageInfo(mi) 986 } 987 return ms 988 } 989 return mi.MessageOf(x) 990} 991 992// Deprecated: Use DeletionStatusResponse.ProtoReflect.Descriptor instead. 993func (*DeletionStatusResponse) Descriptor() ([]byte, []int) { 994 return file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP(), []int{15} 995} 996 997func (x *DeletionStatusResponse) GetRequestId() string { 998 if x != nil { 999 return x.RequestId 1000 } 1001 return "" 1002} 1003 1004func (x *DeletionStatusResponse) GetDid() string { 1005 if x != nil { 1006 return x.Did 1007 } 1008 return "" 1009} 1010 1011func (x *DeletionStatusResponse) GetStatus() string { 1012 if x != nil { 1013 return x.Status 1014 } 1015 return "" 1016} 1017 1018func (x *DeletionStatusResponse) GetRequestedAtMs() int64 { 1019 if x != nil && x.RequestedAtMs != nil { 1020 return *x.RequestedAtMs 1021 } 1022 return 0 1023} 1024 1025func (x *DeletionStatusResponse) GetCompletedAtMs() int64 { 1026 if x != nil && x.CompletedAtMs != nil { 1027 return *x.CompletedAtMs 1028 } 1029 return 0 1030} 1031 1032var File_rust_sp_analytics_proto_analytics_proto protoreflect.FileDescriptor 1033 1034const file_rust_sp_analytics_proto_analytics_proto_rawDesc = "" + 1035 "\n" + 1036 "'rust/sp-analytics/proto/analytics.proto\x12\tanalytics\"?\n" + 1037 "\x13IngestEventsRequest\x12(\n" + 1038 "\x06events\x18\x01 \x03(\v2\x10.analytics.EventR\x06events\"f\n" + 1039 "\x14IngestEventsResponse\x12\x1a\n" + 1040 "\baccepted\x18\x01 \x01(\rR\baccepted\x12\x1a\n" + 1041 "\brejected\x18\x02 \x01(\rR\brejected\x12\x16\n" + 1042 "\x06errors\x18\x03 \x03(\tR\x06errors\"\xa5\x03\n" + 1043 "\x05Event\x12\x19\n" + 1044 "\bevent_id\x18\x01 \x01(\tR\aeventId\x12\x1d\n" + 1045 "\n" + 1046 "event_type\x18\x02 \x01(\tR\teventType\x12\x1b\n" + 1047 "\tdevice_id\x18\x03 \x01(\tR\bdeviceId\x12\x15\n" + 1048 "\x03did\x18\x04 \x01(\tH\x00R\x03did\x88\x01\x01\x12\x1d\n" + 1049 "\n" + 1050 "session_id\x18\x05 \x01(\tR\tsessionId\x12!\n" + 1051 "\ftimestamp_ms\x18\x06 \x01(\x03R\vtimestampMs\x12!\n" + 1052 "\fstreamer_did\x18\a \x01(\tR\vstreamerDid\x12 \n" + 1053 "\tstream_id\x18\b \x01(\tH\x01R\bstreamId\x88\x01\x01\x12'\n" + 1054 "\x0fproperties_json\x18\t \x01(\tR\x0epropertiesJson\x12%\n" + 1055 "\x0eschema_version\x18\n" + 1056 " \x01(\rR\rschemaVersion\x12%\n" + 1057 "\x0eclient_version\x18\v \x01(\tR\rclientVersion\x12\x1a\n" + 1058 "\bplatform\x18\f \x01(\tR\bplatformB\x06\n" + 1059 "\x04_didB\f\n" + 1060 "\n" + 1061 "_stream_id\"\xa9\x01\n" + 1062 "\x14StreamerStatsRequest\x12!\n" + 1063 "\fstreamer_did\x18\x01 \x01(\tR\vstreamerDid\x12'\n" + 1064 "\rstart_time_ms\x18\x02 \x01(\x03H\x00R\vstartTimeMs\x88\x01\x01\x12#\n" + 1065 "\vend_time_ms\x18\x03 \x01(\x03H\x01R\tendTimeMs\x88\x01\x01B\x10\n" + 1066 "\x0e_start_time_msB\x0e\n" + 1067 "\f_end_time_ms\"\xe9\x01\n" + 1068 "\x15StreamerStatsResponse\x12!\n" + 1069 "\fstreamer_did\x18\x01 \x01(\tR\vstreamerDid\x12\x1f\n" + 1070 "\vtotal_views\x18\x02 \x01(\x04R\n" + 1071 "totalViews\x12-\n" + 1072 "\x13total_watch_time_ms\x18\x03 \x01(\x04R\x10totalWatchTimeMs\x12%\n" + 1073 "\x0eunique_viewers\x18\x04 \x01(\x04R\runiqueViewers\x126\n" + 1074 "\vdaily_stats\x18\x05 \x03(\v2\x15.analytics.DailyStatsR\n" + 1075 "dailyStats\"\x81\x01\n" + 1076 "\n" + 1077 "DailyStats\x12\x12\n" + 1078 "\x04date\x18\x01 \x01(\tR\x04date\x12\x14\n" + 1079 "\x05views\x18\x02 \x01(\x04R\x05views\x12\"\n" + 1080 "\rwatch_time_ms\x18\x03 \x01(\x04R\vwatchTimeMs\x12%\n" + 1081 "\x0eunique_viewers\x18\x04 \x01(\x04R\runiqueViewers\"\xae\x01\n" + 1082 "\x14ViewerHistoryRequest\x12\x10\n" + 1083 "\x03did\x18\x01 \x01(\tR\x03did\x12'\n" + 1084 "\rstart_time_ms\x18\x02 \x01(\x03H\x00R\vstartTimeMs\x88\x01\x01\x12#\n" + 1085 "\vend_time_ms\x18\x03 \x01(\x03H\x01R\tendTimeMs\x88\x01\x01\x12\x14\n" + 1086 "\x05limit\x18\x04 \x01(\rR\x05limitB\x10\n" + 1087 "\x0e_start_time_msB\x0e\n" + 1088 "\f_end_time_ms\"L\n" + 1089 "\x15ViewerHistoryResponse\x123\n" + 1090 "\bsessions\x18\x01 \x03(\v2\x17.analytics.WatchSessionR\bsessions\"\xe5\x01\n" + 1091 "\fWatchSession\x12\x1d\n" + 1092 "\n" + 1093 "session_id\x18\x01 \x01(\tR\tsessionId\x12!\n" + 1094 "\fstreamer_did\x18\x02 \x01(\tR\vstreamerDid\x12 \n" + 1095 "\tstream_id\x18\x03 \x01(\tH\x00R\bstreamId\x88\x01\x01\x12\"\n" + 1096 "\rstart_time_ms\x18\x04 \x01(\x03R\vstartTimeMs\x12\x1e\n" + 1097 "\vend_time_ms\x18\x05 \x01(\x03R\tendTimeMs\x12\x1f\n" + 1098 "\vduration_ms\x18\x06 \x01(\x04R\n" + 1099 "durationMsB\f\n" + 1100 "\n" + 1101 "_stream_id\"v\n" + 1102 "\x14RealtimeStatsRequest\x12&\n" + 1103 "\fstreamer_did\x18\x01 \x01(\tH\x00R\vstreamerDid\x88\x01\x01\x12%\n" + 1104 "\x0ewindow_minutes\x18\x02 \x01(\rR\rwindowMinutesB\x0f\n" + 1105 "\r_streamer_did\"W\n" + 1106 "\x15RealtimeStatsResponse\x12>\n" + 1107 "\tstreamers\x18\x01 \x03(\v2 .analytics.StreamerRealtimeStatsR\tstreamers\"\x92\x01\n" + 1108 "\x15StreamerRealtimeStats\x12!\n" + 1109 "\fstreamer_did\x18\x01 \x01(\tR\vstreamerDid\x12'\n" + 1110 "\x0fcurrent_viewers\x18\x02 \x01(\x04R\x0ecurrentViewers\x12-\n" + 1111 "\x13total_watch_time_ms\x18\x03 \x01(\x04R\x10totalWatchTimeMs\")\n" + 1112 "\x15DeleteUserDataRequest\x12\x10\n" + 1113 "\x03did\x18\x01 \x01(\tR\x03did\"O\n" + 1114 "\x16DeleteUserDataResponse\x12\x1d\n" + 1115 "\n" + 1116 "request_id\x18\x01 \x01(\tR\trequestId\x12\x16\n" + 1117 "\x06status\x18\x02 \x01(\tR\x06status\"9\n" + 1118 "\x18GetDeletionStatusRequest\x12\x1d\n" + 1119 "\n" + 1120 "request_id\x18\x01 \x01(\tR\trequestId\"\xe3\x01\n" + 1121 "\x16DeletionStatusResponse\x12\x1d\n" + 1122 "\n" + 1123 "request_id\x18\x01 \x01(\tR\trequestId\x12\x10\n" + 1124 "\x03did\x18\x02 \x01(\tR\x03did\x12\x16\n" + 1125 "\x06status\x18\x03 \x01(\tR\x06status\x12+\n" + 1126 "\x0frequested_at_ms\x18\x04 \x01(\x03H\x00R\rrequestedAtMs\x88\x01\x01\x12+\n" + 1127 "\x0fcompleted_at_ms\x18\x05 \x01(\x03H\x01R\rcompletedAtMs\x88\x01\x01B\x12\n" + 1128 "\x10_requested_at_msB\x12\n" + 1129 "\x10_completed_at_ms2\x95\x04\n" + 1130 "\tAnalytics\x12O\n" + 1131 "\fIngestEvents\x12\x1e.analytics.IngestEventsRequest\x1a\x1f.analytics.IngestEventsResponse\x12U\n" + 1132 "\x10GetStreamerStats\x12\x1f.analytics.StreamerStatsRequest\x1a .analytics.StreamerStatsResponse\x12U\n" + 1133 "\x10GetViewerHistory\x12\x1f.analytics.ViewerHistoryRequest\x1a .analytics.ViewerHistoryResponse\x12U\n" + 1134 "\x10GetRealtimeStats\x12\x1f.analytics.RealtimeStatsRequest\x1a .analytics.RealtimeStatsResponse\x12U\n" + 1135 "\x0eDeleteUserData\x12 .analytics.DeleteUserDataRequest\x1a!.analytics.DeleteUserDataResponse\x12[\n" + 1136 "\x11GetDeletionStatus\x12#.analytics.GetDeletionStatusRequest\x1a!.analytics.DeletionStatusResponseB!Z\x1fstreamplace/pkg/analytics/pb;pbb\x06proto3" 1137 1138var ( 1139 file_rust_sp_analytics_proto_analytics_proto_rawDescOnce sync.Once 1140 file_rust_sp_analytics_proto_analytics_proto_rawDescData []byte 1141) 1142 1143func file_rust_sp_analytics_proto_analytics_proto_rawDescGZIP() []byte { 1144 file_rust_sp_analytics_proto_analytics_proto_rawDescOnce.Do(func() { 1145 file_rust_sp_analytics_proto_analytics_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rust_sp_analytics_proto_analytics_proto_rawDesc), len(file_rust_sp_analytics_proto_analytics_proto_rawDesc))) 1146 }) 1147 return file_rust_sp_analytics_proto_analytics_proto_rawDescData 1148} 1149 1150var file_rust_sp_analytics_proto_analytics_proto_msgTypes = make([]protoimpl.MessageInfo, 16) 1151var file_rust_sp_analytics_proto_analytics_proto_goTypes = []any{ 1152 (*IngestEventsRequest)(nil), // 0: analytics.IngestEventsRequest 1153 (*IngestEventsResponse)(nil), // 1: analytics.IngestEventsResponse 1154 (*Event)(nil), // 2: analytics.Event 1155 (*StreamerStatsRequest)(nil), // 3: analytics.StreamerStatsRequest 1156 (*StreamerStatsResponse)(nil), // 4: analytics.StreamerStatsResponse 1157 (*DailyStats)(nil), // 5: analytics.DailyStats 1158 (*ViewerHistoryRequest)(nil), // 6: analytics.ViewerHistoryRequest 1159 (*ViewerHistoryResponse)(nil), // 7: analytics.ViewerHistoryResponse 1160 (*WatchSession)(nil), // 8: analytics.WatchSession 1161 (*RealtimeStatsRequest)(nil), // 9: analytics.RealtimeStatsRequest 1162 (*RealtimeStatsResponse)(nil), // 10: analytics.RealtimeStatsResponse 1163 (*StreamerRealtimeStats)(nil), // 11: analytics.StreamerRealtimeStats 1164 (*DeleteUserDataRequest)(nil), // 12: analytics.DeleteUserDataRequest 1165 (*DeleteUserDataResponse)(nil), // 13: analytics.DeleteUserDataResponse 1166 (*GetDeletionStatusRequest)(nil), // 14: analytics.GetDeletionStatusRequest 1167 (*DeletionStatusResponse)(nil), // 15: analytics.DeletionStatusResponse 1168} 1169var file_rust_sp_analytics_proto_analytics_proto_depIdxs = []int32{ 1170 2, // 0: analytics.IngestEventsRequest.events:type_name -> analytics.Event 1171 5, // 1: analytics.StreamerStatsResponse.daily_stats:type_name -> analytics.DailyStats 1172 8, // 2: analytics.ViewerHistoryResponse.sessions:type_name -> analytics.WatchSession 1173 11, // 3: analytics.RealtimeStatsResponse.streamers:type_name -> analytics.StreamerRealtimeStats 1174 0, // 4: analytics.Analytics.IngestEvents:input_type -> analytics.IngestEventsRequest 1175 3, // 5: analytics.Analytics.GetStreamerStats:input_type -> analytics.StreamerStatsRequest 1176 6, // 6: analytics.Analytics.GetViewerHistory:input_type -> analytics.ViewerHistoryRequest 1177 9, // 7: analytics.Analytics.GetRealtimeStats:input_type -> analytics.RealtimeStatsRequest 1178 12, // 8: analytics.Analytics.DeleteUserData:input_type -> analytics.DeleteUserDataRequest 1179 14, // 9: analytics.Analytics.GetDeletionStatus:input_type -> analytics.GetDeletionStatusRequest 1180 1, // 10: analytics.Analytics.IngestEvents:output_type -> analytics.IngestEventsResponse 1181 4, // 11: analytics.Analytics.GetStreamerStats:output_type -> analytics.StreamerStatsResponse 1182 7, // 12: analytics.Analytics.GetViewerHistory:output_type -> analytics.ViewerHistoryResponse 1183 10, // 13: analytics.Analytics.GetRealtimeStats:output_type -> analytics.RealtimeStatsResponse 1184 13, // 14: analytics.Analytics.DeleteUserData:output_type -> analytics.DeleteUserDataResponse 1185 15, // 15: analytics.Analytics.GetDeletionStatus:output_type -> analytics.DeletionStatusResponse 1186 10, // [10:16] is the sub-list for method output_type 1187 4, // [4:10] is the sub-list for method input_type 1188 4, // [4:4] is the sub-list for extension type_name 1189 4, // [4:4] is the sub-list for extension extendee 1190 0, // [0:4] is the sub-list for field type_name 1191} 1192 1193func init() { file_rust_sp_analytics_proto_analytics_proto_init() } 1194func file_rust_sp_analytics_proto_analytics_proto_init() { 1195 if File_rust_sp_analytics_proto_analytics_proto != nil { 1196 return 1197 } 1198 file_rust_sp_analytics_proto_analytics_proto_msgTypes[2].OneofWrappers = []any{} 1199 file_rust_sp_analytics_proto_analytics_proto_msgTypes[3].OneofWrappers = []any{} 1200 file_rust_sp_analytics_proto_analytics_proto_msgTypes[6].OneofWrappers = []any{} 1201 file_rust_sp_analytics_proto_analytics_proto_msgTypes[8].OneofWrappers = []any{} 1202 file_rust_sp_analytics_proto_analytics_proto_msgTypes[9].OneofWrappers = []any{} 1203 file_rust_sp_analytics_proto_analytics_proto_msgTypes[15].OneofWrappers = []any{} 1204 type x struct{} 1205 out := protoimpl.TypeBuilder{ 1206 File: protoimpl.DescBuilder{ 1207 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1208 RawDescriptor: unsafe.Slice(unsafe.StringData(file_rust_sp_analytics_proto_analytics_proto_rawDesc), len(file_rust_sp_analytics_proto_analytics_proto_rawDesc)), 1209 NumEnums: 0, 1210 NumMessages: 16, 1211 NumExtensions: 0, 1212 NumServices: 1, 1213 }, 1214 GoTypes: file_rust_sp_analytics_proto_analytics_proto_goTypes, 1215 DependencyIndexes: file_rust_sp_analytics_proto_analytics_proto_depIdxs, 1216 MessageInfos: file_rust_sp_analytics_proto_analytics_proto_msgTypes, 1217 }.Build() 1218 File_rust_sp_analytics_proto_analytics_proto = out.File 1219 file_rust_sp_analytics_proto_analytics_proto_goTypes = nil 1220 file_rust_sp_analytics_proto_analytics_proto_depIdxs = nil 1221}