modules_service.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. // Code generated by protoc-gen-go.
  2. // source: google.golang.org/appengine/internal/modules/modules_service.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package modules is a generated protocol buffer package.
  6. It is generated from these files:
  7. google.golang.org/appengine/internal/modules/modules_service.proto
  8. It has these top-level messages:
  9. ModulesServiceError
  10. GetModulesRequest
  11. GetModulesResponse
  12. GetVersionsRequest
  13. GetVersionsResponse
  14. GetDefaultVersionRequest
  15. GetDefaultVersionResponse
  16. GetNumInstancesRequest
  17. GetNumInstancesResponse
  18. SetNumInstancesRequest
  19. SetNumInstancesResponse
  20. StartModuleRequest
  21. StartModuleResponse
  22. StopModuleRequest
  23. StopModuleResponse
  24. GetHostnameRequest
  25. GetHostnameResponse
  26. */
  27. package modules
  28. import proto "github.com/golang/protobuf/proto"
  29. import fmt "fmt"
  30. import math "math"
  31. // Reference imports to suppress errors if they are not otherwise used.
  32. var _ = proto.Marshal
  33. var _ = fmt.Errorf
  34. var _ = math.Inf
  35. type ModulesServiceError_ErrorCode int32
  36. const (
  37. ModulesServiceError_OK ModulesServiceError_ErrorCode = 0
  38. ModulesServiceError_INVALID_MODULE ModulesServiceError_ErrorCode = 1
  39. ModulesServiceError_INVALID_VERSION ModulesServiceError_ErrorCode = 2
  40. ModulesServiceError_INVALID_INSTANCES ModulesServiceError_ErrorCode = 3
  41. ModulesServiceError_TRANSIENT_ERROR ModulesServiceError_ErrorCode = 4
  42. ModulesServiceError_UNEXPECTED_STATE ModulesServiceError_ErrorCode = 5
  43. )
  44. var ModulesServiceError_ErrorCode_name = map[int32]string{
  45. 0: "OK",
  46. 1: "INVALID_MODULE",
  47. 2: "INVALID_VERSION",
  48. 3: "INVALID_INSTANCES",
  49. 4: "TRANSIENT_ERROR",
  50. 5: "UNEXPECTED_STATE",
  51. }
  52. var ModulesServiceError_ErrorCode_value = map[string]int32{
  53. "OK": 0,
  54. "INVALID_MODULE": 1,
  55. "INVALID_VERSION": 2,
  56. "INVALID_INSTANCES": 3,
  57. "TRANSIENT_ERROR": 4,
  58. "UNEXPECTED_STATE": 5,
  59. }
  60. func (x ModulesServiceError_ErrorCode) Enum() *ModulesServiceError_ErrorCode {
  61. p := new(ModulesServiceError_ErrorCode)
  62. *p = x
  63. return p
  64. }
  65. func (x ModulesServiceError_ErrorCode) String() string {
  66. return proto.EnumName(ModulesServiceError_ErrorCode_name, int32(x))
  67. }
  68. func (x *ModulesServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
  69. value, err := proto.UnmarshalJSONEnum(ModulesServiceError_ErrorCode_value, data, "ModulesServiceError_ErrorCode")
  70. if err != nil {
  71. return err
  72. }
  73. *x = ModulesServiceError_ErrorCode(value)
  74. return nil
  75. }
  76. type ModulesServiceError struct {
  77. XXX_unrecognized []byte `json:"-"`
  78. }
  79. func (m *ModulesServiceError) Reset() { *m = ModulesServiceError{} }
  80. func (m *ModulesServiceError) String() string { return proto.CompactTextString(m) }
  81. func (*ModulesServiceError) ProtoMessage() {}
  82. type GetModulesRequest struct {
  83. XXX_unrecognized []byte `json:"-"`
  84. }
  85. func (m *GetModulesRequest) Reset() { *m = GetModulesRequest{} }
  86. func (m *GetModulesRequest) String() string { return proto.CompactTextString(m) }
  87. func (*GetModulesRequest) ProtoMessage() {}
  88. type GetModulesResponse struct {
  89. Module []string `protobuf:"bytes,1,rep,name=module" json:"module,omitempty"`
  90. XXX_unrecognized []byte `json:"-"`
  91. }
  92. func (m *GetModulesResponse) Reset() { *m = GetModulesResponse{} }
  93. func (m *GetModulesResponse) String() string { return proto.CompactTextString(m) }
  94. func (*GetModulesResponse) ProtoMessage() {}
  95. func (m *GetModulesResponse) GetModule() []string {
  96. if m != nil {
  97. return m.Module
  98. }
  99. return nil
  100. }
  101. type GetVersionsRequest struct {
  102. Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
  103. XXX_unrecognized []byte `json:"-"`
  104. }
  105. func (m *GetVersionsRequest) Reset() { *m = GetVersionsRequest{} }
  106. func (m *GetVersionsRequest) String() string { return proto.CompactTextString(m) }
  107. func (*GetVersionsRequest) ProtoMessage() {}
  108. func (m *GetVersionsRequest) GetModule() string {
  109. if m != nil && m.Module != nil {
  110. return *m.Module
  111. }
  112. return ""
  113. }
  114. type GetVersionsResponse struct {
  115. Version []string `protobuf:"bytes,1,rep,name=version" json:"version,omitempty"`
  116. XXX_unrecognized []byte `json:"-"`
  117. }
  118. func (m *GetVersionsResponse) Reset() { *m = GetVersionsResponse{} }
  119. func (m *GetVersionsResponse) String() string { return proto.CompactTextString(m) }
  120. func (*GetVersionsResponse) ProtoMessage() {}
  121. func (m *GetVersionsResponse) GetVersion() []string {
  122. if m != nil {
  123. return m.Version
  124. }
  125. return nil
  126. }
  127. type GetDefaultVersionRequest struct {
  128. Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
  129. XXX_unrecognized []byte `json:"-"`
  130. }
  131. func (m *GetDefaultVersionRequest) Reset() { *m = GetDefaultVersionRequest{} }
  132. func (m *GetDefaultVersionRequest) String() string { return proto.CompactTextString(m) }
  133. func (*GetDefaultVersionRequest) ProtoMessage() {}
  134. func (m *GetDefaultVersionRequest) GetModule() string {
  135. if m != nil && m.Module != nil {
  136. return *m.Module
  137. }
  138. return ""
  139. }
  140. type GetDefaultVersionResponse struct {
  141. Version *string `protobuf:"bytes,1,req,name=version" json:"version,omitempty"`
  142. XXX_unrecognized []byte `json:"-"`
  143. }
  144. func (m *GetDefaultVersionResponse) Reset() { *m = GetDefaultVersionResponse{} }
  145. func (m *GetDefaultVersionResponse) String() string { return proto.CompactTextString(m) }
  146. func (*GetDefaultVersionResponse) ProtoMessage() {}
  147. func (m *GetDefaultVersionResponse) GetVersion() string {
  148. if m != nil && m.Version != nil {
  149. return *m.Version
  150. }
  151. return ""
  152. }
  153. type GetNumInstancesRequest struct {
  154. Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
  155. Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
  156. XXX_unrecognized []byte `json:"-"`
  157. }
  158. func (m *GetNumInstancesRequest) Reset() { *m = GetNumInstancesRequest{} }
  159. func (m *GetNumInstancesRequest) String() string { return proto.CompactTextString(m) }
  160. func (*GetNumInstancesRequest) ProtoMessage() {}
  161. func (m *GetNumInstancesRequest) GetModule() string {
  162. if m != nil && m.Module != nil {
  163. return *m.Module
  164. }
  165. return ""
  166. }
  167. func (m *GetNumInstancesRequest) GetVersion() string {
  168. if m != nil && m.Version != nil {
  169. return *m.Version
  170. }
  171. return ""
  172. }
  173. type GetNumInstancesResponse struct {
  174. Instances *int64 `protobuf:"varint,1,req,name=instances" json:"instances,omitempty"`
  175. XXX_unrecognized []byte `json:"-"`
  176. }
  177. func (m *GetNumInstancesResponse) Reset() { *m = GetNumInstancesResponse{} }
  178. func (m *GetNumInstancesResponse) String() string { return proto.CompactTextString(m) }
  179. func (*GetNumInstancesResponse) ProtoMessage() {}
  180. func (m *GetNumInstancesResponse) GetInstances() int64 {
  181. if m != nil && m.Instances != nil {
  182. return *m.Instances
  183. }
  184. return 0
  185. }
  186. type SetNumInstancesRequest struct {
  187. Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
  188. Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
  189. Instances *int64 `protobuf:"varint,3,req,name=instances" json:"instances,omitempty"`
  190. XXX_unrecognized []byte `json:"-"`
  191. }
  192. func (m *SetNumInstancesRequest) Reset() { *m = SetNumInstancesRequest{} }
  193. func (m *SetNumInstancesRequest) String() string { return proto.CompactTextString(m) }
  194. func (*SetNumInstancesRequest) ProtoMessage() {}
  195. func (m *SetNumInstancesRequest) GetModule() string {
  196. if m != nil && m.Module != nil {
  197. return *m.Module
  198. }
  199. return ""
  200. }
  201. func (m *SetNumInstancesRequest) GetVersion() string {
  202. if m != nil && m.Version != nil {
  203. return *m.Version
  204. }
  205. return ""
  206. }
  207. func (m *SetNumInstancesRequest) GetInstances() int64 {
  208. if m != nil && m.Instances != nil {
  209. return *m.Instances
  210. }
  211. return 0
  212. }
  213. type SetNumInstancesResponse struct {
  214. XXX_unrecognized []byte `json:"-"`
  215. }
  216. func (m *SetNumInstancesResponse) Reset() { *m = SetNumInstancesResponse{} }
  217. func (m *SetNumInstancesResponse) String() string { return proto.CompactTextString(m) }
  218. func (*SetNumInstancesResponse) ProtoMessage() {}
  219. type StartModuleRequest struct {
  220. Module *string `protobuf:"bytes,1,req,name=module" json:"module,omitempty"`
  221. Version *string `protobuf:"bytes,2,req,name=version" json:"version,omitempty"`
  222. XXX_unrecognized []byte `json:"-"`
  223. }
  224. func (m *StartModuleRequest) Reset() { *m = StartModuleRequest{} }
  225. func (m *StartModuleRequest) String() string { return proto.CompactTextString(m) }
  226. func (*StartModuleRequest) ProtoMessage() {}
  227. func (m *StartModuleRequest) GetModule() string {
  228. if m != nil && m.Module != nil {
  229. return *m.Module
  230. }
  231. return ""
  232. }
  233. func (m *StartModuleRequest) GetVersion() string {
  234. if m != nil && m.Version != nil {
  235. return *m.Version
  236. }
  237. return ""
  238. }
  239. type StartModuleResponse struct {
  240. XXX_unrecognized []byte `json:"-"`
  241. }
  242. func (m *StartModuleResponse) Reset() { *m = StartModuleResponse{} }
  243. func (m *StartModuleResponse) String() string { return proto.CompactTextString(m) }
  244. func (*StartModuleResponse) ProtoMessage() {}
  245. type StopModuleRequest struct {
  246. Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
  247. Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
  248. XXX_unrecognized []byte `json:"-"`
  249. }
  250. func (m *StopModuleRequest) Reset() { *m = StopModuleRequest{} }
  251. func (m *StopModuleRequest) String() string { return proto.CompactTextString(m) }
  252. func (*StopModuleRequest) ProtoMessage() {}
  253. func (m *StopModuleRequest) GetModule() string {
  254. if m != nil && m.Module != nil {
  255. return *m.Module
  256. }
  257. return ""
  258. }
  259. func (m *StopModuleRequest) GetVersion() string {
  260. if m != nil && m.Version != nil {
  261. return *m.Version
  262. }
  263. return ""
  264. }
  265. type StopModuleResponse struct {
  266. XXX_unrecognized []byte `json:"-"`
  267. }
  268. func (m *StopModuleResponse) Reset() { *m = StopModuleResponse{} }
  269. func (m *StopModuleResponse) String() string { return proto.CompactTextString(m) }
  270. func (*StopModuleResponse) ProtoMessage() {}
  271. type GetHostnameRequest struct {
  272. Module *string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
  273. Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
  274. Instance *string `protobuf:"bytes,3,opt,name=instance" json:"instance,omitempty"`
  275. XXX_unrecognized []byte `json:"-"`
  276. }
  277. func (m *GetHostnameRequest) Reset() { *m = GetHostnameRequest{} }
  278. func (m *GetHostnameRequest) String() string { return proto.CompactTextString(m) }
  279. func (*GetHostnameRequest) ProtoMessage() {}
  280. func (m *GetHostnameRequest) GetModule() string {
  281. if m != nil && m.Module != nil {
  282. return *m.Module
  283. }
  284. return ""
  285. }
  286. func (m *GetHostnameRequest) GetVersion() string {
  287. if m != nil && m.Version != nil {
  288. return *m.Version
  289. }
  290. return ""
  291. }
  292. func (m *GetHostnameRequest) GetInstance() string {
  293. if m != nil && m.Instance != nil {
  294. return *m.Instance
  295. }
  296. return ""
  297. }
  298. type GetHostnameResponse struct {
  299. Hostname *string `protobuf:"bytes,1,req,name=hostname" json:"hostname,omitempty"`
  300. XXX_unrecognized []byte `json:"-"`
  301. }
  302. func (m *GetHostnameResponse) Reset() { *m = GetHostnameResponse{} }
  303. func (m *GetHostnameResponse) String() string { return proto.CompactTextString(m) }
  304. func (*GetHostnameResponse) ProtoMessage() {}
  305. func (m *GetHostnameResponse) GetHostname() string {
  306. if m != nil && m.Hostname != nil {
  307. return *m.Hostname
  308. }
  309. return ""
  310. }
  311. func init() {
  312. }