github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/channel/channel_service.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: google.golang.org/appengine/internal/channel/channel_service.proto 3 // DO NOT EDIT! 4 5 /* 6 Package channel is a generated protocol buffer package. 7 8 It is generated from these files: 9 google.golang.org/appengine/internal/channel/channel_service.proto 10 11 It has these top-level messages: 12 ChannelServiceError 13 CreateChannelRequest 14 CreateChannelResponse 15 SendMessageRequest 16 */ 17 package channel 18 19 import proto "github.com/golang/protobuf/proto" 20 import fmt "fmt" 21 import math "math" 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 type ChannelServiceError_ErrorCode int32 29 30 const ( 31 ChannelServiceError_OK ChannelServiceError_ErrorCode = 0 32 ChannelServiceError_INTERNAL_ERROR ChannelServiceError_ErrorCode = 1 33 ChannelServiceError_INVALID_CHANNEL_KEY ChannelServiceError_ErrorCode = 2 34 ChannelServiceError_BAD_MESSAGE ChannelServiceError_ErrorCode = 3 35 ChannelServiceError_INVALID_CHANNEL_TOKEN_DURATION ChannelServiceError_ErrorCode = 4 36 ChannelServiceError_APPID_ALIAS_REQUIRED ChannelServiceError_ErrorCode = 5 37 ) 38 39 var ChannelServiceError_ErrorCode_name = map[int32]string{ 40 0: "OK", 41 1: "INTERNAL_ERROR", 42 2: "INVALID_CHANNEL_KEY", 43 3: "BAD_MESSAGE", 44 4: "INVALID_CHANNEL_TOKEN_DURATION", 45 5: "APPID_ALIAS_REQUIRED", 46 } 47 var ChannelServiceError_ErrorCode_value = map[string]int32{ 48 "OK": 0, 49 "INTERNAL_ERROR": 1, 50 "INVALID_CHANNEL_KEY": 2, 51 "BAD_MESSAGE": 3, 52 "INVALID_CHANNEL_TOKEN_DURATION": 4, 53 "APPID_ALIAS_REQUIRED": 5, 54 } 55 56 func (x ChannelServiceError_ErrorCode) Enum() *ChannelServiceError_ErrorCode { 57 p := new(ChannelServiceError_ErrorCode) 58 *p = x 59 return p 60 } 61 func (x ChannelServiceError_ErrorCode) String() string { 62 return proto.EnumName(ChannelServiceError_ErrorCode_name, int32(x)) 63 } 64 func (x *ChannelServiceError_ErrorCode) UnmarshalJSON(data []byte) error { 65 value, err := proto.UnmarshalJSONEnum(ChannelServiceError_ErrorCode_value, data, "ChannelServiceError_ErrorCode") 66 if err != nil { 67 return err 68 } 69 *x = ChannelServiceError_ErrorCode(value) 70 return nil 71 } 72 73 type ChannelServiceError struct { 74 XXX_unrecognized []byte `json:"-"` 75 } 76 77 func (m *ChannelServiceError) Reset() { *m = ChannelServiceError{} } 78 func (m *ChannelServiceError) String() string { return proto.CompactTextString(m) } 79 func (*ChannelServiceError) ProtoMessage() {} 80 81 type CreateChannelRequest struct { 82 ApplicationKey *string `protobuf:"bytes,1,req,name=application_key" json:"application_key,omitempty"` 83 DurationMinutes *int32 `protobuf:"varint,2,opt,name=duration_minutes" json:"duration_minutes,omitempty"` 84 XXX_unrecognized []byte `json:"-"` 85 } 86 87 func (m *CreateChannelRequest) Reset() { *m = CreateChannelRequest{} } 88 func (m *CreateChannelRequest) String() string { return proto.CompactTextString(m) } 89 func (*CreateChannelRequest) ProtoMessage() {} 90 91 func (m *CreateChannelRequest) GetApplicationKey() string { 92 if m != nil && m.ApplicationKey != nil { 93 return *m.ApplicationKey 94 } 95 return "" 96 } 97 98 func (m *CreateChannelRequest) GetDurationMinutes() int32 { 99 if m != nil && m.DurationMinutes != nil { 100 return *m.DurationMinutes 101 } 102 return 0 103 } 104 105 type CreateChannelResponse struct { 106 Token *string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` 107 DurationMinutes *int32 `protobuf:"varint,3,opt,name=duration_minutes" json:"duration_minutes,omitempty"` 108 XXX_unrecognized []byte `json:"-"` 109 } 110 111 func (m *CreateChannelResponse) Reset() { *m = CreateChannelResponse{} } 112 func (m *CreateChannelResponse) String() string { return proto.CompactTextString(m) } 113 func (*CreateChannelResponse) ProtoMessage() {} 114 115 func (m *CreateChannelResponse) GetToken() string { 116 if m != nil && m.Token != nil { 117 return *m.Token 118 } 119 return "" 120 } 121 122 func (m *CreateChannelResponse) GetDurationMinutes() int32 { 123 if m != nil && m.DurationMinutes != nil { 124 return *m.DurationMinutes 125 } 126 return 0 127 } 128 129 type SendMessageRequest struct { 130 ApplicationKey *string `protobuf:"bytes,1,req,name=application_key" json:"application_key,omitempty"` 131 Message *string `protobuf:"bytes,2,req,name=message" json:"message,omitempty"` 132 XXX_unrecognized []byte `json:"-"` 133 } 134 135 func (m *SendMessageRequest) Reset() { *m = SendMessageRequest{} } 136 func (m *SendMessageRequest) String() string { return proto.CompactTextString(m) } 137 func (*SendMessageRequest) ProtoMessage() {} 138 139 func (m *SendMessageRequest) GetApplicationKey() string { 140 if m != nil && m.ApplicationKey != nil { 141 return *m.ApplicationKey 142 } 143 return "" 144 } 145 146 func (m *SendMessageRequest) GetMessage() string { 147 if m != nil && m.Message != nil { 148 return *m.Message 149 } 150 return "" 151 } 152 153 func init() { 154 }