system_service.pb.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. // Code generated by protoc-gen-go.
  2. // source: google.golang.org/appengine/internal/system/system_service.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package system is a generated protocol buffer package.
  6. It is generated from these files:
  7. google.golang.org/appengine/internal/system/system_service.proto
  8. It has these top-level messages:
  9. SystemServiceError
  10. SystemStat
  11. GetSystemStatsRequest
  12. GetSystemStatsResponse
  13. StartBackgroundRequestRequest
  14. StartBackgroundRequestResponse
  15. */
  16. package system
  17. import proto "github.com/golang/protobuf/proto"
  18. import fmt "fmt"
  19. import math "math"
  20. // Reference imports to suppress errors if they are not otherwise used.
  21. var _ = proto.Marshal
  22. var _ = fmt.Errorf
  23. var _ = math.Inf
  24. type SystemServiceError_ErrorCode int32
  25. const (
  26. SystemServiceError_OK SystemServiceError_ErrorCode = 0
  27. SystemServiceError_INTERNAL_ERROR SystemServiceError_ErrorCode = 1
  28. SystemServiceError_BACKEND_REQUIRED SystemServiceError_ErrorCode = 2
  29. SystemServiceError_LIMIT_REACHED SystemServiceError_ErrorCode = 3
  30. )
  31. var SystemServiceError_ErrorCode_name = map[int32]string{
  32. 0: "OK",
  33. 1: "INTERNAL_ERROR",
  34. 2: "BACKEND_REQUIRED",
  35. 3: "LIMIT_REACHED",
  36. }
  37. var SystemServiceError_ErrorCode_value = map[string]int32{
  38. "OK": 0,
  39. "INTERNAL_ERROR": 1,
  40. "BACKEND_REQUIRED": 2,
  41. "LIMIT_REACHED": 3,
  42. }
  43. func (x SystemServiceError_ErrorCode) Enum() *SystemServiceError_ErrorCode {
  44. p := new(SystemServiceError_ErrorCode)
  45. *p = x
  46. return p
  47. }
  48. func (x SystemServiceError_ErrorCode) String() string {
  49. return proto.EnumName(SystemServiceError_ErrorCode_name, int32(x))
  50. }
  51. func (x *SystemServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
  52. value, err := proto.UnmarshalJSONEnum(SystemServiceError_ErrorCode_value, data, "SystemServiceError_ErrorCode")
  53. if err != nil {
  54. return err
  55. }
  56. *x = SystemServiceError_ErrorCode(value)
  57. return nil
  58. }
  59. type SystemServiceError struct {
  60. XXX_unrecognized []byte `json:"-"`
  61. }
  62. func (m *SystemServiceError) Reset() { *m = SystemServiceError{} }
  63. func (m *SystemServiceError) String() string { return proto.CompactTextString(m) }
  64. func (*SystemServiceError) ProtoMessage() {}
  65. type SystemStat struct {
  66. // Instaneous value of this stat.
  67. Current *float64 `protobuf:"fixed64,1,opt,name=current" json:"current,omitempty"`
  68. // Average over time, if this stat has an instaneous value.
  69. Average1M *float64 `protobuf:"fixed64,3,opt,name=average1m" json:"average1m,omitempty"`
  70. Average10M *float64 `protobuf:"fixed64,4,opt,name=average10m" json:"average10m,omitempty"`
  71. // Total value, if the stat accumulates over time.
  72. Total *float64 `protobuf:"fixed64,2,opt,name=total" json:"total,omitempty"`
  73. // Rate over time, if this stat accumulates.
  74. Rate1M *float64 `protobuf:"fixed64,5,opt,name=rate1m" json:"rate1m,omitempty"`
  75. Rate10M *float64 `protobuf:"fixed64,6,opt,name=rate10m" json:"rate10m,omitempty"`
  76. XXX_unrecognized []byte `json:"-"`
  77. }
  78. func (m *SystemStat) Reset() { *m = SystemStat{} }
  79. func (m *SystemStat) String() string { return proto.CompactTextString(m) }
  80. func (*SystemStat) ProtoMessage() {}
  81. func (m *SystemStat) GetCurrent() float64 {
  82. if m != nil && m.Current != nil {
  83. return *m.Current
  84. }
  85. return 0
  86. }
  87. func (m *SystemStat) GetAverage1M() float64 {
  88. if m != nil && m.Average1M != nil {
  89. return *m.Average1M
  90. }
  91. return 0
  92. }
  93. func (m *SystemStat) GetAverage10M() float64 {
  94. if m != nil && m.Average10M != nil {
  95. return *m.Average10M
  96. }
  97. return 0
  98. }
  99. func (m *SystemStat) GetTotal() float64 {
  100. if m != nil && m.Total != nil {
  101. return *m.Total
  102. }
  103. return 0
  104. }
  105. func (m *SystemStat) GetRate1M() float64 {
  106. if m != nil && m.Rate1M != nil {
  107. return *m.Rate1M
  108. }
  109. return 0
  110. }
  111. func (m *SystemStat) GetRate10M() float64 {
  112. if m != nil && m.Rate10M != nil {
  113. return *m.Rate10M
  114. }
  115. return 0
  116. }
  117. type GetSystemStatsRequest struct {
  118. XXX_unrecognized []byte `json:"-"`
  119. }
  120. func (m *GetSystemStatsRequest) Reset() { *m = GetSystemStatsRequest{} }
  121. func (m *GetSystemStatsRequest) String() string { return proto.CompactTextString(m) }
  122. func (*GetSystemStatsRequest) ProtoMessage() {}
  123. type GetSystemStatsResponse struct {
  124. // CPU used by this instance, in mcycles.
  125. Cpu *SystemStat `protobuf:"bytes,1,opt,name=cpu" json:"cpu,omitempty"`
  126. // Physical memory (RAM) used by this instance, in megabytes.
  127. Memory *SystemStat `protobuf:"bytes,2,opt,name=memory" json:"memory,omitempty"`
  128. XXX_unrecognized []byte `json:"-"`
  129. }
  130. func (m *GetSystemStatsResponse) Reset() { *m = GetSystemStatsResponse{} }
  131. func (m *GetSystemStatsResponse) String() string { return proto.CompactTextString(m) }
  132. func (*GetSystemStatsResponse) ProtoMessage() {}
  133. func (m *GetSystemStatsResponse) GetCpu() *SystemStat {
  134. if m != nil {
  135. return m.Cpu
  136. }
  137. return nil
  138. }
  139. func (m *GetSystemStatsResponse) GetMemory() *SystemStat {
  140. if m != nil {
  141. return m.Memory
  142. }
  143. return nil
  144. }
  145. type StartBackgroundRequestRequest struct {
  146. XXX_unrecognized []byte `json:"-"`
  147. }
  148. func (m *StartBackgroundRequestRequest) Reset() { *m = StartBackgroundRequestRequest{} }
  149. func (m *StartBackgroundRequestRequest) String() string { return proto.CompactTextString(m) }
  150. func (*StartBackgroundRequestRequest) ProtoMessage() {}
  151. type StartBackgroundRequestResponse struct {
  152. // Every /_ah/background request will have an X-AppEngine-BackgroundRequest
  153. // header, whose value will be equal to this parameter, the request_id.
  154. RequestId *string `protobuf:"bytes,1,opt,name=request_id" json:"request_id,omitempty"`
  155. XXX_unrecognized []byte `json:"-"`
  156. }
  157. func (m *StartBackgroundRequestResponse) Reset() { *m = StartBackgroundRequestResponse{} }
  158. func (m *StartBackgroundRequestResponse) String() string { return proto.CompactTextString(m) }
  159. func (*StartBackgroundRequestResponse) ProtoMessage() {}
  160. func (m *StartBackgroundRequestResponse) GetRequestId() string {
  161. if m != nil && m.RequestId != nil {
  162. return *m.RequestId
  163. }
  164. return ""
  165. }
  166. func init() {
  167. }