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