| Index: mojo/dart/packages/mojo_services/lib/prediction/prediction.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/prediction/prediction.mojom.dart b/mojo/dart/packages/mojo_services/lib/prediction/prediction.mojom.dart
|
| index 96e0938de1de3f54782327c90e4a634043485072..ee575584adf5927dfc186a06229aaac27839f4c7 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/prediction/prediction.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/prediction/prediction.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library prediction_mojom;
|
|
|
| import 'dart:async';
|
| +import 'dart:collection';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
|
|
|
|
|
|
|
| @@ -85,6 +88,22 @@ class PrevWordInfo extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _prediction_PrevWordInfo__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'PrevWordInfo'
|
| + ..fullIdentifier = 'prediction.PrevWordInfo')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Word')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'IsBeginningOfSentence')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
|
| + ];
|
| +}
|
|
|
|
|
| class PredictionInfo extends bindings.Struct {
|
| @@ -178,6 +197,28 @@ class PredictionInfo extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _prediction_PredictionInfo__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'PredictionInfo'
|
| + ..fullIdentifier = 'prediction.PredictionInfo')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PreviousWords')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_prediction_PrevWordInfo__'
|
| + ..typeKey = '_prediction_PrevWordInfo__'
|
| + )))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CurrentWord')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
|
|
|
|
| class _PredictionServiceGetPredictionListParams extends bindings.Struct {
|
| @@ -246,6 +287,22 @@ class _PredictionServiceGetPredictionListParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _prediction_PredictionService_GetPredictionList_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_PredictionServiceGetPredictionListParams'
|
| + ..fullIdentifier = 'prediction._PredictionServiceGetPredictionListParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PredictionInfo')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_prediction_PredictionInfo__'
|
| + ..typeKey = '_prediction_PredictionInfo__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class PredictionServiceGetPredictionListResponseParams extends bindings.Struct {
|
| @@ -331,9 +388,51 @@ class PredictionServiceGetPredictionListResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _prediction_PredictionService_GetPredictionList_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'PredictionServiceGetPredictionListResponseParams'
|
| + ..fullIdentifier = 'prediction.PredictionServiceGetPredictionListResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PredictionList')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)))),
|
| + ];
|
| +}
|
| +
|
|
|
| const int _PredictionService_getPredictionListName = 0;
|
|
|
| +mojom_types.MojomInterface _prediction_PredictionService__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'PredictionService'
|
| + ..fullIdentifier = 'prediction.PredictionService')
|
| + ..interfaceName = 'PredictionService'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_PredictionService_getPredictionListName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GetPredictionList')
|
| + ..ordinal = _PredictionService_getPredictionListName
|
| + ..responseParams = _prediction_PredictionService_GetPredictionList_ResponseParams__()..parameters = _prediction_PredictionService_GetPredictionList_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _PredictionServiceServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _prediction_PredictionService__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class PredictionService {
|
| static const String serviceName = "prediction::PredictionService";
|
| dynamic getPredictionList(PredictionInfo predictionInfo,[Function responseFactory = null]);
|
| @@ -355,6 +454,9 @@ class _PredictionServiceProxyImpl extends bindings.Proxy {
|
| return new _PredictionServiceProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _PredictionServiceServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _PredictionService_getPredictionListName:
|
| @@ -540,6 +642,44 @@ class PredictionServiceStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _PredictionServiceServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_prediction_PrevWordInfo__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _prediction_PrevWordInfo__();
|
| +map["_prediction_PredictionInfo__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _prediction_PredictionInfo__();
|
| +map["_prediction_PredictionService_GetPredictionList_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _prediction_PredictionService_GetPredictionList_Params__();
|
| +map["_prediction_PredictionService_GetPredictionList_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _prediction_PredictionService_GetPredictionList_ResponseParams__();
|
| +map["_prediction_PredictionService__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _prediction_PredictionService__();
|
| +
|
| + return map;
|
| }
|
|
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
|
|
|
|