channel_service.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google.golang.org/appengine/internal/channel/channel_service.proto
  3. package channel
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type ChannelServiceError_ErrorCode int32
  17. const (
  18. ChannelServiceError_OK ChannelServiceError_ErrorCode = 0
  19. ChannelServiceError_INTERNAL_ERROR ChannelServiceError_ErrorCode = 1
  20. ChannelServiceError_INVALID_CHANNEL_KEY ChannelServiceError_ErrorCode = 2
  21. ChannelServiceError_BAD_MESSAGE ChannelServiceError_ErrorCode = 3
  22. ChannelServiceError_INVALID_CHANNEL_TOKEN_DURATION ChannelServiceError_ErrorCode = 4
  23. ChannelServiceError_APPID_ALIAS_REQUIRED ChannelServiceError_ErrorCode = 5
  24. )
  25. var ChannelServiceError_ErrorCode_name = map[int32]string{
  26. 0: "OK",
  27. 1: "INTERNAL_ERROR",
  28. 2: "INVALID_CHANNEL_KEY",
  29. 3: "BAD_MESSAGE",
  30. 4: "INVALID_CHANNEL_TOKEN_DURATION",
  31. 5: "APPID_ALIAS_REQUIRED",
  32. }
  33. var ChannelServiceError_ErrorCode_value = map[string]int32{
  34. "OK": 0,
  35. "INTERNAL_ERROR": 1,
  36. "INVALID_CHANNEL_KEY": 2,
  37. "BAD_MESSAGE": 3,
  38. "INVALID_CHANNEL_TOKEN_DURATION": 4,
  39. "APPID_ALIAS_REQUIRED": 5,
  40. }
  41. func (x ChannelServiceError_ErrorCode) Enum() *ChannelServiceError_ErrorCode {
  42. p := new(ChannelServiceError_ErrorCode)
  43. *p = x
  44. return p
  45. }
  46. func (x ChannelServiceError_ErrorCode) String() string {
  47. return proto.EnumName(ChannelServiceError_ErrorCode_name, int32(x))
  48. }
  49. func (x *ChannelServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
  50. value, err := proto.UnmarshalJSONEnum(ChannelServiceError_ErrorCode_value, data, "ChannelServiceError_ErrorCode")
  51. if err != nil {
  52. return err
  53. }
  54. *x = ChannelServiceError_ErrorCode(value)
  55. return nil
  56. }
  57. func (ChannelServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) {
  58. return fileDescriptor_channel_service_a8d15e05b34664a9, []int{0, 0}
  59. }
  60. type ChannelServiceError struct {
  61. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  62. XXX_unrecognized []byte `json:"-"`
  63. XXX_sizecache int32 `json:"-"`
  64. }
  65. func (m *ChannelServiceError) Reset() { *m = ChannelServiceError{} }
  66. func (m *ChannelServiceError) String() string { return proto.CompactTextString(m) }
  67. func (*ChannelServiceError) ProtoMessage() {}
  68. func (*ChannelServiceError) Descriptor() ([]byte, []int) {
  69. return fileDescriptor_channel_service_a8d15e05b34664a9, []int{0}
  70. }
  71. func (m *ChannelServiceError) XXX_Unmarshal(b []byte) error {
  72. return xxx_messageInfo_ChannelServiceError.Unmarshal(m, b)
  73. }
  74. func (m *ChannelServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  75. return xxx_messageInfo_ChannelServiceError.Marshal(b, m, deterministic)
  76. }
  77. func (dst *ChannelServiceError) XXX_Merge(src proto.Message) {
  78. xxx_messageInfo_ChannelServiceError.Merge(dst, src)
  79. }
  80. func (m *ChannelServiceError) XXX_Size() int {
  81. return xxx_messageInfo_ChannelServiceError.Size(m)
  82. }
  83. func (m *ChannelServiceError) XXX_DiscardUnknown() {
  84. xxx_messageInfo_ChannelServiceError.DiscardUnknown(m)
  85. }
  86. var xxx_messageInfo_ChannelServiceError proto.InternalMessageInfo
  87. type CreateChannelRequest struct {
  88. ApplicationKey *string `protobuf:"bytes,1,req,name=application_key,json=applicationKey" json:"application_key,omitempty"`
  89. DurationMinutes *int32 `protobuf:"varint,2,opt,name=duration_minutes,json=durationMinutes" json:"duration_minutes,omitempty"`
  90. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  91. XXX_unrecognized []byte `json:"-"`
  92. XXX_sizecache int32 `json:"-"`
  93. }
  94. func (m *CreateChannelRequest) Reset() { *m = CreateChannelRequest{} }
  95. func (m *CreateChannelRequest) String() string { return proto.CompactTextString(m) }
  96. func (*CreateChannelRequest) ProtoMessage() {}
  97. func (*CreateChannelRequest) Descriptor() ([]byte, []int) {
  98. return fileDescriptor_channel_service_a8d15e05b34664a9, []int{1}
  99. }
  100. func (m *CreateChannelRequest) XXX_Unmarshal(b []byte) error {
  101. return xxx_messageInfo_CreateChannelRequest.Unmarshal(m, b)
  102. }
  103. func (m *CreateChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  104. return xxx_messageInfo_CreateChannelRequest.Marshal(b, m, deterministic)
  105. }
  106. func (dst *CreateChannelRequest) XXX_Merge(src proto.Message) {
  107. xxx_messageInfo_CreateChannelRequest.Merge(dst, src)
  108. }
  109. func (m *CreateChannelRequest) XXX_Size() int {
  110. return xxx_messageInfo_CreateChannelRequest.Size(m)
  111. }
  112. func (m *CreateChannelRequest) XXX_DiscardUnknown() {
  113. xxx_messageInfo_CreateChannelRequest.DiscardUnknown(m)
  114. }
  115. var xxx_messageInfo_CreateChannelRequest proto.InternalMessageInfo
  116. func (m *CreateChannelRequest) GetApplicationKey() string {
  117. if m != nil && m.ApplicationKey != nil {
  118. return *m.ApplicationKey
  119. }
  120. return ""
  121. }
  122. func (m *CreateChannelRequest) GetDurationMinutes() int32 {
  123. if m != nil && m.DurationMinutes != nil {
  124. return *m.DurationMinutes
  125. }
  126. return 0
  127. }
  128. type CreateChannelResponse struct {
  129. Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
  130. DurationMinutes *int32 `protobuf:"varint,3,opt,name=duration_minutes,json=durationMinutes" json:"duration_minutes,omitempty"`
  131. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  132. XXX_unrecognized []byte `json:"-"`
  133. XXX_sizecache int32 `json:"-"`
  134. }
  135. func (m *CreateChannelResponse) Reset() { *m = CreateChannelResponse{} }
  136. func (m *CreateChannelResponse) String() string { return proto.CompactTextString(m) }
  137. func (*CreateChannelResponse) ProtoMessage() {}
  138. func (*CreateChannelResponse) Descriptor() ([]byte, []int) {
  139. return fileDescriptor_channel_service_a8d15e05b34664a9, []int{2}
  140. }
  141. func (m *CreateChannelResponse) XXX_Unmarshal(b []byte) error {
  142. return xxx_messageInfo_CreateChannelResponse.Unmarshal(m, b)
  143. }
  144. func (m *CreateChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  145. return xxx_messageInfo_CreateChannelResponse.Marshal(b, m, deterministic)
  146. }
  147. func (dst *CreateChannelResponse) XXX_Merge(src proto.Message) {
  148. xxx_messageInfo_CreateChannelResponse.Merge(dst, src)
  149. }
  150. func (m *CreateChannelResponse) XXX_Size() int {
  151. return xxx_messageInfo_CreateChannelResponse.Size(m)
  152. }
  153. func (m *CreateChannelResponse) XXX_DiscardUnknown() {
  154. xxx_messageInfo_CreateChannelResponse.DiscardUnknown(m)
  155. }
  156. var xxx_messageInfo_CreateChannelResponse proto.InternalMessageInfo
  157. func (m *CreateChannelResponse) GetToken() string {
  158. if m != nil && m.Token != nil {
  159. return *m.Token
  160. }
  161. return ""
  162. }
  163. func (m *CreateChannelResponse) GetDurationMinutes() int32 {
  164. if m != nil && m.DurationMinutes != nil {
  165. return *m.DurationMinutes
  166. }
  167. return 0
  168. }
  169. type SendMessageRequest struct {
  170. ApplicationKey *string `protobuf:"bytes,1,req,name=application_key,json=applicationKey" json:"application_key,omitempty"`
  171. Message *string `protobuf:"bytes,2,req,name=message" json:"message,omitempty"`
  172. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  173. XXX_unrecognized []byte `json:"-"`
  174. XXX_sizecache int32 `json:"-"`
  175. }
  176. func (m *SendMessageRequest) Reset() { *m = SendMessageRequest{} }
  177. func (m *SendMessageRequest) String() string { return proto.CompactTextString(m) }
  178. func (*SendMessageRequest) ProtoMessage() {}
  179. func (*SendMessageRequest) Descriptor() ([]byte, []int) {
  180. return fileDescriptor_channel_service_a8d15e05b34664a9, []int{3}
  181. }
  182. func (m *SendMessageRequest) XXX_Unmarshal(b []byte) error {
  183. return xxx_messageInfo_SendMessageRequest.Unmarshal(m, b)
  184. }
  185. func (m *SendMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  186. return xxx_messageInfo_SendMessageRequest.Marshal(b, m, deterministic)
  187. }
  188. func (dst *SendMessageRequest) XXX_Merge(src proto.Message) {
  189. xxx_messageInfo_SendMessageRequest.Merge(dst, src)
  190. }
  191. func (m *SendMessageRequest) XXX_Size() int {
  192. return xxx_messageInfo_SendMessageRequest.Size(m)
  193. }
  194. func (m *SendMessageRequest) XXX_DiscardUnknown() {
  195. xxx_messageInfo_SendMessageRequest.DiscardUnknown(m)
  196. }
  197. var xxx_messageInfo_SendMessageRequest proto.InternalMessageInfo
  198. func (m *SendMessageRequest) GetApplicationKey() string {
  199. if m != nil && m.ApplicationKey != nil {
  200. return *m.ApplicationKey
  201. }
  202. return ""
  203. }
  204. func (m *SendMessageRequest) GetMessage() string {
  205. if m != nil && m.Message != nil {
  206. return *m.Message
  207. }
  208. return ""
  209. }
  210. func init() {
  211. proto.RegisterType((*ChannelServiceError)(nil), "appengine.ChannelServiceError")
  212. proto.RegisterType((*CreateChannelRequest)(nil), "appengine.CreateChannelRequest")
  213. proto.RegisterType((*CreateChannelResponse)(nil), "appengine.CreateChannelResponse")
  214. proto.RegisterType((*SendMessageRequest)(nil), "appengine.SendMessageRequest")
  215. }
  216. func init() {
  217. proto.RegisterFile("google.golang.org/appengine/internal/channel/channel_service.proto", fileDescriptor_channel_service_a8d15e05b34664a9)
  218. }
  219. var fileDescriptor_channel_service_a8d15e05b34664a9 = []byte{
  220. // 355 bytes of a gzipped FileDescriptorProto
  221. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xcd, 0xee, 0xd2, 0x40,
  222. 0x14, 0xc5, 0x6d, 0xff, 0x22, 0xe9, 0x35, 0x81, 0x66, 0xc0, 0xd8, 0x95, 0x21, 0xdd, 0x88, 0x1b,
  223. 0x78, 0x86, 0xa1, 0x9d, 0x68, 0xd3, 0xd2, 0xe2, 0x14, 0xfc, 0xda, 0x4c, 0x26, 0x70, 0x53, 0x2b,
  224. 0x65, 0xa6, 0x4e, 0x8b, 0x09, 0x4f, 0xe1, 0x63, 0xf8, 0x9a, 0x26, 0x14, 0x88, 0x21, 0x6c, 0x5c,
  225. 0xcd, 0x9c, 0x93, 0xdf, 0x39, 0x33, 0x37, 0x17, 0x16, 0x85, 0xd6, 0x45, 0x85, 0xb3, 0x42, 0x57,
  226. 0x52, 0x15, 0x33, 0x6d, 0x8a, 0xb9, 0xac, 0x6b, 0x54, 0x45, 0xa9, 0x70, 0x5e, 0xaa, 0x16, 0x8d,
  227. 0x92, 0xd5, 0x7c, 0xfb, 0x5d, 0x2a, 0x85, 0xb7, 0x53, 0x34, 0x68, 0x7e, 0x95, 0x5b, 0x9c, 0xd5,
  228. 0x46, 0xb7, 0x9a, 0x38, 0xb7, 0x84, 0xff, 0xc7, 0x82, 0x51, 0xd0, 0x41, 0x79, 0xc7, 0x30, 0x63,
  229. 0xb4, 0xf1, 0x7f, 0x5b, 0xe0, 0x9c, 0x6f, 0x81, 0xde, 0x21, 0x79, 0x01, 0x76, 0x16, 0xbb, 0xcf,
  230. 0x08, 0x81, 0x41, 0x94, 0xae, 0x19, 0x4f, 0x69, 0x22, 0x18, 0xe7, 0x19, 0x77, 0x2d, 0xf2, 0x1a,
  231. 0x46, 0x51, 0xfa, 0x89, 0x26, 0x51, 0x28, 0x82, 0x0f, 0x34, 0x4d, 0x59, 0x22, 0x62, 0xf6, 0xd5,
  232. 0xb5, 0xc9, 0x10, 0x5e, 0x2e, 0x68, 0x28, 0x96, 0x2c, 0xcf, 0xe9, 0x7b, 0xe6, 0x3e, 0x11, 0x1f,
  233. 0xde, 0xdc, 0x93, 0xeb, 0x2c, 0x66, 0xa9, 0x08, 0x37, 0x9c, 0xae, 0xa3, 0x2c, 0x75, 0x9f, 0x13,
  234. 0x0f, 0xc6, 0x74, 0xb5, 0x8a, 0x42, 0x41, 0x93, 0x88, 0xe6, 0x82, 0xb3, 0x8f, 0x9b, 0x88, 0xb3,
  235. 0xd0, 0xed, 0xf9, 0x3f, 0x60, 0x1c, 0x18, 0x94, 0x2d, 0x5e, 0xbe, 0xcb, 0xf1, 0xe7, 0x11, 0x9b,
  236. 0x96, 0xbc, 0x85, 0xa1, 0xac, 0xeb, 0xaa, 0xdc, 0xca, 0xb6, 0xd4, 0x4a, 0xec, 0xf1, 0xe4, 0x59,
  237. 0x13, 0x7b, 0xea, 0xf0, 0xc1, 0x3f, 0x76, 0x8c, 0x27, 0xf2, 0x0e, 0xdc, 0xdd, 0xd1, 0x74, 0xd4,
  238. 0xa1, 0x54, 0xc7, 0x16, 0x1b, 0xcf, 0x9e, 0x58, 0xd3, 0x1e, 0x1f, 0x5e, 0xfd, 0x65, 0x67, 0xfb,
  239. 0x5f, 0xe0, 0xd5, 0xdd, 0x5b, 0x4d, 0xad, 0x55, 0x83, 0x64, 0x0c, 0xbd, 0x56, 0xef, 0x51, 0x9d,
  240. 0x83, 0x0e, 0xef, 0xc4, 0xc3, 0xe6, 0xa7, 0xc7, 0xcd, 0x9f, 0x81, 0xe4, 0xa8, 0x76, 0x4b, 0x6c,
  241. 0x1a, 0x59, 0xe0, 0x7f, 0xcf, 0xe0, 0x41, 0xff, 0xd0, 0x45, 0x3d, 0xfb, 0x0c, 0x5c, 0xe5, 0xc2,
  242. 0xf9, 0xd6, 0xbf, 0x2c, 0xfb, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0a, 0x77, 0x06, 0x23,
  243. 0x02, 0x00, 0x00,
  244. }