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