createRequest method

GeneratedMessage createRequest(
  1. String method
)
override

Creates a message object that can deserialize a request.

Implementation

$pb.GeneratedMessage createRequest($core.String method) {
  switch (method) {
    case 'Ready':
      return $0.Empty();
    case 'Allocate':
      return $0.Empty();
    case 'Shutdown':
      return $0.Empty();
    case 'Health':
      return $0.Empty();
    case 'GetGameServer':
      return $0.Empty();
    case 'WatchGameServer':
      return $0.Empty();
    case 'SetLabel':
      return $0.KeyValue();
    case 'SetAnnotation':
      return $0.KeyValue();
    case 'Reserve':
      return $0.Duration();
    default:
      throw $core.ArgumentError('Unknown method: $method');
  }
}