remote_api.pb.go 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. // Code generated by protoc-gen-go.
  2. // source: google.golang.org/appengine/internal/remote_api/remote_api.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package remote_api is a generated protocol buffer package.
  6. It is generated from these files:
  7. google.golang.org/appengine/internal/remote_api/remote_api.proto
  8. It has these top-level messages:
  9. Request
  10. ApplicationError
  11. RpcError
  12. Response
  13. */
  14. package remote_api
  15. import proto "github.com/golang/protobuf/proto"
  16. import fmt "fmt"
  17. import math "math"
  18. // Reference imports to suppress errors if they are not otherwise used.
  19. var _ = proto.Marshal
  20. var _ = fmt.Errorf
  21. var _ = math.Inf
  22. type RpcError_ErrorCode int32
  23. const (
  24. RpcError_UNKNOWN RpcError_ErrorCode = 0
  25. RpcError_CALL_NOT_FOUND RpcError_ErrorCode = 1
  26. RpcError_PARSE_ERROR RpcError_ErrorCode = 2
  27. RpcError_SECURITY_VIOLATION RpcError_ErrorCode = 3
  28. RpcError_OVER_QUOTA RpcError_ErrorCode = 4
  29. RpcError_REQUEST_TOO_LARGE RpcError_ErrorCode = 5
  30. RpcError_CAPABILITY_DISABLED RpcError_ErrorCode = 6
  31. RpcError_FEATURE_DISABLED RpcError_ErrorCode = 7
  32. RpcError_BAD_REQUEST RpcError_ErrorCode = 8
  33. RpcError_RESPONSE_TOO_LARGE RpcError_ErrorCode = 9
  34. RpcError_CANCELLED RpcError_ErrorCode = 10
  35. RpcError_REPLAY_ERROR RpcError_ErrorCode = 11
  36. RpcError_DEADLINE_EXCEEDED RpcError_ErrorCode = 12
  37. )
  38. var RpcError_ErrorCode_name = map[int32]string{
  39. 0: "UNKNOWN",
  40. 1: "CALL_NOT_FOUND",
  41. 2: "PARSE_ERROR",
  42. 3: "SECURITY_VIOLATION",
  43. 4: "OVER_QUOTA",
  44. 5: "REQUEST_TOO_LARGE",
  45. 6: "CAPABILITY_DISABLED",
  46. 7: "FEATURE_DISABLED",
  47. 8: "BAD_REQUEST",
  48. 9: "RESPONSE_TOO_LARGE",
  49. 10: "CANCELLED",
  50. 11: "REPLAY_ERROR",
  51. 12: "DEADLINE_EXCEEDED",
  52. }
  53. var RpcError_ErrorCode_value = map[string]int32{
  54. "UNKNOWN": 0,
  55. "CALL_NOT_FOUND": 1,
  56. "PARSE_ERROR": 2,
  57. "SECURITY_VIOLATION": 3,
  58. "OVER_QUOTA": 4,
  59. "REQUEST_TOO_LARGE": 5,
  60. "CAPABILITY_DISABLED": 6,
  61. "FEATURE_DISABLED": 7,
  62. "BAD_REQUEST": 8,
  63. "RESPONSE_TOO_LARGE": 9,
  64. "CANCELLED": 10,
  65. "REPLAY_ERROR": 11,
  66. "DEADLINE_EXCEEDED": 12,
  67. }
  68. func (x RpcError_ErrorCode) Enum() *RpcError_ErrorCode {
  69. p := new(RpcError_ErrorCode)
  70. *p = x
  71. return p
  72. }
  73. func (x RpcError_ErrorCode) String() string {
  74. return proto.EnumName(RpcError_ErrorCode_name, int32(x))
  75. }
  76. func (x *RpcError_ErrorCode) UnmarshalJSON(data []byte) error {
  77. value, err := proto.UnmarshalJSONEnum(RpcError_ErrorCode_value, data, "RpcError_ErrorCode")
  78. if err != nil {
  79. return err
  80. }
  81. *x = RpcError_ErrorCode(value)
  82. return nil
  83. }
  84. type Request struct {
  85. ServiceName *string `protobuf:"bytes,2,req,name=service_name" json:"service_name,omitempty"`
  86. Method *string `protobuf:"bytes,3,req,name=method" json:"method,omitempty"`
  87. Request []byte `protobuf:"bytes,4,req,name=request" json:"request,omitempty"`
  88. RequestId *string `protobuf:"bytes,5,opt,name=request_id" json:"request_id,omitempty"`
  89. XXX_unrecognized []byte `json:"-"`
  90. }
  91. func (m *Request) Reset() { *m = Request{} }
  92. func (m *Request) String() string { return proto.CompactTextString(m) }
  93. func (*Request) ProtoMessage() {}
  94. func (m *Request) GetServiceName() string {
  95. if m != nil && m.ServiceName != nil {
  96. return *m.ServiceName
  97. }
  98. return ""
  99. }
  100. func (m *Request) GetMethod() string {
  101. if m != nil && m.Method != nil {
  102. return *m.Method
  103. }
  104. return ""
  105. }
  106. func (m *Request) GetRequest() []byte {
  107. if m != nil {
  108. return m.Request
  109. }
  110. return nil
  111. }
  112. func (m *Request) GetRequestId() string {
  113. if m != nil && m.RequestId != nil {
  114. return *m.RequestId
  115. }
  116. return ""
  117. }
  118. type ApplicationError struct {
  119. Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"`
  120. Detail *string `protobuf:"bytes,2,req,name=detail" json:"detail,omitempty"`
  121. XXX_unrecognized []byte `json:"-"`
  122. }
  123. func (m *ApplicationError) Reset() { *m = ApplicationError{} }
  124. func (m *ApplicationError) String() string { return proto.CompactTextString(m) }
  125. func (*ApplicationError) ProtoMessage() {}
  126. func (m *ApplicationError) GetCode() int32 {
  127. if m != nil && m.Code != nil {
  128. return *m.Code
  129. }
  130. return 0
  131. }
  132. func (m *ApplicationError) GetDetail() string {
  133. if m != nil && m.Detail != nil {
  134. return *m.Detail
  135. }
  136. return ""
  137. }
  138. type RpcError struct {
  139. Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"`
  140. Detail *string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"`
  141. XXX_unrecognized []byte `json:"-"`
  142. }
  143. func (m *RpcError) Reset() { *m = RpcError{} }
  144. func (m *RpcError) String() string { return proto.CompactTextString(m) }
  145. func (*RpcError) ProtoMessage() {}
  146. func (m *RpcError) GetCode() int32 {
  147. if m != nil && m.Code != nil {
  148. return *m.Code
  149. }
  150. return 0
  151. }
  152. func (m *RpcError) GetDetail() string {
  153. if m != nil && m.Detail != nil {
  154. return *m.Detail
  155. }
  156. return ""
  157. }
  158. type Response struct {
  159. Response []byte `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
  160. Exception []byte `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"`
  161. ApplicationError *ApplicationError `protobuf:"bytes,3,opt,name=application_error" json:"application_error,omitempty"`
  162. JavaException []byte `protobuf:"bytes,4,opt,name=java_exception" json:"java_exception,omitempty"`
  163. RpcError *RpcError `protobuf:"bytes,5,opt,name=rpc_error" json:"rpc_error,omitempty"`
  164. XXX_unrecognized []byte `json:"-"`
  165. }
  166. func (m *Response) Reset() { *m = Response{} }
  167. func (m *Response) String() string { return proto.CompactTextString(m) }
  168. func (*Response) ProtoMessage() {}
  169. func (m *Response) GetResponse() []byte {
  170. if m != nil {
  171. return m.Response
  172. }
  173. return nil
  174. }
  175. func (m *Response) GetException() []byte {
  176. if m != nil {
  177. return m.Exception
  178. }
  179. return nil
  180. }
  181. func (m *Response) GetApplicationError() *ApplicationError {
  182. if m != nil {
  183. return m.ApplicationError
  184. }
  185. return nil
  186. }
  187. func (m *Response) GetJavaException() []byte {
  188. if m != nil {
  189. return m.JavaException
  190. }
  191. return nil
  192. }
  193. func (m *Response) GetRpcError() *RpcError {
  194. if m != nil {
  195. return m.RpcError
  196. }
  197. return nil
  198. }
  199. func init() {
  200. }