You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

299 lines
10 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/appengine/v1/instance.proto
  3. package appengine // import "google.golang.org/genproto/googleapis/appengine/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // Availability of the instance.
  19. type Instance_Availability int32
  20. const (
  21. Instance_UNSPECIFIED Instance_Availability = 0
  22. Instance_RESIDENT Instance_Availability = 1
  23. Instance_DYNAMIC Instance_Availability = 2
  24. )
  25. var Instance_Availability_name = map[int32]string{
  26. 0: "UNSPECIFIED",
  27. 1: "RESIDENT",
  28. 2: "DYNAMIC",
  29. }
  30. var Instance_Availability_value = map[string]int32{
  31. "UNSPECIFIED": 0,
  32. "RESIDENT": 1,
  33. "DYNAMIC": 2,
  34. }
  35. func (x Instance_Availability) String() string {
  36. return proto.EnumName(Instance_Availability_name, int32(x))
  37. }
  38. func (Instance_Availability) EnumDescriptor() ([]byte, []int) {
  39. return fileDescriptor_instance_ed8fdb20d85c31c6, []int{0, 0}
  40. }
  41. // An Instance resource is the computing unit that App Engine uses to
  42. // automatically scale an application.
  43. type Instance struct {
  44. // Full path to the Instance resource in the API.
  45. // Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
  46. //
  47. // @OutputOnly
  48. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  49. // Relative name of the instance within the version.
  50. // Example: `instance-1`.
  51. //
  52. // @OutputOnly
  53. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
  54. // App Engine release this instance is running on.
  55. //
  56. // @OutputOnly
  57. AppEngineRelease string `protobuf:"bytes,3,opt,name=app_engine_release,json=appEngineRelease,proto3" json:"app_engine_release,omitempty"`
  58. // Availability of the instance.
  59. //
  60. // @OutputOnly
  61. Availability Instance_Availability `protobuf:"varint,4,opt,name=availability,proto3,enum=google.appengine.v1.Instance_Availability" json:"availability,omitempty"`
  62. // Name of the virtual machine where this instance lives. Only applicable
  63. // for instances in App Engine flexible environment.
  64. //
  65. // @OutputOnly
  66. VmName string `protobuf:"bytes,5,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"`
  67. // Zone where the virtual machine is located. Only applicable for instances
  68. // in App Engine flexible environment.
  69. //
  70. // @OutputOnly
  71. VmZoneName string `protobuf:"bytes,6,opt,name=vm_zone_name,json=vmZoneName,proto3" json:"vm_zone_name,omitempty"`
  72. // Virtual machine ID of this instance. Only applicable for instances in
  73. // App Engine flexible environment.
  74. //
  75. // @OutputOnly
  76. VmId string `protobuf:"bytes,7,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"`
  77. // Time that this instance was started.
  78. //
  79. // @OutputOnly
  80. StartTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  81. // Number of requests since this instance was started.
  82. //
  83. // @OutputOnly
  84. Requests int32 `protobuf:"varint,9,opt,name=requests,proto3" json:"requests,omitempty"`
  85. // Number of errors since this instance was started.
  86. //
  87. // @OutputOnly
  88. Errors int32 `protobuf:"varint,10,opt,name=errors,proto3" json:"errors,omitempty"`
  89. // Average queries per second (QPS) over the last minute.
  90. //
  91. // @OutputOnly
  92. Qps float32 `protobuf:"fixed32,11,opt,name=qps,proto3" json:"qps,omitempty"`
  93. // Average latency (ms) over the last minute.
  94. //
  95. // @OutputOnly
  96. AverageLatency int32 `protobuf:"varint,12,opt,name=average_latency,json=averageLatency,proto3" json:"average_latency,omitempty"`
  97. // Total memory in use (bytes).
  98. //
  99. // @OutputOnly
  100. MemoryUsage int64 `protobuf:"varint,13,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"`
  101. // Status of the virtual machine where this instance lives. Only applicable
  102. // for instances in App Engine flexible environment.
  103. //
  104. // @OutputOnly
  105. VmStatus string `protobuf:"bytes,14,opt,name=vm_status,json=vmStatus,proto3" json:"vm_status,omitempty"`
  106. // Whether this instance is in debug mode. Only applicable for instances in
  107. // App Engine flexible environment.
  108. //
  109. // @OutputOnly
  110. VmDebugEnabled bool `protobuf:"varint,15,opt,name=vm_debug_enabled,json=vmDebugEnabled,proto3" json:"vm_debug_enabled,omitempty"`
  111. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  112. XXX_unrecognized []byte `json:"-"`
  113. XXX_sizecache int32 `json:"-"`
  114. }
  115. func (m *Instance) Reset() { *m = Instance{} }
  116. func (m *Instance) String() string { return proto.CompactTextString(m) }
  117. func (*Instance) ProtoMessage() {}
  118. func (*Instance) Descriptor() ([]byte, []int) {
  119. return fileDescriptor_instance_ed8fdb20d85c31c6, []int{0}
  120. }
  121. func (m *Instance) XXX_Unmarshal(b []byte) error {
  122. return xxx_messageInfo_Instance.Unmarshal(m, b)
  123. }
  124. func (m *Instance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  125. return xxx_messageInfo_Instance.Marshal(b, m, deterministic)
  126. }
  127. func (dst *Instance) XXX_Merge(src proto.Message) {
  128. xxx_messageInfo_Instance.Merge(dst, src)
  129. }
  130. func (m *Instance) XXX_Size() int {
  131. return xxx_messageInfo_Instance.Size(m)
  132. }
  133. func (m *Instance) XXX_DiscardUnknown() {
  134. xxx_messageInfo_Instance.DiscardUnknown(m)
  135. }
  136. var xxx_messageInfo_Instance proto.InternalMessageInfo
  137. func (m *Instance) GetName() string {
  138. if m != nil {
  139. return m.Name
  140. }
  141. return ""
  142. }
  143. func (m *Instance) GetId() string {
  144. if m != nil {
  145. return m.Id
  146. }
  147. return ""
  148. }
  149. func (m *Instance) GetAppEngineRelease() string {
  150. if m != nil {
  151. return m.AppEngineRelease
  152. }
  153. return ""
  154. }
  155. func (m *Instance) GetAvailability() Instance_Availability {
  156. if m != nil {
  157. return m.Availability
  158. }
  159. return Instance_UNSPECIFIED
  160. }
  161. func (m *Instance) GetVmName() string {
  162. if m != nil {
  163. return m.VmName
  164. }
  165. return ""
  166. }
  167. func (m *Instance) GetVmZoneName() string {
  168. if m != nil {
  169. return m.VmZoneName
  170. }
  171. return ""
  172. }
  173. func (m *Instance) GetVmId() string {
  174. if m != nil {
  175. return m.VmId
  176. }
  177. return ""
  178. }
  179. func (m *Instance) GetStartTime() *timestamp.Timestamp {
  180. if m != nil {
  181. return m.StartTime
  182. }
  183. return nil
  184. }
  185. func (m *Instance) GetRequests() int32 {
  186. if m != nil {
  187. return m.Requests
  188. }
  189. return 0
  190. }
  191. func (m *Instance) GetErrors() int32 {
  192. if m != nil {
  193. return m.Errors
  194. }
  195. return 0
  196. }
  197. func (m *Instance) GetQps() float32 {
  198. if m != nil {
  199. return m.Qps
  200. }
  201. return 0
  202. }
  203. func (m *Instance) GetAverageLatency() int32 {
  204. if m != nil {
  205. return m.AverageLatency
  206. }
  207. return 0
  208. }
  209. func (m *Instance) GetMemoryUsage() int64 {
  210. if m != nil {
  211. return m.MemoryUsage
  212. }
  213. return 0
  214. }
  215. func (m *Instance) GetVmStatus() string {
  216. if m != nil {
  217. return m.VmStatus
  218. }
  219. return ""
  220. }
  221. func (m *Instance) GetVmDebugEnabled() bool {
  222. if m != nil {
  223. return m.VmDebugEnabled
  224. }
  225. return false
  226. }
  227. func init() {
  228. proto.RegisterType((*Instance)(nil), "google.appengine.v1.Instance")
  229. proto.RegisterEnum("google.appengine.v1.Instance_Availability", Instance_Availability_name, Instance_Availability_value)
  230. }
  231. func init() {
  232. proto.RegisterFile("google/appengine/v1/instance.proto", fileDescriptor_instance_ed8fdb20d85c31c6)
  233. }
  234. var fileDescriptor_instance_ed8fdb20d85c31c6 = []byte{
  235. // 521 bytes of a gzipped FileDescriptorProto
  236. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x5d, 0x6b, 0xdb, 0x3c,
  237. 0x14, 0x7e, 0x9d, 0xb6, 0xa9, 0x73, 0xe2, 0x26, 0x46, 0x85, 0xb7, 0x22, 0x1b, 0xcc, 0xcb, 0xcd,
  238. 0xcc, 0x18, 0x36, 0xed, 0xae, 0xf6, 0x71, 0xd3, 0x36, 0x1e, 0x18, 0xb6, 0x10, 0x9c, 0xf6, 0x62,
  239. 0xbd, 0x31, 0x4a, 0xac, 0x79, 0x02, 0x4b, 0x72, 0x2d, 0x45, 0x90, 0xfd, 0xc6, 0xfd, 0xa8, 0x61,
  240. 0x39, 0x09, 0x2d, 0xf4, 0xce, 0xcf, 0xc7, 0x41, 0xcf, 0x79, 0x0e, 0x86, 0x69, 0x29, 0x65, 0x59,
  241. 0xd1, 0x98, 0xd4, 0x35, 0x15, 0x25, 0x13, 0x34, 0x36, 0x97, 0x31, 0x13, 0x4a, 0x13, 0xb1, 0xa6,
  242. 0x51, 0xdd, 0x48, 0x2d, 0xd1, 0x79, 0xe7, 0x89, 0x0e, 0x9e, 0xc8, 0x5c, 0x4e, 0x5e, 0x1f, 0x06,
  243. 0x59, 0x4c, 0x84, 0x90, 0x9a, 0x68, 0x26, 0x85, 0xea, 0x46, 0x26, 0x6f, 0x76, 0xaa, 0x45, 0xab,
  244. 0xcd, 0xaf, 0x58, 0x33, 0x4e, 0x95, 0x26, 0xbc, 0xee, 0x0c, 0xd3, 0xbf, 0xc7, 0xe0, 0xa6, 0xbb,
  245. 0x67, 0x10, 0x82, 0x63, 0x41, 0x38, 0xc5, 0x4e, 0xe0, 0x84, 0x83, 0xcc, 0x7e, 0xa3, 0x11, 0xf4,
  246. 0x58, 0x81, 0x7b, 0x96, 0xe9, 0xb1, 0x02, 0x7d, 0x00, 0x44, 0xea, 0x3a, 0xef, 0x02, 0xe4, 0x0d,
  247. 0xad, 0x28, 0x51, 0x14, 0x1f, 0x59, 0xdd, 0x27, 0x75, 0x9d, 0x58, 0x21, 0xeb, 0x78, 0x34, 0x07,
  248. 0x8f, 0x18, 0xc2, 0x2a, 0xb2, 0x62, 0x15, 0xd3, 0x5b, 0x7c, 0x1c, 0x38, 0xe1, 0xe8, 0xea, 0x7d,
  249. 0xf4, 0xc2, 0x26, 0xd1, 0x3e, 0x46, 0x74, 0xfd, 0x64, 0x22, 0x7b, 0x36, 0x8f, 0x2e, 0xe0, 0xd4,
  250. 0xf0, 0xdc, 0x86, 0x3c, 0xb1, 0x4f, 0xf6, 0x0d, 0x9f, 0xb7, 0x31, 0x03, 0xf0, 0x0c, 0xcf, 0xff,
  251. 0x48, 0x41, 0x3b, 0xb5, 0x6f, 0x55, 0x30, 0xfc, 0x41, 0x0a, 0x6a, 0x1d, 0xe7, 0x70, 0x62, 0x78,
  252. 0xce, 0x0a, 0x7c, 0xda, 0x6d, 0x67, 0x78, 0x5a, 0xa0, 0x4f, 0x00, 0x4a, 0x93, 0x46, 0xe7, 0x6d,
  253. 0x2f, 0xd8, 0x0d, 0x9c, 0x70, 0x78, 0x35, 0xd9, 0xa7, 0xdb, 0x97, 0x16, 0xdd, 0xed, 0x4b, 0xcb,
  254. 0x06, 0xd6, 0xdd, 0x62, 0x34, 0x01, 0xb7, 0xa1, 0x8f, 0x1b, 0xaa, 0xb4, 0xc2, 0x83, 0xc0, 0x09,
  255. 0x4f, 0xb2, 0x03, 0x46, 0xff, 0x43, 0x9f, 0x36, 0x8d, 0x6c, 0x14, 0x06, 0xab, 0xec, 0x10, 0xf2,
  256. 0xe1, 0xe8, 0xb1, 0x56, 0x78, 0x18, 0x38, 0x61, 0x2f, 0x6b, 0x3f, 0xd1, 0x3b, 0x18, 0x13, 0x43,
  257. 0x1b, 0x52, 0xd2, 0xbc, 0x22, 0x9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x88, 0x39, 0x03, 0x00, 0x00,
  269. }