channel_service.pb.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. // Code generated by protoc-gen-go.
  2. // source: google.golang.org/appengine/internal/channel/channel_service.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package channel is a generated protocol buffer package.
  6. It is generated from these files:
  7. google.golang.org/appengine/internal/channel/channel_service.proto
  8. It has these top-level messages:
  9. ChannelServiceError
  10. CreateChannelRequest
  11. CreateChannelResponse
  12. SendMessageRequest
  13. */
  14. package channel
  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 ChannelServiceError_ErrorCode int32
  23. const (
  24. ChannelServiceError_OK ChannelServiceError_ErrorCode = 0
  25. ChannelServiceError_INTERNAL_ERROR ChannelServiceError_ErrorCode = 1
  26. ChannelServiceError_INVALID_CHANNEL_KEY ChannelServiceError_ErrorCode = 2
  27. ChannelServiceError_BAD_MESSAGE ChannelServiceError_ErrorCode = 3
  28. ChannelServiceError_INVALID_CHANNEL_TOKEN_DURATION ChannelServiceError_ErrorCode = 4
  29. ChannelServiceError_APPID_ALIAS_REQUIRED ChannelServiceError_ErrorCode = 5
  30. )
  31. var ChannelServiceError_ErrorCode_name = map[int32]string{
  32. 0: "OK",
  33. 1: "INTERNAL_ERROR",
  34. 2: "INVALID_CHANNEL_KEY",
  35. 3: "BAD_MESSAGE",
  36. 4: "INVALID_CHANNEL_TOKEN_DURATION",
  37. 5: "APPID_ALIAS_REQUIRED",
  38. }
  39. var ChannelServiceError_ErrorCode_value = map[string]int32{
  40. "OK": 0,
  41. "INTERNAL_ERROR": 1,
  42. "INVALID_CHANNEL_KEY": 2,
  43. "BAD_MESSAGE": 3,
  44. "INVALID_CHANNEL_TOKEN_DURATION": 4,
  45. "APPID_ALIAS_REQUIRED": 5,
  46. }
  47. func (x ChannelServiceError_ErrorCode) Enum() *ChannelServiceError_ErrorCode {
  48. p := new(ChannelServiceError_ErrorCode)
  49. *p = x
  50. return p
  51. }
  52. func (x ChannelServiceError_ErrorCode) String() string {
  53. return proto.EnumName(ChannelServiceError_ErrorCode_name, int32(x))
  54. }
  55. func (x *ChannelServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
  56. value, err := proto.UnmarshalJSONEnum(ChannelServiceError_ErrorCode_value, data, "ChannelServiceError_ErrorCode")
  57. if err != nil {
  58. return err
  59. }
  60. *x = ChannelServiceError_ErrorCode(value)
  61. return nil
  62. }
  63. type ChannelServiceError struct {
  64. XXX_unrecognized []byte `json:"-"`
  65. }
  66. func (m *ChannelServiceError) Reset() { *m = ChannelServiceError{} }
  67. func (m *ChannelServiceError) String() string { return proto.CompactTextString(m) }
  68. func (*ChannelServiceError) ProtoMessage() {}
  69. type CreateChannelRequest struct {
  70. ApplicationKey *string `protobuf:"bytes,1,req,name=application_key" json:"application_key,omitempty"`
  71. DurationMinutes *int32 `protobuf:"varint,2,opt,name=duration_minutes" json:"duration_minutes,omitempty"`
  72. XXX_unrecognized []byte `json:"-"`
  73. }
  74. func (m *CreateChannelRequest) Reset() { *m = CreateChannelRequest{} }
  75. func (m *CreateChannelRequest) String() string { return proto.CompactTextString(m) }
  76. func (*CreateChannelRequest) ProtoMessage() {}
  77. func (m *CreateChannelRequest) GetApplicationKey() string {
  78. if m != nil && m.ApplicationKey != nil {
  79. return *m.ApplicationKey
  80. }
  81. return ""
  82. }
  83. func (m *CreateChannelRequest) GetDurationMinutes() int32 {
  84. if m != nil && m.DurationMinutes != nil {
  85. return *m.DurationMinutes
  86. }
  87. return 0
  88. }
  89. type CreateChannelResponse struct {
  90. Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
  91. DurationMinutes *int32 `protobuf:"varint,3,opt,name=duration_minutes" json:"duration_minutes,omitempty"`
  92. XXX_unrecognized []byte `json:"-"`
  93. }
  94. func (m *CreateChannelResponse) Reset() { *m = CreateChannelResponse{} }
  95. func (m *CreateChannelResponse) String() string { return proto.CompactTextString(m) }
  96. func (*CreateChannelResponse) ProtoMessage() {}
  97. func (m *CreateChannelResponse) GetToken() string {
  98. if m != nil && m.Token != nil {
  99. return *m.Token
  100. }
  101. return ""
  102. }
  103. func (m *CreateChannelResponse) GetDurationMinutes() int32 {
  104. if m != nil && m.DurationMinutes != nil {
  105. return *m.DurationMinutes
  106. }
  107. return 0
  108. }
  109. type SendMessageRequest struct {
  110. ApplicationKey *string `protobuf:"bytes,1,req,name=application_key" json:"application_key,omitempty"`
  111. Message *string `protobuf:"bytes,2,req,name=message" json:"message,omitempty"`
  112. XXX_unrecognized []byte `json:"-"`
  113. }
  114. func (m *SendMessageRequest) Reset() { *m = SendMessageRequest{} }
  115. func (m *SendMessageRequest) String() string { return proto.CompactTextString(m) }
  116. func (*SendMessageRequest) ProtoMessage() {}
  117. func (m *SendMessageRequest) GetApplicationKey() string {
  118. if m != nil && m.ApplicationKey != nil {
  119. return *m.ApplicationKey
  120. }
  121. return ""
  122. }
  123. func (m *SendMessageRequest) GetMessage() string {
  124. if m != nil && m.Message != nil {
  125. return *m.Message
  126. }
  127. return ""
  128. }
  129. func init() {
  130. }