1syntax = "proto2"; 2option go_package = "channel"; 3 4package appengine; 5 6message ChannelServiceError { 7 enum ErrorCode { 8 OK = 0; 9 INTERNAL_ERROR = 1; 10 INVALID_CHANNEL_KEY = 2; 11 BAD_MESSAGE = 3; 12 INVALID_CHANNEL_TOKEN_DURATION = 4; 13 APPID_ALIAS_REQUIRED = 5; 14 } 15} 16 17message CreateChannelRequest { 18 required string application_key = 1; 19 optional int32 duration_minutes = 2; 20} 21 22message CreateChannelResponse { 23 optional string token = 2; 24 optional int32 duration_minutes = 3; 25} 26 27message SendMessageRequest { 28 required string application_key = 1; 29 required string message = 2; 30} 31