/appengine_internal/xmpp/xmpp_service.pb.go

https://code.google.com/p/appengine-go/ · Go · 202 lines · 164 code · 35 blank · 3 comment · 0 complexity · fbbcdf37b451a3aeca73d2ac9c74d8ea MD5 · raw file

  1. // Code generated by protoc-gen-go from "xmpp_service.proto"
  2. // DO NOT EDIT!
  3. package appengine
  4. import proto "code.google.com/p/goprotobuf/proto"
  5. import "math"
  6. // Reference proto and math imports to suppress error if they are not otherwise used.
  7. var _ = proto.GetString
  8. var _ = math.Inf
  9. type XmppServiceError_ErrorCode int32
  10. const (
  11. XmppServiceError_UNSPECIFIED_ERROR XmppServiceError_ErrorCode = 1
  12. XmppServiceError_INVALID_JID XmppServiceError_ErrorCode = 2
  13. XmppServiceError_NO_BODY XmppServiceError_ErrorCode = 3
  14. XmppServiceError_INVALID_XML XmppServiceError_ErrorCode = 4
  15. XmppServiceError_INVALID_TYPE XmppServiceError_ErrorCode = 5
  16. XmppServiceError_INVALID_SHOW XmppServiceError_ErrorCode = 6
  17. XmppServiceError_EXCEEDED_MAX_SIZE XmppServiceError_ErrorCode = 7
  18. XmppServiceError_APPID_ALIAS_REQUIRED XmppServiceError_ErrorCode = 8
  19. )
  20. var XmppServiceError_ErrorCode_name = map[int32]string{
  21. 1: "UNSPECIFIED_ERROR",
  22. 2: "INVALID_JID",
  23. 3: "NO_BODY",
  24. 4: "INVALID_XML",
  25. 5: "INVALID_TYPE",
  26. 6: "INVALID_SHOW",
  27. 7: "EXCEEDED_MAX_SIZE",
  28. 8: "APPID_ALIAS_REQUIRED",
  29. }
  30. var XmppServiceError_ErrorCode_value = map[string]int32{
  31. "UNSPECIFIED_ERROR": 1,
  32. "INVALID_JID": 2,
  33. "NO_BODY": 3,
  34. "INVALID_XML": 4,
  35. "INVALID_TYPE": 5,
  36. "INVALID_SHOW": 6,
  37. "EXCEEDED_MAX_SIZE": 7,
  38. "APPID_ALIAS_REQUIRED": 8,
  39. }
  40. func NewXmppServiceError_ErrorCode(x XmppServiceError_ErrorCode) *XmppServiceError_ErrorCode {
  41. e := XmppServiceError_ErrorCode(x)
  42. return &e
  43. }
  44. func (x XmppServiceError_ErrorCode) String() string {
  45. return proto.EnumName(XmppServiceError_ErrorCode_name, int32(x))
  46. }
  47. type PresenceResponse_SHOW int32
  48. const (
  49. PresenceResponse_NORMAL PresenceResponse_SHOW = 0
  50. PresenceResponse_AWAY PresenceResponse_SHOW = 1
  51. PresenceResponse_DO_NOT_DISTURB PresenceResponse_SHOW = 2
  52. PresenceResponse_CHAT PresenceResponse_SHOW = 3
  53. PresenceResponse_EXTENDED_AWAY PresenceResponse_SHOW = 4
  54. )
  55. var PresenceResponse_SHOW_name = map[int32]string{
  56. 0: "NORMAL",
  57. 1: "AWAY",
  58. 2: "DO_NOT_DISTURB",
  59. 3: "CHAT",
  60. 4: "EXTENDED_AWAY",
  61. }
  62. var PresenceResponse_SHOW_value = map[string]int32{
  63. "NORMAL": 0,
  64. "AWAY": 1,
  65. "DO_NOT_DISTURB": 2,
  66. "CHAT": 3,
  67. "EXTENDED_AWAY": 4,
  68. }
  69. func NewPresenceResponse_SHOW(x PresenceResponse_SHOW) *PresenceResponse_SHOW {
  70. e := PresenceResponse_SHOW(x)
  71. return &e
  72. }
  73. func (x PresenceResponse_SHOW) String() string {
  74. return proto.EnumName(PresenceResponse_SHOW_name, int32(x))
  75. }
  76. type XmppMessageResponse_XmppMessageStatus int32
  77. const (
  78. XmppMessageResponse_NO_ERROR XmppMessageResponse_XmppMessageStatus = 0
  79. XmppMessageResponse_INVALID_JID XmppMessageResponse_XmppMessageStatus = 1
  80. XmppMessageResponse_OTHER_ERROR XmppMessageResponse_XmppMessageStatus = 2
  81. )
  82. var XmppMessageResponse_XmppMessageStatus_name = map[int32]string{
  83. 0: "NO_ERROR",
  84. 1: "INVALID_JID",
  85. 2: "OTHER_ERROR",
  86. }
  87. var XmppMessageResponse_XmppMessageStatus_value = map[string]int32{
  88. "NO_ERROR": 0,
  89. "INVALID_JID": 1,
  90. "OTHER_ERROR": 2,
  91. }
  92. func NewXmppMessageResponse_XmppMessageStatus(x XmppMessageResponse_XmppMessageStatus) *XmppMessageResponse_XmppMessageStatus {
  93. e := XmppMessageResponse_XmppMessageStatus(x)
  94. return &e
  95. }
  96. func (x XmppMessageResponse_XmppMessageStatus) String() string {
  97. return proto.EnumName(XmppMessageResponse_XmppMessageStatus_name, int32(x))
  98. }
  99. type XmppServiceError struct {
  100. XXX_unrecognized []byte `json:"-"`
  101. }
  102. func (this *XmppServiceError) Reset() { *this = XmppServiceError{} }
  103. func (this *XmppServiceError) String() string { return proto.CompactTextString(this) }
  104. type PresenceRequest struct {
  105. Jid *string `protobuf:"bytes,1,req,name=jid" json:"jid,omitempty"`
  106. FromJid *string `protobuf:"bytes,2,opt,name=from_jid" json:"from_jid,omitempty"`
  107. XXX_unrecognized []byte `json:"-"`
  108. }
  109. func (this *PresenceRequest) Reset() { *this = PresenceRequest{} }
  110. func (this *PresenceRequest) String() string { return proto.CompactTextString(this) }
  111. type PresenceResponse struct {
  112. IsAvailable *bool `protobuf:"varint,1,req,name=is_available" json:"is_available,omitempty"`
  113. Presence *PresenceResponse_SHOW `protobuf:"varint,2,opt,name=presence,enum=appengine.PresenceResponse_SHOW" json:"presence,omitempty"`
  114. XXX_unrecognized []byte `json:"-"`
  115. }
  116. func (this *PresenceResponse) Reset() { *this = PresenceResponse{} }
  117. func (this *PresenceResponse) String() string { return proto.CompactTextString(this) }
  118. type XmppMessageRequest struct {
  119. Jid []string `protobuf:"bytes,1,rep,name=jid" json:"jid,omitempty"`
  120. Body *string `protobuf:"bytes,2,req,name=body" json:"body,omitempty"`
  121. RawXml *bool `protobuf:"varint,3,opt,name=raw_xml,def=0" json:"raw_xml,omitempty"`
  122. Type *string `protobuf:"bytes,4,opt,name=type,def=chat" json:"type,omitempty"`
  123. FromJid *string `protobuf:"bytes,5,opt,name=from_jid" json:"from_jid,omitempty"`
  124. XXX_unrecognized []byte `json:"-"`
  125. }
  126. func (this *XmppMessageRequest) Reset() { *this = XmppMessageRequest{} }
  127. func (this *XmppMessageRequest) String() string { return proto.CompactTextString(this) }
  128. const Default_XmppMessageRequest_RawXml bool = false
  129. const Default_XmppMessageRequest_Type string = "chat"
  130. type XmppMessageResponse struct {
  131. Status []XmppMessageResponse_XmppMessageStatus `protobuf:"varint,1,rep,name=status,enum=appengine.XmppMessageResponse_XmppMessageStatus" json:"status,omitempty"`
  132. XXX_unrecognized []byte `json:"-"`
  133. }
  134. func (this *XmppMessageResponse) Reset() { *this = XmppMessageResponse{} }
  135. func (this *XmppMessageResponse) String() string { return proto.CompactTextString(this) }
  136. type XmppSendPresenceRequest struct {
  137. Jid *string `protobuf:"bytes,1,req,name=jid" json:"jid,omitempty"`
  138. Type *string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
  139. Show *string `protobuf:"bytes,3,opt,name=show" json:"show,omitempty"`
  140. Status *string `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"`
  141. FromJid *string `protobuf:"bytes,5,opt,name=from_jid" json:"from_jid,omitempty"`
  142. XXX_unrecognized []byte `json:"-"`
  143. }
  144. func (this *XmppSendPresenceRequest) Reset() { *this = XmppSendPresenceRequest{} }
  145. func (this *XmppSendPresenceRequest) String() string { return proto.CompactTextString(this) }
  146. type XmppSendPresenceResponse struct {
  147. XXX_unrecognized []byte `json:"-"`
  148. }
  149. func (this *XmppSendPresenceResponse) Reset() { *this = XmppSendPresenceResponse{} }
  150. func (this *XmppSendPresenceResponse) String() string { return proto.CompactTextString(this) }
  151. type XmppInviteRequest struct {
  152. Jid *string `protobuf:"bytes,1,req,name=jid" json:"jid,omitempty"`
  153. FromJid *string `protobuf:"bytes,2,opt,name=from_jid" json:"from_jid,omitempty"`
  154. XXX_unrecognized []byte `json:"-"`
  155. }
  156. func (this *XmppInviteRequest) Reset() { *this = XmppInviteRequest{} }
  157. func (this *XmppInviteRequest) String() string { return proto.CompactTextString(this) }
  158. type XmppInviteResponse struct {
  159. XXX_unrecognized []byte `json:"-"`
  160. }
  161. func (this *XmppInviteResponse) Reset() { *this = XmppInviteResponse{} }
  162. func (this *XmppInviteResponse) String() string { return proto.CompactTextString(this) }
  163. func init() {
  164. proto.RegisterEnum("appengine.XmppServiceError_ErrorCode", XmppServiceError_ErrorCode_name, XmppServiceError_ErrorCode_value)
  165. proto.RegisterEnum("appengine.PresenceResponse_SHOW", PresenceResponse_SHOW_name, PresenceResponse_SHOW_value)
  166. proto.RegisterEnum("appengine.XmppMessageResponse_XmppMessageStatus", XmppMessageResponse_XmppMessageStatus_name, XmppMessageResponse_XmppMessageStatus_value)
  167. }