github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/channel/channel_service.proto (about) 1 syntax = "proto2"; 2 option go_package = "channel"; 3 4 package appengine; 5 6 message 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 17 message CreateChannelRequest { 18 required string application_key = 1; 19 optional int32 duration_minutes = 2; 20 } 21 22 message CreateChannelResponse { 23 optional string token = 2; 24 optional int32 duration_minutes = 3; 25 } 26 27 message SendMessageRequest { 28 required string application_key = 1; 29 required string message = 2; 30 }