@ondewo/nlu-client-typescript 3.4.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,6 +88,9 @@ export class EntityTypeFuzzyNerConfig extends jspb.Message {
88
88
  getAlgorithm(): EntityTypeFuzzyNerConfig.FuzzyNerAlgorithm;
89
89
  setAlgorithm(value: EntityTypeFuzzyNerConfig.FuzzyNerAlgorithm): EntityTypeFuzzyNerConfig;
90
90
 
91
+ getAllowOverlaps(): boolean;
92
+ setAllowOverlaps(value: boolean): EntityTypeFuzzyNerConfig;
93
+
91
94
  serializeBinary(): Uint8Array;
92
95
  toObject(includeInstance?: boolean): EntityTypeFuzzyNerConfig.AsObject;
93
96
  static toObject(includeInstance: boolean, msg: EntityTypeFuzzyNerConfig): EntityTypeFuzzyNerConfig.AsObject;
@@ -102,6 +105,7 @@ export namespace EntityTypeFuzzyNerConfig {
102
105
  minimalScore: number,
103
106
  entityValuesList: Array<string>,
104
107
  algorithm: EntityTypeFuzzyNerConfig.FuzzyNerAlgorithm,
108
+ allowOverlaps: boolean,
105
109
  }
106
110
 
107
111
  export enum FuzzyNerAlgorithm {
@@ -1226,7 +1226,8 @@ proto.ondewo.nlu.EntityTypeFuzzyNerConfig.toObject = function(includeInstance, m
1226
1226
  entityType: (f = msg.getEntityType()) && ondewo_nlu_entity_type_pb.EntityType.toObject(includeInstance, f),
1227
1227
  minimalScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
1228
1228
  entityValuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1229
- algorithm: jspb.Message.getFieldWithDefault(msg, 4, 0)
1229
+ algorithm: jspb.Message.getFieldWithDefault(msg, 4, 0),
1230
+ allowOverlaps: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
1230
1231
  };
1231
1232
 
1232
1233
  if (includeInstance) {
@@ -1280,6 +1281,10 @@ proto.ondewo.nlu.EntityTypeFuzzyNerConfig.deserializeBinaryFromReader = function
1280
1281
  var value = /** @type {!proto.ondewo.nlu.EntityTypeFuzzyNerConfig.FuzzyNerAlgorithm} */ (reader.readEnum());
1281
1282
  msg.setAlgorithm(value);
1282
1283
  break;
1284
+ case 5:
1285
+ var value = /** @type {boolean} */ (reader.readBool());
1286
+ msg.setAllowOverlaps(value);
1287
+ break;
1283
1288
  default:
1284
1289
  reader.skipField();
1285
1290
  break;
@@ -1338,6 +1343,13 @@ proto.ondewo.nlu.EntityTypeFuzzyNerConfig.serializeBinaryToWriter = function(mes
1338
1343
  f
1339
1344
  );
1340
1345
  }
1346
+ f = message.getAllowOverlaps();
1347
+ if (f) {
1348
+ writer.writeBool(
1349
+ 5,
1350
+ f
1351
+ );
1352
+ }
1341
1353
  };
1342
1354
 
1343
1355
 
@@ -1459,6 +1471,24 @@ proto.ondewo.nlu.EntityTypeFuzzyNerConfig.prototype.setAlgorithm = function(valu
1459
1471
  };
1460
1472
 
1461
1473
 
1474
+ /**
1475
+ * optional bool allow_overlaps = 5;
1476
+ * @return {boolean}
1477
+ */
1478
+ proto.ondewo.nlu.EntityTypeFuzzyNerConfig.prototype.getAllowOverlaps = function() {
1479
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
1480
+ };
1481
+
1482
+
1483
+ /**
1484
+ * @param {boolean} value
1485
+ * @return {!proto.ondewo.nlu.EntityTypeFuzzyNerConfig} returns this
1486
+ */
1487
+ proto.ondewo.nlu.EntityTypeFuzzyNerConfig.prototype.setAllowOverlaps = function(value) {
1488
+ return jspb.Message.setProto3BooleanField(this, 5, value);
1489
+ };
1490
+
1491
+
1462
1492
 
1463
1493
 
1464
1494
 
@@ -3890,7 +3920,7 @@ proto.ondewo.nlu.GetAlternativeSentencesResponse.prototype.clearAlternativeSente
3890
3920
  * @private {!Array<number>}
3891
3921
  * @const
3892
3922
  */
3893
- proto.ondewo.nlu.GenerateResponsesResponse.repeatedFields_ = [2];
3923
+ proto.ondewo.nlu.GenerateResponsesResponse.repeatedFields_ = [1];
3894
3924
 
3895
3925
 
3896
3926
 
@@ -3923,7 +3953,7 @@ proto.ondewo.nlu.GenerateResponsesResponse.prototype.toObject = function(opt_inc
3923
3953
  */
3924
3954
  proto.ondewo.nlu.GenerateResponsesResponse.toObject = function(includeInstance, msg) {
3925
3955
  var f, obj = {
3926
- responsesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
3956
+ responsesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3927
3957
  };
3928
3958
 
3929
3959
  if (includeInstance) {
@@ -3960,7 +3990,7 @@ proto.ondewo.nlu.GenerateResponsesResponse.deserializeBinaryFromReader = functio
3960
3990
  }
3961
3991
  var field = reader.getFieldNumber();
3962
3992
  switch (field) {
3963
- case 2:
3993
+ case 1:
3964
3994
  var value = /** @type {string} */ (reader.readString());
3965
3995
  msg.addResponses(value);
3966
3996
  break;
@@ -3996,7 +4026,7 @@ proto.ondewo.nlu.GenerateResponsesResponse.serializeBinaryToWriter = function(me
3996
4026
  f = message.getResponsesList();
3997
4027
  if (f.length > 0) {
3998
4028
  writer.writeRepeatedString(
3999
- 2,
4029
+ 1,
4000
4030
  f
4001
4031
  );
4002
4032
  }
@@ -4004,11 +4034,11 @@ proto.ondewo.nlu.GenerateResponsesResponse.serializeBinaryToWriter = function(me
4004
4034
 
4005
4035
 
4006
4036
  /**
4007
- * repeated string responses = 2;
4037
+ * repeated string responses = 1;
4008
4038
  * @return {!Array<string>}
4009
4039
  */
4010
4040
  proto.ondewo.nlu.GenerateResponsesResponse.prototype.getResponsesList = function() {
4011
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
4041
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4012
4042
  };
4013
4043
 
4014
4044
 
@@ -4017,7 +4047,7 @@ proto.ondewo.nlu.GenerateResponsesResponse.prototype.getResponsesList = function
4017
4047
  * @return {!proto.ondewo.nlu.GenerateResponsesResponse} returns this
4018
4048
  */
4019
4049
  proto.ondewo.nlu.GenerateResponsesResponse.prototype.setResponsesList = function(value) {
4020
- return jspb.Message.setField(this, 2, value || []);
4050
+ return jspb.Message.setField(this, 1, value || []);
4021
4051
  };
4022
4052
 
4023
4053
 
@@ -4027,7 +4057,7 @@ proto.ondewo.nlu.GenerateResponsesResponse.prototype.setResponsesList = function
4027
4057
  * @return {!proto.ondewo.nlu.GenerateResponsesResponse} returns this
4028
4058
  */
4029
4059
  proto.ondewo.nlu.GenerateResponsesResponse.prototype.addResponses = function(value, opt_index) {
4030
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
4060
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4031
4061
  };
4032
4062
 
4033
4063
 
@@ -4046,7 +4076,7 @@ proto.ondewo.nlu.GenerateResponsesResponse.prototype.clearResponsesList = functi
4046
4076
  * @private {!Array<number>}
4047
4077
  * @const
4048
4078
  */
4049
- proto.ondewo.nlu.GenerateUserSaysResponse.repeatedFields_ = [2];
4079
+ proto.ondewo.nlu.GenerateUserSaysResponse.repeatedFields_ = [1];
4050
4080
 
4051
4081
 
4052
4082
 
@@ -4079,7 +4109,7 @@ proto.ondewo.nlu.GenerateUserSaysResponse.prototype.toObject = function(opt_incl
4079
4109
  */
4080
4110
  proto.ondewo.nlu.GenerateUserSaysResponse.toObject = function(includeInstance, msg) {
4081
4111
  var f, obj = {
4082
- userSaysList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
4112
+ userSaysList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
4083
4113
  };
4084
4114
 
4085
4115
  if (includeInstance) {
@@ -4116,7 +4146,7 @@ proto.ondewo.nlu.GenerateUserSaysResponse.deserializeBinaryFromReader = function
4116
4146
  }
4117
4147
  var field = reader.getFieldNumber();
4118
4148
  switch (field) {
4119
- case 2:
4149
+ case 1:
4120
4150
  var value = /** @type {string} */ (reader.readString());
4121
4151
  msg.addUserSays(value);
4122
4152
  break;
@@ -4152,7 +4182,7 @@ proto.ondewo.nlu.GenerateUserSaysResponse.serializeBinaryToWriter = function(mes
4152
4182
  f = message.getUserSaysList();
4153
4183
  if (f.length > 0) {
4154
4184
  writer.writeRepeatedString(
4155
- 2,
4185
+ 1,
4156
4186
  f
4157
4187
  );
4158
4188
  }
@@ -4160,11 +4190,11 @@ proto.ondewo.nlu.GenerateUserSaysResponse.serializeBinaryToWriter = function(mes
4160
4190
 
4161
4191
 
4162
4192
  /**
4163
- * repeated string user_says = 2;
4193
+ * repeated string user_says = 1;
4164
4194
  * @return {!Array<string>}
4165
4195
  */
4166
4196
  proto.ondewo.nlu.GenerateUserSaysResponse.prototype.getUserSaysList = function() {
4167
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
4197
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4168
4198
  };
4169
4199
 
4170
4200
 
@@ -4173,7 +4203,7 @@ proto.ondewo.nlu.GenerateUserSaysResponse.prototype.getUserSaysList = function()
4173
4203
  * @return {!proto.ondewo.nlu.GenerateUserSaysResponse} returns this
4174
4204
  */
4175
4205
  proto.ondewo.nlu.GenerateUserSaysResponse.prototype.setUserSaysList = function(value) {
4176
- return jspb.Message.setField(this, 2, value || []);
4206
+ return jspb.Message.setField(this, 1, value || []);
4177
4207
  };
4178
4208
 
4179
4209
 
@@ -4183,7 +4213,7 @@ proto.ondewo.nlu.GenerateUserSaysResponse.prototype.setUserSaysList = function(v
4183
4213
  * @return {!proto.ondewo.nlu.GenerateUserSaysResponse} returns this
4184
4214
  */
4185
4215
  proto.ondewo.nlu.GenerateUserSaysResponse.prototype.addUserSays = function(value, opt_index) {
4186
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
4216
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4187
4217
  };
4188
4218
 
4189
4219
 
@@ -67,8 +67,8 @@ export namespace Context {
67
67
  }
68
68
 
69
69
  export class ListContextsRequest extends jspb.Message {
70
- getParent(): string;
71
- setParent(value: string): ListContextsRequest;
70
+ getSessionId(): string;
71
+ setSessionId(value: string): ListContextsRequest;
72
72
 
73
73
  getPageToken(): string;
74
74
  setPageToken(value: string): ListContextsRequest;
@@ -83,7 +83,7 @@ export class ListContextsRequest extends jspb.Message {
83
83
 
84
84
  export namespace ListContextsRequest {
85
85
  export type AsObject = {
86
- parent: string,
86
+ sessionId: string,
87
87
  pageToken: string,
88
88
  }
89
89
  }
@@ -131,8 +131,8 @@ export namespace GetContextRequest {
131
131
  }
132
132
 
133
133
  export class CreateContextRequest extends jspb.Message {
134
- getParent(): string;
135
- setParent(value: string): CreateContextRequest;
134
+ getSessionId(): string;
135
+ setSessionId(value: string): CreateContextRequest;
136
136
 
137
137
  getContext(): Context | undefined;
138
138
  setContext(value?: Context): CreateContextRequest;
@@ -149,7 +149,7 @@ export class CreateContextRequest extends jspb.Message {
149
149
 
150
150
  export namespace CreateContextRequest {
151
151
  export type AsObject = {
152
- parent: string,
152
+ sessionId: string,
153
153
  context?: Context.AsObject,
154
154
  }
155
155
  }
@@ -199,8 +199,8 @@ export namespace DeleteContextRequest {
199
199
  }
200
200
 
201
201
  export class DeleteAllContextsRequest extends jspb.Message {
202
- getParent(): string;
203
- setParent(value: string): DeleteAllContextsRequest;
202
+ getSessionId(): string;
203
+ setSessionId(value: string): DeleteAllContextsRequest;
204
204
 
205
205
  serializeBinary(): Uint8Array;
206
206
  toObject(includeInstance?: boolean): DeleteAllContextsRequest.AsObject;
@@ -212,7 +212,7 @@ export class DeleteAllContextsRequest extends jspb.Message {
212
212
 
213
213
  export namespace DeleteAllContextsRequest {
214
214
  export type AsObject = {
215
- parent: string,
215
+ sessionId: string,
216
216
  }
217
217
  }
218
218
 
@@ -694,7 +694,7 @@ proto.ondewo.nlu.ListContextsRequest.prototype.toObject = function(opt_includeIn
694
694
  */
695
695
  proto.ondewo.nlu.ListContextsRequest.toObject = function(includeInstance, msg) {
696
696
  var f, obj = {
697
- parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
697
+ sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
698
698
  pageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
699
699
  };
700
700
 
@@ -734,7 +734,7 @@ proto.ondewo.nlu.ListContextsRequest.deserializeBinaryFromReader = function(msg,
734
734
  switch (field) {
735
735
  case 1:
736
736
  var value = /** @type {string} */ (reader.readString());
737
- msg.setParent(value);
737
+ msg.setSessionId(value);
738
738
  break;
739
739
  case 3:
740
740
  var value = /** @type {string} */ (reader.readString());
@@ -769,7 +769,7 @@ proto.ondewo.nlu.ListContextsRequest.prototype.serializeBinary = function() {
769
769
  */
770
770
  proto.ondewo.nlu.ListContextsRequest.serializeBinaryToWriter = function(message, writer) {
771
771
  var f = undefined;
772
- f = message.getParent();
772
+ f = message.getSessionId();
773
773
  if (f.length > 0) {
774
774
  writer.writeString(
775
775
  1,
@@ -787,10 +787,10 @@ proto.ondewo.nlu.ListContextsRequest.serializeBinaryToWriter = function(message,
787
787
 
788
788
 
789
789
  /**
790
- * optional string parent = 1;
790
+ * optional string session_id = 1;
791
791
  * @return {string}
792
792
  */
793
- proto.ondewo.nlu.ListContextsRequest.prototype.getParent = function() {
793
+ proto.ondewo.nlu.ListContextsRequest.prototype.getSessionId = function() {
794
794
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
795
795
  };
796
796
 
@@ -799,7 +799,7 @@ proto.ondewo.nlu.ListContextsRequest.prototype.getParent = function() {
799
799
  * @param {string} value
800
800
  * @return {!proto.ondewo.nlu.ListContextsRequest} returns this
801
801
  */
802
- proto.ondewo.nlu.ListContextsRequest.prototype.setParent = function(value) {
802
+ proto.ondewo.nlu.ListContextsRequest.prototype.setSessionId = function(value) {
803
803
  return jspb.Message.setProto3StringField(this, 1, value);
804
804
  };
805
805
 
@@ -1174,7 +1174,7 @@ proto.ondewo.nlu.CreateContextRequest.prototype.toObject = function(opt_includeI
1174
1174
  */
1175
1175
  proto.ondewo.nlu.CreateContextRequest.toObject = function(includeInstance, msg) {
1176
1176
  var f, obj = {
1177
- parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
1177
+ sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1178
1178
  context: (f = msg.getContext()) && proto.ondewo.nlu.Context.toObject(includeInstance, f)
1179
1179
  };
1180
1180
 
@@ -1214,7 +1214,7 @@ proto.ondewo.nlu.CreateContextRequest.deserializeBinaryFromReader = function(msg
1214
1214
  switch (field) {
1215
1215
  case 1:
1216
1216
  var value = /** @type {string} */ (reader.readString());
1217
- msg.setParent(value);
1217
+ msg.setSessionId(value);
1218
1218
  break;
1219
1219
  case 2:
1220
1220
  var value = new proto.ondewo.nlu.Context;
@@ -1250,7 +1250,7 @@ proto.ondewo.nlu.CreateContextRequest.prototype.serializeBinary = function() {
1250
1250
  */
1251
1251
  proto.ondewo.nlu.CreateContextRequest.serializeBinaryToWriter = function(message, writer) {
1252
1252
  var f = undefined;
1253
- f = message.getParent();
1253
+ f = message.getSessionId();
1254
1254
  if (f.length > 0) {
1255
1255
  writer.writeString(
1256
1256
  1,
@@ -1269,10 +1269,10 @@ proto.ondewo.nlu.CreateContextRequest.serializeBinaryToWriter = function(message
1269
1269
 
1270
1270
 
1271
1271
  /**
1272
- * optional string parent = 1;
1272
+ * optional string session_id = 1;
1273
1273
  * @return {string}
1274
1274
  */
1275
- proto.ondewo.nlu.CreateContextRequest.prototype.getParent = function() {
1275
+ proto.ondewo.nlu.CreateContextRequest.prototype.getSessionId = function() {
1276
1276
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1277
1277
  };
1278
1278
 
@@ -1281,7 +1281,7 @@ proto.ondewo.nlu.CreateContextRequest.prototype.getParent = function() {
1281
1281
  * @param {string} value
1282
1282
  * @return {!proto.ondewo.nlu.CreateContextRequest} returns this
1283
1283
  */
1284
- proto.ondewo.nlu.CreateContextRequest.prototype.setParent = function(value) {
1284
+ proto.ondewo.nlu.CreateContextRequest.prototype.setSessionId = function(value) {
1285
1285
  return jspb.Message.setProto3StringField(this, 1, value);
1286
1286
  };
1287
1287
 
@@ -1687,7 +1687,7 @@ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.toObject = function(opt_incl
1687
1687
  */
1688
1688
  proto.ondewo.nlu.DeleteAllContextsRequest.toObject = function(includeInstance, msg) {
1689
1689
  var f, obj = {
1690
- parent: jspb.Message.getFieldWithDefault(msg, 1, "")
1690
+ sessionId: jspb.Message.getFieldWithDefault(msg, 1, "")
1691
1691
  };
1692
1692
 
1693
1693
  if (includeInstance) {
@@ -1726,7 +1726,7 @@ proto.ondewo.nlu.DeleteAllContextsRequest.deserializeBinaryFromReader = function
1726
1726
  switch (field) {
1727
1727
  case 1:
1728
1728
  var value = /** @type {string} */ (reader.readString());
1729
- msg.setParent(value);
1729
+ msg.setSessionId(value);
1730
1730
  break;
1731
1731
  default:
1732
1732
  reader.skipField();
@@ -1757,7 +1757,7 @@ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.serializeBinary = function()
1757
1757
  */
1758
1758
  proto.ondewo.nlu.DeleteAllContextsRequest.serializeBinaryToWriter = function(message, writer) {
1759
1759
  var f = undefined;
1760
- f = message.getParent();
1760
+ f = message.getSessionId();
1761
1761
  if (f.length > 0) {
1762
1762
  writer.writeString(
1763
1763
  1,
@@ -1768,10 +1768,10 @@ proto.ondewo.nlu.DeleteAllContextsRequest.serializeBinaryToWriter = function(mes
1768
1768
 
1769
1769
 
1770
1770
  /**
1771
- * optional string parent = 1;
1771
+ * optional string session_id = 1;
1772
1772
  * @return {string}
1773
1773
  */
1774
- proto.ondewo.nlu.DeleteAllContextsRequest.prototype.getParent = function() {
1774
+ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.getSessionId = function() {
1775
1775
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1776
1776
  };
1777
1777
 
@@ -1780,7 +1780,7 @@ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.getParent = function() {
1780
1780
  * @param {string} value
1781
1781
  * @return {!proto.ondewo.nlu.DeleteAllContextsRequest} returns this
1782
1782
  */
1783
- proto.ondewo.nlu.DeleteAllContextsRequest.prototype.setParent = function(value) {
1783
+ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.setSessionId = function(value) {
1784
1784
  return jspb.Message.setProto3StringField(this, 1, value);
1785
1785
  };
1786
1786
 
@@ -58,6 +58,13 @@ export class SessionsClient {
58
58
  response: ondewo_nlu_session_pb.ListSessionLabelsResponse) => void
59
59
  ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
60
60
 
61
+ listSessionLabelsOfAllSessions(
62
+ request: ondewo_nlu_session_pb.ListSessionLabelsOfAllSessionsRequest,
63
+ metadata: grpcWeb.Metadata | undefined,
64
+ callback: (err: grpcWeb.RpcError,
65
+ response: ondewo_nlu_session_pb.ListSessionLabelsResponse) => void
66
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
67
+
61
68
  addSessionLabels(
62
69
  request: ondewo_nlu_session_pb.AddSessionLabelsRequest,
63
70
  metadata: grpcWeb.Metadata | undefined,
@@ -65,8 +72,8 @@ export class SessionsClient {
65
72
  response: ondewo_nlu_session_pb.Session) => void
66
73
  ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.Session>;
67
74
 
68
- removeSessionLabels(
69
- request: ondewo_nlu_session_pb.RemoveSessionLabelsRequest,
75
+ deleteSessionLabels(
76
+ request: ondewo_nlu_session_pb.DeleteSessionLabelsRequest,
70
77
  metadata: grpcWeb.Metadata | undefined,
71
78
  callback: (err: grpcWeb.RpcError,
72
79
  response: ondewo_nlu_session_pb.Session) => void
@@ -142,13 +149,18 @@ export class SessionsPromiseClient {
142
149
  metadata?: grpcWeb.Metadata
143
150
  ): Promise<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
144
151
 
152
+ listSessionLabelsOfAllSessions(
153
+ request: ondewo_nlu_session_pb.ListSessionLabelsOfAllSessionsRequest,
154
+ metadata?: grpcWeb.Metadata
155
+ ): Promise<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
156
+
145
157
  addSessionLabels(
146
158
  request: ondewo_nlu_session_pb.AddSessionLabelsRequest,
147
159
  metadata?: grpcWeb.Metadata
148
160
  ): Promise<ondewo_nlu_session_pb.Session>;
149
161
 
150
- removeSessionLabels(
151
- request: ondewo_nlu_session_pb.RemoveSessionLabelsRequest,
162
+ deleteSessionLabels(
163
+ request: ondewo_nlu_session_pb.DeleteSessionLabelsRequest,
152
164
  metadata?: grpcWeb.Metadata
153
165
  ): Promise<ondewo_nlu_session_pb.Session>;
154
166
 
@@ -20,6 +20,8 @@ var google_api_annotations_pb = require('../../google/api/annotations_pb.js')
20
20
 
21
21
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
22
22
 
23
+ var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js')
24
+
23
25
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js')
24
26
 
25
27
  var google_rpc_status_pb = require('../../google/rpc/status_pb.js')
@@ -514,6 +516,67 @@ proto.ondewo.nlu.SessionsPromiseClient.prototype.listSessionLabels =
514
516
  };
515
517
 
516
518
 
519
+ /**
520
+ * @const
521
+ * @type {!grpc.web.MethodDescriptor<
522
+ * !proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest,
523
+ * !proto.ondewo.nlu.ListSessionLabelsResponse>}
524
+ */
525
+ const methodDescriptor_Sessions_ListSessionLabelsOfAllSessions = new grpc.web.MethodDescriptor(
526
+ '/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
527
+ grpc.web.MethodType.UNARY,
528
+ proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest,
529
+ proto.ondewo.nlu.ListSessionLabelsResponse,
530
+ /**
531
+ * @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request
532
+ * @return {!Uint8Array}
533
+ */
534
+ function(request) {
535
+ return request.serializeBinary();
536
+ },
537
+ proto.ondewo.nlu.ListSessionLabelsResponse.deserializeBinary
538
+ );
539
+
540
+
541
+ /**
542
+ * @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request The
543
+ * request proto
544
+ * @param {?Object<string, string>} metadata User defined
545
+ * call metadata
546
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ListSessionLabelsResponse)}
547
+ * callback The callback function(error, response)
548
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ListSessionLabelsResponse>|undefined}
549
+ * The XHR Node Readable Stream
550
+ */
551
+ proto.ondewo.nlu.SessionsClient.prototype.listSessionLabelsOfAllSessions =
552
+ function(request, metadata, callback) {
553
+ return this.client_.rpcCall(this.hostname_ +
554
+ '/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
555
+ request,
556
+ metadata || {},
557
+ methodDescriptor_Sessions_ListSessionLabelsOfAllSessions,
558
+ callback);
559
+ };
560
+
561
+
562
+ /**
563
+ * @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request The
564
+ * request proto
565
+ * @param {?Object<string, string>=} metadata User defined
566
+ * call metadata
567
+ * @return {!Promise<!proto.ondewo.nlu.ListSessionLabelsResponse>}
568
+ * Promise that resolves to the response
569
+ */
570
+ proto.ondewo.nlu.SessionsPromiseClient.prototype.listSessionLabelsOfAllSessions =
571
+ function(request, metadata) {
572
+ return this.client_.unaryCall(this.hostname_ +
573
+ '/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
574
+ request,
575
+ metadata || {},
576
+ methodDescriptor_Sessions_ListSessionLabelsOfAllSessions);
577
+ };
578
+
579
+
517
580
  /**
518
581
  * @const
519
582
  * @type {!grpc.web.MethodDescriptor<
@@ -578,16 +641,16 @@ proto.ondewo.nlu.SessionsPromiseClient.prototype.addSessionLabels =
578
641
  /**
579
642
  * @const
580
643
  * @type {!grpc.web.MethodDescriptor<
581
- * !proto.ondewo.nlu.RemoveSessionLabelsRequest,
644
+ * !proto.ondewo.nlu.DeleteSessionLabelsRequest,
582
645
  * !proto.ondewo.nlu.Session>}
583
646
  */
584
- const methodDescriptor_Sessions_RemoveSessionLabels = new grpc.web.MethodDescriptor(
585
- '/ondewo.nlu.Sessions/RemoveSessionLabels',
647
+ const methodDescriptor_Sessions_DeleteSessionLabels = new grpc.web.MethodDescriptor(
648
+ '/ondewo.nlu.Sessions/DeleteSessionLabels',
586
649
  grpc.web.MethodType.UNARY,
587
- proto.ondewo.nlu.RemoveSessionLabelsRequest,
650
+ proto.ondewo.nlu.DeleteSessionLabelsRequest,
588
651
  proto.ondewo.nlu.Session,
589
652
  /**
590
- * @param {!proto.ondewo.nlu.RemoveSessionLabelsRequest} request
653
+ * @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request
591
654
  * @return {!Uint8Array}
592
655
  */
593
656
  function(request) {
@@ -598,7 +661,7 @@ const methodDescriptor_Sessions_RemoveSessionLabels = new grpc.web.MethodDescrip
598
661
 
599
662
 
600
663
  /**
601
- * @param {!proto.ondewo.nlu.RemoveSessionLabelsRequest} request The
664
+ * @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request The
602
665
  * request proto
603
666
  * @param {?Object<string, string>} metadata User defined
604
667
  * call metadata
@@ -607,32 +670,32 @@ const methodDescriptor_Sessions_RemoveSessionLabels = new grpc.web.MethodDescrip
607
670
  * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Session>|undefined}
608
671
  * The XHR Node Readable Stream
609
672
  */
610
- proto.ondewo.nlu.SessionsClient.prototype.removeSessionLabels =
673
+ proto.ondewo.nlu.SessionsClient.prototype.deleteSessionLabels =
611
674
  function(request, metadata, callback) {
612
675
  return this.client_.rpcCall(this.hostname_ +
613
- '/ondewo.nlu.Sessions/RemoveSessionLabels',
676
+ '/ondewo.nlu.Sessions/DeleteSessionLabels',
614
677
  request,
615
678
  metadata || {},
616
- methodDescriptor_Sessions_RemoveSessionLabels,
679
+ methodDescriptor_Sessions_DeleteSessionLabels,
617
680
  callback);
618
681
  };
619
682
 
620
683
 
621
684
  /**
622
- * @param {!proto.ondewo.nlu.RemoveSessionLabelsRequest} request The
685
+ * @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request The
623
686
  * request proto
624
687
  * @param {?Object<string, string>=} metadata User defined
625
688
  * call metadata
626
689
  * @return {!Promise<!proto.ondewo.nlu.Session>}
627
690
  * Promise that resolves to the response
628
691
  */
629
- proto.ondewo.nlu.SessionsPromiseClient.prototype.removeSessionLabels =
692
+ proto.ondewo.nlu.SessionsPromiseClient.prototype.deleteSessionLabels =
630
693
  function(request, metadata) {
631
694
  return this.client_.unaryCall(this.hostname_ +
632
- '/ondewo.nlu.Sessions/RemoveSessionLabels',
695
+ '/ondewo.nlu.Sessions/DeleteSessionLabels',
633
696
  request,
634
697
  metadata || {},
635
- methodDescriptor_Sessions_RemoveSessionLabels);
698
+ methodDescriptor_Sessions_DeleteSessionLabels);
636
699
  };
637
700
 
638
701