github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/log/log_service.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: google.golang.org/appengine/internal/log/log_service.proto 3 // DO NOT EDIT! 4 5 /* 6 Package log is a generated protocol buffer package. 7 8 It is generated from these files: 9 google.golang.org/appengine/internal/log/log_service.proto 10 11 It has these top-level messages: 12 LogServiceError 13 UserAppLogLine 14 UserAppLogGroup 15 FlushRequest 16 SetStatusRequest 17 LogOffset 18 LogLine 19 RequestLog 20 LogModuleVersion 21 LogReadRequest 22 LogReadResponse 23 LogUsageRecord 24 LogUsageRequest 25 LogUsageResponse 26 */ 27 package log 28 29 import proto "github.com/golang/protobuf/proto" 30 import fmt "fmt" 31 import math "math" 32 33 // Reference imports to suppress errors if they are not otherwise used. 34 var _ = proto.Marshal 35 var _ = fmt.Errorf 36 var _ = math.Inf 37 38 type LogServiceError_ErrorCode int32 39 40 const ( 41 LogServiceError_OK LogServiceError_ErrorCode = 0 42 LogServiceError_INVALID_REQUEST LogServiceError_ErrorCode = 1 43 LogServiceError_STORAGE_ERROR LogServiceError_ErrorCode = 2 44 ) 45 46 var LogServiceError_ErrorCode_name = map[int32]string{ 47 0: "OK", 48 1: "INVALID_REQUEST", 49 2: "STORAGE_ERROR", 50 } 51 var LogServiceError_ErrorCode_value = map[string]int32{ 52 "OK": 0, 53 "INVALID_REQUEST": 1, 54 "STORAGE_ERROR": 2, 55 } 56 57 func (x LogServiceError_ErrorCode) Enum() *LogServiceError_ErrorCode { 58 p := new(LogServiceError_ErrorCode) 59 *p = x 60 return p 61 } 62 func (x LogServiceError_ErrorCode) String() string { 63 return proto.EnumName(LogServiceError_ErrorCode_name, int32(x)) 64 } 65 func (x *LogServiceError_ErrorCode) UnmarshalJSON(data []byte) error { 66 value, err := proto.UnmarshalJSONEnum(LogServiceError_ErrorCode_value, data, "LogServiceError_ErrorCode") 67 if err != nil { 68 return err 69 } 70 *x = LogServiceError_ErrorCode(value) 71 return nil 72 } 73 74 type LogServiceError struct { 75 XXX_unrecognized []byte `json:"-"` 76 } 77 78 func (m *LogServiceError) Reset() { *m = LogServiceError{} } 79 func (m *LogServiceError) String() string { return proto.CompactTextString(m) } 80 func (*LogServiceError) ProtoMessage() {} 81 82 type UserAppLogLine struct { 83 TimestampUsec *int64 `protobuf:"varint,1,req,name=timestamp_usec" json:"timestamp_usec,omitempty"` 84 Level *int64 `protobuf:"varint,2,req,name=level" json:"level,omitempty"` 85 Message *string `protobuf:"bytes,3,req,name=message" json:"message,omitempty"` 86 XXX_unrecognized []byte `json:"-"` 87 } 88 89 func (m *UserAppLogLine) Reset() { *m = UserAppLogLine{} } 90 func (m *UserAppLogLine) String() string { return proto.CompactTextString(m) } 91 func (*UserAppLogLine) ProtoMessage() {} 92 93 func (m *UserAppLogLine) GetTimestampUsec() int64 { 94 if m != nil && m.TimestampUsec != nil { 95 return *m.TimestampUsec 96 } 97 return 0 98 } 99 100 func (m *UserAppLogLine) GetLevel() int64 { 101 if m != nil && m.Level != nil { 102 return *m.Level 103 } 104 return 0 105 } 106 107 func (m *UserAppLogLine) GetMessage() string { 108 if m != nil && m.Message != nil { 109 return *m.Message 110 } 111 return "" 112 } 113 114 type UserAppLogGroup struct { 115 LogLine []*UserAppLogLine `protobuf:"bytes,2,rep,name=log_line" json:"log_line,omitempty"` 116 XXX_unrecognized []byte `json:"-"` 117 } 118 119 func (m *UserAppLogGroup) Reset() { *m = UserAppLogGroup{} } 120 func (m *UserAppLogGroup) String() string { return proto.CompactTextString(m) } 121 func (*UserAppLogGroup) ProtoMessage() {} 122 123 func (m *UserAppLogGroup) GetLogLine() []*UserAppLogLine { 124 if m != nil { 125 return m.LogLine 126 } 127 return nil 128 } 129 130 type FlushRequest struct { 131 Logs []byte `protobuf:"bytes,1,opt,name=logs" json:"logs,omitempty"` 132 XXX_unrecognized []byte `json:"-"` 133 } 134 135 func (m *FlushRequest) Reset() { *m = FlushRequest{} } 136 func (m *FlushRequest) String() string { return proto.CompactTextString(m) } 137 func (*FlushRequest) ProtoMessage() {} 138 139 func (m *FlushRequest) GetLogs() []byte { 140 if m != nil { 141 return m.Logs 142 } 143 return nil 144 } 145 146 type SetStatusRequest struct { 147 Status *string `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` 148 XXX_unrecognized []byte `json:"-"` 149 } 150 151 func (m *SetStatusRequest) Reset() { *m = SetStatusRequest{} } 152 func (m *SetStatusRequest) String() string { return proto.CompactTextString(m) } 153 func (*SetStatusRequest) ProtoMessage() {} 154 155 func (m *SetStatusRequest) GetStatus() string { 156 if m != nil && m.Status != nil { 157 return *m.Status 158 } 159 return "" 160 } 161 162 type LogOffset struct { 163 RequestId []byte `protobuf:"bytes,1,opt,name=request_id" json:"request_id,omitempty"` 164 XXX_unrecognized []byte `json:"-"` 165 } 166 167 func (m *LogOffset) Reset() { *m = LogOffset{} } 168 func (m *LogOffset) String() string { return proto.CompactTextString(m) } 169 func (*LogOffset) ProtoMessage() {} 170 171 func (m *LogOffset) GetRequestId() []byte { 172 if m != nil { 173 return m.RequestId 174 } 175 return nil 176 } 177 178 type LogLine struct { 179 Time *int64 `protobuf:"varint,1,req,name=time" json:"time,omitempty"` 180 Level *int32 `protobuf:"varint,2,req,name=level" json:"level,omitempty"` 181 LogMessage *string `protobuf:"bytes,3,req,name=log_message" json:"log_message,omitempty"` 182 XXX_unrecognized []byte `json:"-"` 183 } 184 185 func (m *LogLine) Reset() { *m = LogLine{} } 186 func (m *LogLine) String() string { return proto.CompactTextString(m) } 187 func (*LogLine) ProtoMessage() {} 188 189 func (m *LogLine) GetTime() int64 { 190 if m != nil && m.Time != nil { 191 return *m.Time 192 } 193 return 0 194 } 195 196 func (m *LogLine) GetLevel() int32 { 197 if m != nil && m.Level != nil { 198 return *m.Level 199 } 200 return 0 201 } 202 203 func (m *LogLine) GetLogMessage() string { 204 if m != nil && m.LogMessage != nil { 205 return *m.LogMessage 206 } 207 return "" 208 } 209 210 type RequestLog struct { 211 AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` 212 ModuleId *string `protobuf:"bytes,37,opt,name=module_id,def=default" json:"module_id,omitempty"` 213 VersionId *string `protobuf:"bytes,2,req,name=version_id" json:"version_id,omitempty"` 214 RequestId []byte `protobuf:"bytes,3,req,name=request_id" json:"request_id,omitempty"` 215 Offset *LogOffset `protobuf:"bytes,35,opt,name=offset" json:"offset,omitempty"` 216 Ip *string `protobuf:"bytes,4,req,name=ip" json:"ip,omitempty"` 217 Nickname *string `protobuf:"bytes,5,opt,name=nickname" json:"nickname,omitempty"` 218 StartTime *int64 `protobuf:"varint,6,req,name=start_time" json:"start_time,omitempty"` 219 EndTime *int64 `protobuf:"varint,7,req,name=end_time" json:"end_time,omitempty"` 220 Latency *int64 `protobuf:"varint,8,req,name=latency" json:"latency,omitempty"` 221 Mcycles *int64 `protobuf:"varint,9,req,name=mcycles" json:"mcycles,omitempty"` 222 Method *string `protobuf:"bytes,10,req,name=method" json:"method,omitempty"` 223 Resource *string `protobuf:"bytes,11,req,name=resource" json:"resource,omitempty"` 224 HttpVersion *string `protobuf:"bytes,12,req,name=http_version" json:"http_version,omitempty"` 225 Status *int32 `protobuf:"varint,13,req,name=status" json:"status,omitempty"` 226 ResponseSize *int64 `protobuf:"varint,14,req,name=response_size" json:"response_size,omitempty"` 227 Referrer *string `protobuf:"bytes,15,opt,name=referrer" json:"referrer,omitempty"` 228 UserAgent *string `protobuf:"bytes,16,opt,name=user_agent" json:"user_agent,omitempty"` 229 UrlMapEntry *string `protobuf:"bytes,17,req,name=url_map_entry" json:"url_map_entry,omitempty"` 230 Combined *string `protobuf:"bytes,18,req,name=combined" json:"combined,omitempty"` 231 ApiMcycles *int64 `protobuf:"varint,19,opt,name=api_mcycles" json:"api_mcycles,omitempty"` 232 Host *string `protobuf:"bytes,20,opt,name=host" json:"host,omitempty"` 233 Cost *float64 `protobuf:"fixed64,21,opt,name=cost" json:"cost,omitempty"` 234 TaskQueueName *string `protobuf:"bytes,22,opt,name=task_queue_name" json:"task_queue_name,omitempty"` 235 TaskName *string `protobuf:"bytes,23,opt,name=task_name" json:"task_name,omitempty"` 236 WasLoadingRequest *bool `protobuf:"varint,24,opt,name=was_loading_request" json:"was_loading_request,omitempty"` 237 PendingTime *int64 `protobuf:"varint,25,opt,name=pending_time" json:"pending_time,omitempty"` 238 ReplicaIndex *int32 `protobuf:"varint,26,opt,name=replica_index,def=-1" json:"replica_index,omitempty"` 239 Finished *bool `protobuf:"varint,27,opt,name=finished,def=1" json:"finished,omitempty"` 240 CloneKey []byte `protobuf:"bytes,28,opt,name=clone_key" json:"clone_key,omitempty"` 241 Line []*LogLine `protobuf:"bytes,29,rep,name=line" json:"line,omitempty"` 242 LinesIncomplete *bool `protobuf:"varint,36,opt,name=lines_incomplete" json:"lines_incomplete,omitempty"` 243 AppEngineRelease []byte `protobuf:"bytes,38,opt,name=app_engine_release" json:"app_engine_release,omitempty"` 244 ExitReason *int32 `protobuf:"varint,30,opt,name=exit_reason" json:"exit_reason,omitempty"` 245 WasThrottledForTime *bool `protobuf:"varint,31,opt,name=was_throttled_for_time" json:"was_throttled_for_time,omitempty"` 246 WasThrottledForRequests *bool `protobuf:"varint,32,opt,name=was_throttled_for_requests" json:"was_throttled_for_requests,omitempty"` 247 ThrottledTime *int64 `protobuf:"varint,33,opt,name=throttled_time" json:"throttled_time,omitempty"` 248 ServerName []byte `protobuf:"bytes,34,opt,name=server_name" json:"server_name,omitempty"` 249 XXX_unrecognized []byte `json:"-"` 250 } 251 252 func (m *RequestLog) Reset() { *m = RequestLog{} } 253 func (m *RequestLog) String() string { return proto.CompactTextString(m) } 254 func (*RequestLog) ProtoMessage() {} 255 256 const Default_RequestLog_ModuleId string = "default" 257 const Default_RequestLog_ReplicaIndex int32 = -1 258 const Default_RequestLog_Finished bool = true 259 260 func (m *RequestLog) GetAppId() string { 261 if m != nil && m.AppId != nil { 262 return *m.AppId 263 } 264 return "" 265 } 266 267 func (m *RequestLog) GetModuleId() string { 268 if m != nil && m.ModuleId != nil { 269 return *m.ModuleId 270 } 271 return Default_RequestLog_ModuleId 272 } 273 274 func (m *RequestLog) GetVersionId() string { 275 if m != nil && m.VersionId != nil { 276 return *m.VersionId 277 } 278 return "" 279 } 280 281 func (m *RequestLog) GetRequestId() []byte { 282 if m != nil { 283 return m.RequestId 284 } 285 return nil 286 } 287 288 func (m *RequestLog) GetOffset() *LogOffset { 289 if m != nil { 290 return m.Offset 291 } 292 return nil 293 } 294 295 func (m *RequestLog) GetIp() string { 296 if m != nil && m.Ip != nil { 297 return *m.Ip 298 } 299 return "" 300 } 301 302 func (m *RequestLog) GetNickname() string { 303 if m != nil && m.Nickname != nil { 304 return *m.Nickname 305 } 306 return "" 307 } 308 309 func (m *RequestLog) GetStartTime() int64 { 310 if m != nil && m.StartTime != nil { 311 return *m.StartTime 312 } 313 return 0 314 } 315 316 func (m *RequestLog) GetEndTime() int64 { 317 if m != nil && m.EndTime != nil { 318 return *m.EndTime 319 } 320 return 0 321 } 322 323 func (m *RequestLog) GetLatency() int64 { 324 if m != nil && m.Latency != nil { 325 return *m.Latency 326 } 327 return 0 328 } 329 330 func (m *RequestLog) GetMcycles() int64 { 331 if m != nil && m.Mcycles != nil { 332 return *m.Mcycles 333 } 334 return 0 335 } 336 337 func (m *RequestLog) GetMethod() string { 338 if m != nil && m.Method != nil { 339 return *m.Method 340 } 341 return "" 342 } 343 344 func (m *RequestLog) GetResource() string { 345 if m != nil && m.Resource != nil { 346 return *m.Resource 347 } 348 return "" 349 } 350 351 func (m *RequestLog) GetHttpVersion() string { 352 if m != nil && m.HttpVersion != nil { 353 return *m.HttpVersion 354 } 355 return "" 356 } 357 358 func (m *RequestLog) GetStatus() int32 { 359 if m != nil && m.Status != nil { 360 return *m.Status 361 } 362 return 0 363 } 364 365 func (m *RequestLog) GetResponseSize() int64 { 366 if m != nil && m.ResponseSize != nil { 367 return *m.ResponseSize 368 } 369 return 0 370 } 371 372 func (m *RequestLog) GetReferrer() string { 373 if m != nil && m.Referrer != nil { 374 return *m.Referrer 375 } 376 return "" 377 } 378 379 func (m *RequestLog) GetUserAgent() string { 380 if m != nil && m.UserAgent != nil { 381 return *m.UserAgent 382 } 383 return "" 384 } 385 386 func (m *RequestLog) GetUrlMapEntry() string { 387 if m != nil && m.UrlMapEntry != nil { 388 return *m.UrlMapEntry 389 } 390 return "" 391 } 392 393 func (m *RequestLog) GetCombined() string { 394 if m != nil && m.Combined != nil { 395 return *m.Combined 396 } 397 return "" 398 } 399 400 func (m *RequestLog) GetApiMcycles() int64 { 401 if m != nil && m.ApiMcycles != nil { 402 return *m.ApiMcycles 403 } 404 return 0 405 } 406 407 func (m *RequestLog) GetHost() string { 408 if m != nil && m.Host != nil { 409 return *m.Host 410 } 411 return "" 412 } 413 414 func (m *RequestLog) GetCost() float64 { 415 if m != nil && m.Cost != nil { 416 return *m.Cost 417 } 418 return 0 419 } 420 421 func (m *RequestLog) GetTaskQueueName() string { 422 if m != nil && m.TaskQueueName != nil { 423 return *m.TaskQueueName 424 } 425 return "" 426 } 427 428 func (m *RequestLog) GetTaskName() string { 429 if m != nil && m.TaskName != nil { 430 return *m.TaskName 431 } 432 return "" 433 } 434 435 func (m *RequestLog) GetWasLoadingRequest() bool { 436 if m != nil && m.WasLoadingRequest != nil { 437 return *m.WasLoadingRequest 438 } 439 return false 440 } 441 442 func (m *RequestLog) GetPendingTime() int64 { 443 if m != nil && m.PendingTime != nil { 444 return *m.PendingTime 445 } 446 return 0 447 } 448 449 func (m *RequestLog) GetReplicaIndex() int32 { 450 if m != nil && m.ReplicaIndex != nil { 451 return *m.ReplicaIndex 452 } 453 return Default_RequestLog_ReplicaIndex 454 } 455 456 func (m *RequestLog) GetFinished() bool { 457 if m != nil && m.Finished != nil { 458 return *m.Finished 459 } 460 return Default_RequestLog_Finished 461 } 462 463 func (m *RequestLog) GetCloneKey() []byte { 464 if m != nil { 465 return m.CloneKey 466 } 467 return nil 468 } 469 470 func (m *RequestLog) GetLine() []*LogLine { 471 if m != nil { 472 return m.Line 473 } 474 return nil 475 } 476 477 func (m *RequestLog) GetLinesIncomplete() bool { 478 if m != nil && m.LinesIncomplete != nil { 479 return *m.LinesIncomplete 480 } 481 return false 482 } 483 484 func (m *RequestLog) GetAppEngineRelease() []byte { 485 if m != nil { 486 return m.AppEngineRelease 487 } 488 return nil 489 } 490 491 func (m *RequestLog) GetExitReason() int32 { 492 if m != nil && m.ExitReason != nil { 493 return *m.ExitReason 494 } 495 return 0 496 } 497 498 func (m *RequestLog) GetWasThrottledForTime() bool { 499 if m != nil && m.WasThrottledForTime != nil { 500 return *m.WasThrottledForTime 501 } 502 return false 503 } 504 505 func (m *RequestLog) GetWasThrottledForRequests() bool { 506 if m != nil && m.WasThrottledForRequests != nil { 507 return *m.WasThrottledForRequests 508 } 509 return false 510 } 511 512 func (m *RequestLog) GetThrottledTime() int64 { 513 if m != nil && m.ThrottledTime != nil { 514 return *m.ThrottledTime 515 } 516 return 0 517 } 518 519 func (m *RequestLog) GetServerName() []byte { 520 if m != nil { 521 return m.ServerName 522 } 523 return nil 524 } 525 526 type LogModuleVersion struct { 527 ModuleId *string `protobuf:"bytes,1,opt,name=module_id,def=default" json:"module_id,omitempty"` 528 VersionId *string `protobuf:"bytes,2,opt,name=version_id" json:"version_id,omitempty"` 529 XXX_unrecognized []byte `json:"-"` 530 } 531 532 func (m *LogModuleVersion) Reset() { *m = LogModuleVersion{} } 533 func (m *LogModuleVersion) String() string { return proto.CompactTextString(m) } 534 func (*LogModuleVersion) ProtoMessage() {} 535 536 const Default_LogModuleVersion_ModuleId string = "default" 537 538 func (m *LogModuleVersion) GetModuleId() string { 539 if m != nil && m.ModuleId != nil { 540 return *m.ModuleId 541 } 542 return Default_LogModuleVersion_ModuleId 543 } 544 545 func (m *LogModuleVersion) GetVersionId() string { 546 if m != nil && m.VersionId != nil { 547 return *m.VersionId 548 } 549 return "" 550 } 551 552 type LogReadRequest struct { 553 AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` 554 VersionId []string `protobuf:"bytes,2,rep,name=version_id" json:"version_id,omitempty"` 555 ModuleVersion []*LogModuleVersion `protobuf:"bytes,19,rep,name=module_version" json:"module_version,omitempty"` 556 StartTime *int64 `protobuf:"varint,3,opt,name=start_time" json:"start_time,omitempty"` 557 EndTime *int64 `protobuf:"varint,4,opt,name=end_time" json:"end_time,omitempty"` 558 Offset *LogOffset `protobuf:"bytes,5,opt,name=offset" json:"offset,omitempty"` 559 RequestId [][]byte `protobuf:"bytes,6,rep,name=request_id" json:"request_id,omitempty"` 560 MinimumLogLevel *int32 `protobuf:"varint,7,opt,name=minimum_log_level" json:"minimum_log_level,omitempty"` 561 IncludeIncomplete *bool `protobuf:"varint,8,opt,name=include_incomplete" json:"include_incomplete,omitempty"` 562 Count *int64 `protobuf:"varint,9,opt,name=count" json:"count,omitempty"` 563 CombinedLogRegex *string `protobuf:"bytes,14,opt,name=combined_log_regex" json:"combined_log_regex,omitempty"` 564 HostRegex *string `protobuf:"bytes,15,opt,name=host_regex" json:"host_regex,omitempty"` 565 ReplicaIndex *int32 `protobuf:"varint,16,opt,name=replica_index" json:"replica_index,omitempty"` 566 IncludeAppLogs *bool `protobuf:"varint,10,opt,name=include_app_logs" json:"include_app_logs,omitempty"` 567 AppLogsPerRequest *int32 `protobuf:"varint,17,opt,name=app_logs_per_request" json:"app_logs_per_request,omitempty"` 568 IncludeHost *bool `protobuf:"varint,11,opt,name=include_host" json:"include_host,omitempty"` 569 IncludeAll *bool `protobuf:"varint,12,opt,name=include_all" json:"include_all,omitempty"` 570 CacheIterator *bool `protobuf:"varint,13,opt,name=cache_iterator" json:"cache_iterator,omitempty"` 571 NumShards *int32 `protobuf:"varint,18,opt,name=num_shards" json:"num_shards,omitempty"` 572 XXX_unrecognized []byte `json:"-"` 573 } 574 575 func (m *LogReadRequest) Reset() { *m = LogReadRequest{} } 576 func (m *LogReadRequest) String() string { return proto.CompactTextString(m) } 577 func (*LogReadRequest) ProtoMessage() {} 578 579 func (m *LogReadRequest) GetAppId() string { 580 if m != nil && m.AppId != nil { 581 return *m.AppId 582 } 583 return "" 584 } 585 586 func (m *LogReadRequest) GetVersionId() []string { 587 if m != nil { 588 return m.VersionId 589 } 590 return nil 591 } 592 593 func (m *LogReadRequest) GetModuleVersion() []*LogModuleVersion { 594 if m != nil { 595 return m.ModuleVersion 596 } 597 return nil 598 } 599 600 func (m *LogReadRequest) GetStartTime() int64 { 601 if m != nil && m.StartTime != nil { 602 return *m.StartTime 603 } 604 return 0 605 } 606 607 func (m *LogReadRequest) GetEndTime() int64 { 608 if m != nil && m.EndTime != nil { 609 return *m.EndTime 610 } 611 return 0 612 } 613 614 func (m *LogReadRequest) GetOffset() *LogOffset { 615 if m != nil { 616 return m.Offset 617 } 618 return nil 619 } 620 621 func (m *LogReadRequest) GetRequestId() [][]byte { 622 if m != nil { 623 return m.RequestId 624 } 625 return nil 626 } 627 628 func (m *LogReadRequest) GetMinimumLogLevel() int32 { 629 if m != nil && m.MinimumLogLevel != nil { 630 return *m.MinimumLogLevel 631 } 632 return 0 633 } 634 635 func (m *LogReadRequest) GetIncludeIncomplete() bool { 636 if m != nil && m.IncludeIncomplete != nil { 637 return *m.IncludeIncomplete 638 } 639 return false 640 } 641 642 func (m *LogReadRequest) GetCount() int64 { 643 if m != nil && m.Count != nil { 644 return *m.Count 645 } 646 return 0 647 } 648 649 func (m *LogReadRequest) GetCombinedLogRegex() string { 650 if m != nil && m.CombinedLogRegex != nil { 651 return *m.CombinedLogRegex 652 } 653 return "" 654 } 655 656 func (m *LogReadRequest) GetHostRegex() string { 657 if m != nil && m.HostRegex != nil { 658 return *m.HostRegex 659 } 660 return "" 661 } 662 663 func (m *LogReadRequest) GetReplicaIndex() int32 { 664 if m != nil && m.ReplicaIndex != nil { 665 return *m.ReplicaIndex 666 } 667 return 0 668 } 669 670 func (m *LogReadRequest) GetIncludeAppLogs() bool { 671 if m != nil && m.IncludeAppLogs != nil { 672 return *m.IncludeAppLogs 673 } 674 return false 675 } 676 677 func (m *LogReadRequest) GetAppLogsPerRequest() int32 { 678 if m != nil && m.AppLogsPerRequest != nil { 679 return *m.AppLogsPerRequest 680 } 681 return 0 682 } 683 684 func (m *LogReadRequest) GetIncludeHost() bool { 685 if m != nil && m.IncludeHost != nil { 686 return *m.IncludeHost 687 } 688 return false 689 } 690 691 func (m *LogReadRequest) GetIncludeAll() bool { 692 if m != nil && m.IncludeAll != nil { 693 return *m.IncludeAll 694 } 695 return false 696 } 697 698 func (m *LogReadRequest) GetCacheIterator() bool { 699 if m != nil && m.CacheIterator != nil { 700 return *m.CacheIterator 701 } 702 return false 703 } 704 705 func (m *LogReadRequest) GetNumShards() int32 { 706 if m != nil && m.NumShards != nil { 707 return *m.NumShards 708 } 709 return 0 710 } 711 712 type LogReadResponse struct { 713 Log []*RequestLog `protobuf:"bytes,1,rep,name=log" json:"log,omitempty"` 714 Offset *LogOffset `protobuf:"bytes,2,opt,name=offset" json:"offset,omitempty"` 715 LastEndTime *int64 `protobuf:"varint,3,opt,name=last_end_time" json:"last_end_time,omitempty"` 716 XXX_unrecognized []byte `json:"-"` 717 } 718 719 func (m *LogReadResponse) Reset() { *m = LogReadResponse{} } 720 func (m *LogReadResponse) String() string { return proto.CompactTextString(m) } 721 func (*LogReadResponse) ProtoMessage() {} 722 723 func (m *LogReadResponse) GetLog() []*RequestLog { 724 if m != nil { 725 return m.Log 726 } 727 return nil 728 } 729 730 func (m *LogReadResponse) GetOffset() *LogOffset { 731 if m != nil { 732 return m.Offset 733 } 734 return nil 735 } 736 737 func (m *LogReadResponse) GetLastEndTime() int64 { 738 if m != nil && m.LastEndTime != nil { 739 return *m.LastEndTime 740 } 741 return 0 742 } 743 744 type LogUsageRecord struct { 745 VersionId *string `protobuf:"bytes,1,opt,name=version_id" json:"version_id,omitempty"` 746 StartTime *int32 `protobuf:"varint,2,opt,name=start_time" json:"start_time,omitempty"` 747 EndTime *int32 `protobuf:"varint,3,opt,name=end_time" json:"end_time,omitempty"` 748 Count *int64 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` 749 TotalSize *int64 `protobuf:"varint,5,opt,name=total_size" json:"total_size,omitempty"` 750 Records *int32 `protobuf:"varint,6,opt,name=records" json:"records,omitempty"` 751 XXX_unrecognized []byte `json:"-"` 752 } 753 754 func (m *LogUsageRecord) Reset() { *m = LogUsageRecord{} } 755 func (m *LogUsageRecord) String() string { return proto.CompactTextString(m) } 756 func (*LogUsageRecord) ProtoMessage() {} 757 758 func (m *LogUsageRecord) GetVersionId() string { 759 if m != nil && m.VersionId != nil { 760 return *m.VersionId 761 } 762 return "" 763 } 764 765 func (m *LogUsageRecord) GetStartTime() int32 { 766 if m != nil && m.StartTime != nil { 767 return *m.StartTime 768 } 769 return 0 770 } 771 772 func (m *LogUsageRecord) GetEndTime() int32 { 773 if m != nil && m.EndTime != nil { 774 return *m.EndTime 775 } 776 return 0 777 } 778 779 func (m *LogUsageRecord) GetCount() int64 { 780 if m != nil && m.Count != nil { 781 return *m.Count 782 } 783 return 0 784 } 785 786 func (m *LogUsageRecord) GetTotalSize() int64 { 787 if m != nil && m.TotalSize != nil { 788 return *m.TotalSize 789 } 790 return 0 791 } 792 793 func (m *LogUsageRecord) GetRecords() int32 { 794 if m != nil && m.Records != nil { 795 return *m.Records 796 } 797 return 0 798 } 799 800 type LogUsageRequest struct { 801 AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` 802 VersionId []string `protobuf:"bytes,2,rep,name=version_id" json:"version_id,omitempty"` 803 StartTime *int32 `protobuf:"varint,3,opt,name=start_time" json:"start_time,omitempty"` 804 EndTime *int32 `protobuf:"varint,4,opt,name=end_time" json:"end_time,omitempty"` 805 ResolutionHours *uint32 `protobuf:"varint,5,opt,name=resolution_hours,def=1" json:"resolution_hours,omitempty"` 806 CombineVersions *bool `protobuf:"varint,6,opt,name=combine_versions" json:"combine_versions,omitempty"` 807 UsageVersion *int32 `protobuf:"varint,7,opt,name=usage_version" json:"usage_version,omitempty"` 808 VersionsOnly *bool `protobuf:"varint,8,opt,name=versions_only" json:"versions_only,omitempty"` 809 XXX_unrecognized []byte `json:"-"` 810 } 811 812 func (m *LogUsageRequest) Reset() { *m = LogUsageRequest{} } 813 func (m *LogUsageRequest) String() string { return proto.CompactTextString(m) } 814 func (*LogUsageRequest) ProtoMessage() {} 815 816 const Default_LogUsageRequest_ResolutionHours uint32 = 1 817 818 func (m *LogUsageRequest) GetAppId() string { 819 if m != nil && m.AppId != nil { 820 return *m.AppId 821 } 822 return "" 823 } 824 825 func (m *LogUsageRequest) GetVersionId() []string { 826 if m != nil { 827 return m.VersionId 828 } 829 return nil 830 } 831 832 func (m *LogUsageRequest) GetStartTime() int32 { 833 if m != nil && m.StartTime != nil { 834 return *m.StartTime 835 } 836 return 0 837 } 838 839 func (m *LogUsageRequest) GetEndTime() int32 { 840 if m != nil && m.EndTime != nil { 841 return *m.EndTime 842 } 843 return 0 844 } 845 846 func (m *LogUsageRequest) GetResolutionHours() uint32 { 847 if m != nil && m.ResolutionHours != nil { 848 return *m.ResolutionHours 849 } 850 return Default_LogUsageRequest_ResolutionHours 851 } 852 853 func (m *LogUsageRequest) GetCombineVersions() bool { 854 if m != nil && m.CombineVersions != nil { 855 return *m.CombineVersions 856 } 857 return false 858 } 859 860 func (m *LogUsageRequest) GetUsageVersion() int32 { 861 if m != nil && m.UsageVersion != nil { 862 return *m.UsageVersion 863 } 864 return 0 865 } 866 867 func (m *LogUsageRequest) GetVersionsOnly() bool { 868 if m != nil && m.VersionsOnly != nil { 869 return *m.VersionsOnly 870 } 871 return false 872 } 873 874 type LogUsageResponse struct { 875 Usage []*LogUsageRecord `protobuf:"bytes,1,rep,name=usage" json:"usage,omitempty"` 876 Summary *LogUsageRecord `protobuf:"bytes,2,opt,name=summary" json:"summary,omitempty"` 877 XXX_unrecognized []byte `json:"-"` 878 } 879 880 func (m *LogUsageResponse) Reset() { *m = LogUsageResponse{} } 881 func (m *LogUsageResponse) String() string { return proto.CompactTextString(m) } 882 func (*LogUsageResponse) ProtoMessage() {} 883 884 func (m *LogUsageResponse) GetUsage() []*LogUsageRecord { 885 if m != nil { 886 return m.Usage 887 } 888 return nil 889 } 890 891 func (m *LogUsageResponse) GetSummary() *LogUsageRecord { 892 if m != nil { 893 return m.Summary 894 } 895 return nil 896 } 897 898 func init() { 899 }