250 lines
10 KiB
Go
250 lines
10 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: google.golang.org/appengine/internal/system/system_service.proto
|
|
|
|
/*
|
|
Package system is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
google.golang.org/appengine/internal/system/system_service.proto
|
|
|
|
It has these top-level messages:
|
|
SystemServiceError
|
|
SystemStat
|
|
GetSystemStatsRequest
|
|
GetSystemStatsResponse
|
|
StartBackgroundRequestRequest
|
|
StartBackgroundRequestResponse
|
|
*/
|
|
package system
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type SystemServiceError_ErrorCode int32
|
|
|
|
const (
|
|
SystemServiceError_OK SystemServiceError_ErrorCode = 0
|
|
SystemServiceError_INTERNAL_ERROR SystemServiceError_ErrorCode = 1
|
|
SystemServiceError_BACKEND_REQUIRED SystemServiceError_ErrorCode = 2
|
|
SystemServiceError_LIMIT_REACHED SystemServiceError_ErrorCode = 3
|
|
)
|
|
|
|
var SystemServiceError_ErrorCode_name = map[int32]string{
|
|
0: "OK",
|
|
1: "INTERNAL_ERROR",
|
|
2: "BACKEND_REQUIRED",
|
|
3: "LIMIT_REACHED",
|
|
}
|
|
var SystemServiceError_ErrorCode_value = map[string]int32{
|
|
"OK": 0,
|
|
"INTERNAL_ERROR": 1,
|
|
"BACKEND_REQUIRED": 2,
|
|
"LIMIT_REACHED": 3,
|
|
}
|
|
|
|
func (x SystemServiceError_ErrorCode) Enum() *SystemServiceError_ErrorCode {
|
|
p := new(SystemServiceError_ErrorCode)
|
|
*p = x
|
|
return p
|
|
}
|
|
func (x SystemServiceError_ErrorCode) String() string {
|
|
return proto.EnumName(SystemServiceError_ErrorCode_name, int32(x))
|
|
}
|
|
func (x *SystemServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
|
|
value, err := proto.UnmarshalJSONEnum(SystemServiceError_ErrorCode_value, data, "SystemServiceError_ErrorCode")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = SystemServiceError_ErrorCode(value)
|
|
return nil
|
|
}
|
|
func (SystemServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor0, []int{0, 0}
|
|
}
|
|
|
|
type SystemServiceError struct {
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *SystemServiceError) Reset() { *m = SystemServiceError{} }
|
|
func (m *SystemServiceError) String() string { return proto.CompactTextString(m) }
|
|
func (*SystemServiceError) ProtoMessage() {}
|
|
func (*SystemServiceError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
type SystemStat struct {
|
|
// Instaneous value of this stat.
|
|
Current *float64 `protobuf:"fixed64,1,opt,name=current" json:"current,omitempty"`
|
|
// Average over time, if this stat has an instaneous value.
|
|
Average1M *float64 `protobuf:"fixed64,3,opt,name=average1m" json:"average1m,omitempty"`
|
|
Average10M *float64 `protobuf:"fixed64,4,opt,name=average10m" json:"average10m,omitempty"`
|
|
// Total value, if the stat accumulates over time.
|
|
Total *float64 `protobuf:"fixed64,2,opt,name=total" json:"total,omitempty"`
|
|
// Rate over time, if this stat accumulates.
|
|
Rate1M *float64 `protobuf:"fixed64,5,opt,name=rate1m" json:"rate1m,omitempty"`
|
|
Rate10M *float64 `protobuf:"fixed64,6,opt,name=rate10m" json:"rate10m,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *SystemStat) Reset() { *m = SystemStat{} }
|
|
func (m *SystemStat) String() string { return proto.CompactTextString(m) }
|
|
func (*SystemStat) ProtoMessage() {}
|
|
func (*SystemStat) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *SystemStat) GetCurrent() float64 {
|
|
if m != nil && m.Current != nil {
|
|
return *m.Current
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SystemStat) GetAverage1M() float64 {
|
|
if m != nil && m.Average1M != nil {
|
|
return *m.Average1M
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SystemStat) GetAverage10M() float64 {
|
|
if m != nil && m.Average10M != nil {
|
|
return *m.Average10M
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SystemStat) GetTotal() float64 {
|
|
if m != nil && m.Total != nil {
|
|
return *m.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SystemStat) GetRate1M() float64 {
|
|
if m != nil && m.Rate1M != nil {
|
|
return *m.Rate1M
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SystemStat) GetRate10M() float64 {
|
|
if m != nil && m.Rate10M != nil {
|
|
return *m.Rate10M
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetSystemStatsRequest struct {
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *GetSystemStatsRequest) Reset() { *m = GetSystemStatsRequest{} }
|
|
func (m *GetSystemStatsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetSystemStatsRequest) ProtoMessage() {}
|
|
func (*GetSystemStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
type GetSystemStatsResponse struct {
|
|
// CPU used by this instance, in mcycles.
|
|
Cpu *SystemStat `protobuf:"bytes,1,opt,name=cpu" json:"cpu,omitempty"`
|
|
// Physical memory (RAM) used by this instance, in megabytes.
|
|
Memory *SystemStat `protobuf:"bytes,2,opt,name=memory" json:"memory,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *GetSystemStatsResponse) Reset() { *m = GetSystemStatsResponse{} }
|
|
func (m *GetSystemStatsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetSystemStatsResponse) ProtoMessage() {}
|
|
func (*GetSystemStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
func (m *GetSystemStatsResponse) GetCpu() *SystemStat {
|
|
if m != nil {
|
|
return m.Cpu
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetSystemStatsResponse) GetMemory() *SystemStat {
|
|
if m != nil {
|
|
return m.Memory
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type StartBackgroundRequestRequest struct {
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *StartBackgroundRequestRequest) Reset() { *m = StartBackgroundRequestRequest{} }
|
|
func (m *StartBackgroundRequestRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*StartBackgroundRequestRequest) ProtoMessage() {}
|
|
func (*StartBackgroundRequestRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
type StartBackgroundRequestResponse struct {
|
|
// Every /_ah/background request will have an X-AppEngine-BackgroundRequest
|
|
// header, whose value will be equal to this parameter, the request_id.
|
|
RequestId *string `protobuf:"bytes,1,opt,name=request_id,json=requestId" json:"request_id,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *StartBackgroundRequestResponse) Reset() { *m = StartBackgroundRequestResponse{} }
|
|
func (m *StartBackgroundRequestResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*StartBackgroundRequestResponse) ProtoMessage() {}
|
|
func (*StartBackgroundRequestResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
func (m *StartBackgroundRequestResponse) GetRequestId() string {
|
|
if m != nil && m.RequestId != nil {
|
|
return *m.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*SystemServiceError)(nil), "appengine.SystemServiceError")
|
|
proto.RegisterType((*SystemStat)(nil), "appengine.SystemStat")
|
|
proto.RegisterType((*GetSystemStatsRequest)(nil), "appengine.GetSystemStatsRequest")
|
|
proto.RegisterType((*GetSystemStatsResponse)(nil), "appengine.GetSystemStatsResponse")
|
|
proto.RegisterType((*StartBackgroundRequestRequest)(nil), "appengine.StartBackgroundRequestRequest")
|
|
proto.RegisterType((*StartBackgroundRequestResponse)(nil), "appengine.StartBackgroundRequestResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("google.golang.org/appengine/internal/system/system_service.proto", fileDescriptor0)
|
|
}
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 377 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x4f, 0x8f, 0x93, 0x40,
|
|
0x18, 0xc6, 0xa5, 0x75, 0x51, 0x5e, 0xa3, 0xc1, 0xc9, 0xee, 0xca, 0xc1, 0x5d, 0x0d, 0x17, 0xbd,
|
|
0x48, 0x57, 0xbf, 0x80, 0xf6, 0xcf, 0x44, 0x49, 0x6b, 0xab, 0xd3, 0x7a, 0xf1, 0x42, 0x26, 0xf0,
|
|
0x3a, 0x21, 0xc2, 0x0c, 0x0e, 0x43, 0x93, 0x7e, 0x27, 0x3f, 0xa4, 0xe9, 0x30, 0x6d, 0xcd, 0x26,
|
|
0x3d, 0x31, 0xcf, 0xf3, 0xfc, 0x02, 0x3f, 0x08, 0xf0, 0x49, 0x28, 0x25, 0x2a, 0x4c, 0x84, 0xaa,
|
|
0xb8, 0x14, 0x89, 0xd2, 0x62, 0xc4, 0x9b, 0x06, 0xa5, 0x28, 0x25, 0x8e, 0x4a, 0x69, 0x50, 0x4b,
|
|
0x5e, 0x8d, 0xda, 0x5d, 0x6b, 0xb0, 0x76, 0x97, 0xac, 0x45, 0xbd, 0x2d, 0x73, 0x4c, 0x1a, 0xad,
|
|
0x8c, 0x22, 0xc1, 0x91, 0x8f, 0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