@ondewo/nlu-client-typescript 3.4.0 → 3.5.2
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.
- package/README.md +80 -13
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +16 -4
- package/api/ondewo/nlu/session_grpc_web_pb.js +74 -13
- package/api/ondewo/nlu/session_pb.d.ts +37 -21
- package/api/ondewo/nlu/session_pb.js +248 -100
- package/package.json +1 -1
- package/public-api.d.ts +29 -29
package/README.md
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<table>
|
|
3
|
+
<tr>
|
|
4
|
+
<td>
|
|
5
|
+
<a href="https://ondewo.com/en/products/natural-language-understanding/">
|
|
6
|
+
<img width="400px" src="https://raw.githubusercontent.com/ondewo/ondewo-logos/master/ondewo_we_automate_your_phone_calls.png"/>
|
|
7
|
+
</a>
|
|
8
|
+
</td>
|
|
9
|
+
</tr>
|
|
10
|
+
<tr>
|
|
11
|
+
<td align="center">
|
|
12
|
+
<a href="https://www.linkedin.com/company/ondewo "><img width="40px" src="https://cdn-icons-png.flaticon.com/512/3536/3536505.png"></a>
|
|
13
|
+
<a href="https://www.facebook.com/ondewo"><img width="40px" src="https://cdn-icons-png.flaticon.com/512/733/733547.png"></a>
|
|
14
|
+
<a href="https://twitter.com/ondewo"><img width="40px" src="https://cdn-icons-png.flaticon.com/512/733/733579.png"> </a>
|
|
15
|
+
<a href="https://www.instagram.com/ondewo.ai/"><img width="40px" src="https://cdn-icons-png.flaticon.com/512/174/174855.png"></a>
|
|
16
|
+
<a href="https://badge.fury.io/js/%40ondewo%2Fnlu-client-typescript"><img src="https://badge.fury.io/js/%40ondewo%2Fnlu-client-typescript.svg" alt="npm version" height="32"></a>
|
|
17
|
+
</td>
|
|
18
|
+
</tr>
|
|
19
|
+
</table>
|
|
5
20
|
<h1 align="center">
|
|
6
21
|
ONDEWO NLU Client Typescript
|
|
7
22
|
</h1>
|
|
8
|
-
|
|
9
|
-
<a href="https://badge.fury.io/js/%40ondewo%2Fnlu-client-typescript"><img src="https://badge.fury.io/js/%40ondewo%2Fnlu-client-typescript.svg" alt="npm version" height="18"></a>
|
|
10
|
-
</p>
|
|
11
|
-
</p>
|
|
23
|
+
</div>
|
|
12
24
|
|
|
13
|
-
|
|
25
|
+
## Overview
|
|
14
26
|
|
|
15
|
-
`@ondewo/nlu-client-typescript` is a compiled version of the [ONDEWO NLU API](https://github.com/ondewo/ondewo-nlu-api). Here you can find the NLU API [documentation](https://ondewo.github.io
|
|
27
|
+
`@ondewo/nlu-client-typescript` is a compiled version of the [ONDEWO NLU API](https://github.com/ondewo/ondewo-nlu-api) using the [ONDEWO PROTO COMPILER](https://github.com/ondewo/ondewo-proto-compiler). Here you can find the NLU API [documentation](https://ondewo.github.io).
|
|
16
28
|
|
|
17
|
-
|
|
29
|
+
ONDEWO APIs use [Protocol Buffers](https://github.com/google/protobuf) version 3 (proto3) as their Interface Definition Language (IDL) to define the API interface and the structure of the payload messages. The same interface definition is used for gRPC versions of the API in all languages.
|
|
30
|
+
|
|
31
|
+
## Setup
|
|
18
32
|
|
|
19
33
|
Using NPM:
|
|
20
34
|
|
|
@@ -22,6 +36,59 @@ Using NPM:
|
|
|
22
36
|
npm i --save @ondewo/nlu-client-typescript
|
|
23
37
|
```
|
|
24
38
|
|
|
25
|
-
|
|
39
|
+
Using GitHub:
|
|
40
|
+
|
|
41
|
+
```shell
|
|
42
|
+
git clone https://github.com/ondewo/ondewo-nlu-client-typescript.git ## Clone repository
|
|
43
|
+
cd ondewo-nlu-client-typescript ## Change into repo-directoy
|
|
44
|
+
make setup_developer_environment_locally ## Install dependencies
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Package structure
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
npm
|
|
51
|
+
├── api
|
|
52
|
+
│ ├── google
|
|
53
|
+
│ │ ├── api
|
|
54
|
+
│ │ │ ├── annotations_pb.d.ts
|
|
55
|
+
│ │ │ └── annotations_pb.js
|
|
56
|
+
│ │ ├── protobuf
|
|
57
|
+
│ │ │ ├── any_pb.d.ts
|
|
58
|
+
│ │ │ ├── any_pb.js
|
|
59
|
+
│ │ │ ├── empty_pb.d.ts
|
|
60
|
+
│ │ │ ├── empty_pb.js
|
|
61
|
+
│ │ │ ├── field_mask_pb.d.ts
|
|
62
|
+
│ │ │ ├── field_mask_pb.js
|
|
63
|
+
│ │ │ ├── struct_pb.d.ts
|
|
64
|
+
│ │ │ ├── struct_pb.js
|
|
65
|
+
│ │ │ ├── timestamp_pb.d.ts
|
|
66
|
+
│ │ │ └── timestamp_pb.js
|
|
67
|
+
│ │ ├── rpc
|
|
68
|
+
│ │ │ ├── status_pb.d.ts
|
|
69
|
+
│ │ │ └── status_pb.js
|
|
70
|
+
│ │ └── type
|
|
71
|
+
│ │ ├── latlng_pb.d.ts
|
|
72
|
+
│ │ └── latlng_pb.js
|
|
73
|
+
│ └── ondewo
|
|
74
|
+
│ ├── nlu
|
|
75
|
+
│ │ ├── agent_grpc_web_pb.d.ts
|
|
76
|
+
│ │ ├── agent_grpc_web_pb.js
|
|
77
|
+
│ │ ├── agent_pb.d.ts
|
|
78
|
+
│ │ ├── agent_pb.js
|
|
79
|
+
│ │ ├── aiservices_grpc_web_pb.d.ts
|
|
80
|
+
│ │ ├── aiservices_grpc_web_pb.js
|
|
81
|
+
│ │ ├── aiservices_pb.d.ts
|
|
82
|
+
│ │ ├── aiservices_pb.js
|
|
83
|
+
│ │ ├── ...
|
|
84
|
+
│ └── qa
|
|
85
|
+
│ ├── qa_grpc_web_pb.d.ts
|
|
86
|
+
│ ├── qa_grpc_web_pb.js
|
|
87
|
+
│ ├── qa_pb.d.ts
|
|
88
|
+
│ └── qa_pb.js
|
|
89
|
+
├── LICENSE
|
|
90
|
+
├── package.json
|
|
91
|
+
├── public-api.d.ts
|
|
92
|
+
└── README.md
|
|
93
|
+
```
|
|
26
94
|
|
|
27
|
-
Read the full documentation on [GitHub](https://github.com/ondewo/ondewo-nlu-client-typescript).
|
|
@@ -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
|
-
|
|
69
|
-
request: ondewo_nlu_session_pb.
|
|
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
|
-
|
|
151
|
-
request: ondewo_nlu_session_pb.
|
|
162
|
+
deleteSessionLabels(
|
|
163
|
+
request: ondewo_nlu_session_pb.DeleteSessionLabelsRequest,
|
|
152
164
|
metadata?: grpcWeb.Metadata
|
|
153
165
|
): Promise<ondewo_nlu_session_pb.Session>;
|
|
154
166
|
|
|
@@ -514,6 +514,67 @@ proto.ondewo.nlu.SessionsPromiseClient.prototype.listSessionLabels =
|
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* @const
|
|
519
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
520
|
+
* !proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest,
|
|
521
|
+
* !proto.ondewo.nlu.ListSessionLabelsResponse>}
|
|
522
|
+
*/
|
|
523
|
+
const methodDescriptor_Sessions_ListSessionLabelsOfAllSessions = new grpc.web.MethodDescriptor(
|
|
524
|
+
'/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
|
|
525
|
+
grpc.web.MethodType.UNARY,
|
|
526
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest,
|
|
527
|
+
proto.ondewo.nlu.ListSessionLabelsResponse,
|
|
528
|
+
/**
|
|
529
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request
|
|
530
|
+
* @return {!Uint8Array}
|
|
531
|
+
*/
|
|
532
|
+
function(request) {
|
|
533
|
+
return request.serializeBinary();
|
|
534
|
+
},
|
|
535
|
+
proto.ondewo.nlu.ListSessionLabelsResponse.deserializeBinary
|
|
536
|
+
);
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request The
|
|
541
|
+
* request proto
|
|
542
|
+
* @param {?Object<string, string>} metadata User defined
|
|
543
|
+
* call metadata
|
|
544
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ListSessionLabelsResponse)}
|
|
545
|
+
* callback The callback function(error, response)
|
|
546
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ListSessionLabelsResponse>|undefined}
|
|
547
|
+
* The XHR Node Readable Stream
|
|
548
|
+
*/
|
|
549
|
+
proto.ondewo.nlu.SessionsClient.prototype.listSessionLabelsOfAllSessions =
|
|
550
|
+
function(request, metadata, callback) {
|
|
551
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
552
|
+
'/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
|
|
553
|
+
request,
|
|
554
|
+
metadata || {},
|
|
555
|
+
methodDescriptor_Sessions_ListSessionLabelsOfAllSessions,
|
|
556
|
+
callback);
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request The
|
|
562
|
+
* request proto
|
|
563
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
564
|
+
* call metadata
|
|
565
|
+
* @return {!Promise<!proto.ondewo.nlu.ListSessionLabelsResponse>}
|
|
566
|
+
* Promise that resolves to the response
|
|
567
|
+
*/
|
|
568
|
+
proto.ondewo.nlu.SessionsPromiseClient.prototype.listSessionLabelsOfAllSessions =
|
|
569
|
+
function(request, metadata) {
|
|
570
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
571
|
+
'/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
|
|
572
|
+
request,
|
|
573
|
+
metadata || {},
|
|
574
|
+
methodDescriptor_Sessions_ListSessionLabelsOfAllSessions);
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
|
|
517
578
|
/**
|
|
518
579
|
* @const
|
|
519
580
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -578,16 +639,16 @@ proto.ondewo.nlu.SessionsPromiseClient.prototype.addSessionLabels =
|
|
|
578
639
|
/**
|
|
579
640
|
* @const
|
|
580
641
|
* @type {!grpc.web.MethodDescriptor<
|
|
581
|
-
* !proto.ondewo.nlu.
|
|
642
|
+
* !proto.ondewo.nlu.DeleteSessionLabelsRequest,
|
|
582
643
|
* !proto.ondewo.nlu.Session>}
|
|
583
644
|
*/
|
|
584
|
-
const
|
|
585
|
-
'/ondewo.nlu.Sessions/
|
|
645
|
+
const methodDescriptor_Sessions_DeleteSessionLabels = new grpc.web.MethodDescriptor(
|
|
646
|
+
'/ondewo.nlu.Sessions/DeleteSessionLabels',
|
|
586
647
|
grpc.web.MethodType.UNARY,
|
|
587
|
-
proto.ondewo.nlu.
|
|
648
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest,
|
|
588
649
|
proto.ondewo.nlu.Session,
|
|
589
650
|
/**
|
|
590
|
-
* @param {!proto.ondewo.nlu.
|
|
651
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request
|
|
591
652
|
* @return {!Uint8Array}
|
|
592
653
|
*/
|
|
593
654
|
function(request) {
|
|
@@ -598,7 +659,7 @@ const methodDescriptor_Sessions_RemoveSessionLabels = new grpc.web.MethodDescrip
|
|
|
598
659
|
|
|
599
660
|
|
|
600
661
|
/**
|
|
601
|
-
* @param {!proto.ondewo.nlu.
|
|
662
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request The
|
|
602
663
|
* request proto
|
|
603
664
|
* @param {?Object<string, string>} metadata User defined
|
|
604
665
|
* call metadata
|
|
@@ -607,32 +668,32 @@ const methodDescriptor_Sessions_RemoveSessionLabels = new grpc.web.MethodDescrip
|
|
|
607
668
|
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Session>|undefined}
|
|
608
669
|
* The XHR Node Readable Stream
|
|
609
670
|
*/
|
|
610
|
-
proto.ondewo.nlu.SessionsClient.prototype.
|
|
671
|
+
proto.ondewo.nlu.SessionsClient.prototype.deleteSessionLabels =
|
|
611
672
|
function(request, metadata, callback) {
|
|
612
673
|
return this.client_.rpcCall(this.hostname_ +
|
|
613
|
-
'/ondewo.nlu.Sessions/
|
|
674
|
+
'/ondewo.nlu.Sessions/DeleteSessionLabels',
|
|
614
675
|
request,
|
|
615
676
|
metadata || {},
|
|
616
|
-
|
|
677
|
+
methodDescriptor_Sessions_DeleteSessionLabels,
|
|
617
678
|
callback);
|
|
618
679
|
};
|
|
619
680
|
|
|
620
681
|
|
|
621
682
|
/**
|
|
622
|
-
* @param {!proto.ondewo.nlu.
|
|
683
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request The
|
|
623
684
|
* request proto
|
|
624
685
|
* @param {?Object<string, string>=} metadata User defined
|
|
625
686
|
* call metadata
|
|
626
687
|
* @return {!Promise<!proto.ondewo.nlu.Session>}
|
|
627
688
|
* Promise that resolves to the response
|
|
628
689
|
*/
|
|
629
|
-
proto.ondewo.nlu.SessionsPromiseClient.prototype.
|
|
690
|
+
proto.ondewo.nlu.SessionsPromiseClient.prototype.deleteSessionLabels =
|
|
630
691
|
function(request, metadata) {
|
|
631
692
|
return this.client_.unaryCall(this.hostname_ +
|
|
632
|
-
'/ondewo.nlu.Sessions/
|
|
693
|
+
'/ondewo.nlu.Sessions/DeleteSessionLabels',
|
|
633
694
|
request,
|
|
634
695
|
metadata || {},
|
|
635
|
-
|
|
696
|
+
methodDescriptor_Sessions_DeleteSessionLabels);
|
|
636
697
|
};
|
|
637
698
|
|
|
638
699
|
|
|
@@ -817,6 +817,11 @@ export class CreateSessionRequest extends jspb.Message {
|
|
|
817
817
|
getSessionUuid(): string;
|
|
818
818
|
setSessionUuid(value: string): CreateSessionRequest;
|
|
819
819
|
|
|
820
|
+
getLabelsList(): Array<string>;
|
|
821
|
+
setLabelsList(value: Array<string>): CreateSessionRequest;
|
|
822
|
+
clearLabelsList(): CreateSessionRequest;
|
|
823
|
+
addLabels(value: string, index?: number): CreateSessionRequest;
|
|
824
|
+
|
|
820
825
|
serializeBinary(): Uint8Array;
|
|
821
826
|
toObject(includeInstance?: boolean): CreateSessionRequest.AsObject;
|
|
822
827
|
static toObject(includeInstance: boolean, msg: CreateSessionRequest): CreateSessionRequest.AsObject;
|
|
@@ -829,6 +834,7 @@ export namespace CreateSessionRequest {
|
|
|
829
834
|
export type AsObject = {
|
|
830
835
|
parent: string,
|
|
831
836
|
sessionUuid: string,
|
|
837
|
+
labelsList: Array<string>,
|
|
832
838
|
}
|
|
833
839
|
}
|
|
834
840
|
|
|
@@ -993,8 +999,8 @@ export namespace DetectedIntent {
|
|
|
993
999
|
}
|
|
994
1000
|
|
|
995
1001
|
export class ListSessionLabelsRequest extends jspb.Message {
|
|
996
|
-
|
|
997
|
-
|
|
1002
|
+
getSessionId(): string;
|
|
1003
|
+
setSessionId(value: string): ListSessionLabelsRequest;
|
|
998
1004
|
|
|
999
1005
|
serializeBinary(): Uint8Array;
|
|
1000
1006
|
toObject(includeInstance?: boolean): ListSessionLabelsRequest.AsObject;
|
|
@@ -1005,6 +1011,24 @@ export class ListSessionLabelsRequest extends jspb.Message {
|
|
|
1005
1011
|
}
|
|
1006
1012
|
|
|
1007
1013
|
export namespace ListSessionLabelsRequest {
|
|
1014
|
+
export type AsObject = {
|
|
1015
|
+
sessionId: string,
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export class ListSessionLabelsOfAllSessionsRequest extends jspb.Message {
|
|
1020
|
+
getParent(): string;
|
|
1021
|
+
setParent(value: string): ListSessionLabelsOfAllSessionsRequest;
|
|
1022
|
+
|
|
1023
|
+
serializeBinary(): Uint8Array;
|
|
1024
|
+
toObject(includeInstance?: boolean): ListSessionLabelsOfAllSessionsRequest.AsObject;
|
|
1025
|
+
static toObject(includeInstance: boolean, msg: ListSessionLabelsOfAllSessionsRequest): ListSessionLabelsOfAllSessionsRequest.AsObject;
|
|
1026
|
+
static serializeBinaryToWriter(message: ListSessionLabelsOfAllSessionsRequest, writer: jspb.BinaryWriter): void;
|
|
1027
|
+
static deserializeBinary(bytes: Uint8Array): ListSessionLabelsOfAllSessionsRequest;
|
|
1028
|
+
static deserializeBinaryFromReader(message: ListSessionLabelsOfAllSessionsRequest, reader: jspb.BinaryReader): ListSessionLabelsOfAllSessionsRequest;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
export namespace ListSessionLabelsOfAllSessionsRequest {
|
|
1008
1032
|
export type AsObject = {
|
|
1009
1033
|
parent: string,
|
|
1010
1034
|
}
|
|
@@ -1039,9 +1063,6 @@ export class AddSessionLabelsRequest extends jspb.Message {
|
|
|
1039
1063
|
clearLabelsList(): AddSessionLabelsRequest;
|
|
1040
1064
|
addLabels(value: string, index?: number): AddSessionLabelsRequest;
|
|
1041
1065
|
|
|
1042
|
-
getSessionView(): Session.View;
|
|
1043
|
-
setSessionView(value: Session.View): AddSessionLabelsRequest;
|
|
1044
|
-
|
|
1045
1066
|
serializeBinary(): Uint8Array;
|
|
1046
1067
|
toObject(includeInstance?: boolean): AddSessionLabelsRequest.AsObject;
|
|
1047
1068
|
static toObject(includeInstance: boolean, msg: AddSessionLabelsRequest): AddSessionLabelsRequest.AsObject;
|
|
@@ -1054,35 +1075,30 @@ export namespace AddSessionLabelsRequest {
|
|
|
1054
1075
|
export type AsObject = {
|
|
1055
1076
|
sessionId: string,
|
|
1056
1077
|
labelsList: Array<string>,
|
|
1057
|
-
sessionView: Session.View,
|
|
1058
1078
|
}
|
|
1059
1079
|
}
|
|
1060
1080
|
|
|
1061
|
-
export class
|
|
1081
|
+
export class DeleteSessionLabelsRequest extends jspb.Message {
|
|
1062
1082
|
getSessionId(): string;
|
|
1063
|
-
setSessionId(value: string):
|
|
1083
|
+
setSessionId(value: string): DeleteSessionLabelsRequest;
|
|
1064
1084
|
|
|
1065
1085
|
getLabelsList(): Array<string>;
|
|
1066
|
-
setLabelsList(value: Array<string>):
|
|
1067
|
-
clearLabelsList():
|
|
1068
|
-
addLabels(value: string, index?: number):
|
|
1069
|
-
|
|
1070
|
-
getSessionView(): Session.View;
|
|
1071
|
-
setSessionView(value: Session.View): RemoveSessionLabelsRequest;
|
|
1086
|
+
setLabelsList(value: Array<string>): DeleteSessionLabelsRequest;
|
|
1087
|
+
clearLabelsList(): DeleteSessionLabelsRequest;
|
|
1088
|
+
addLabels(value: string, index?: number): DeleteSessionLabelsRequest;
|
|
1072
1089
|
|
|
1073
1090
|
serializeBinary(): Uint8Array;
|
|
1074
|
-
toObject(includeInstance?: boolean):
|
|
1075
|
-
static toObject(includeInstance: boolean, msg:
|
|
1076
|
-
static serializeBinaryToWriter(message:
|
|
1077
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1078
|
-
static deserializeBinaryFromReader(message:
|
|
1091
|
+
toObject(includeInstance?: boolean): DeleteSessionLabelsRequest.AsObject;
|
|
1092
|
+
static toObject(includeInstance: boolean, msg: DeleteSessionLabelsRequest): DeleteSessionLabelsRequest.AsObject;
|
|
1093
|
+
static serializeBinaryToWriter(message: DeleteSessionLabelsRequest, writer: jspb.BinaryWriter): void;
|
|
1094
|
+
static deserializeBinary(bytes: Uint8Array): DeleteSessionLabelsRequest;
|
|
1095
|
+
static deserializeBinaryFromReader(message: DeleteSessionLabelsRequest, reader: jspb.BinaryReader): DeleteSessionLabelsRequest;
|
|
1079
1096
|
}
|
|
1080
1097
|
|
|
1081
|
-
export namespace
|
|
1098
|
+
export namespace DeleteSessionLabelsRequest {
|
|
1082
1099
|
export type AsObject = {
|
|
1083
1100
|
sessionId: string,
|
|
1084
1101
|
labelsList: Array<string>,
|
|
1085
|
-
sessionView: Session.View,
|
|
1086
1102
|
}
|
|
1087
1103
|
}
|
|
1088
1104
|
|
|
@@ -35,6 +35,7 @@ goog.exportSymbol('proto.ondewo.nlu.AddSessionLabelsRequest', null, global);
|
|
|
35
35
|
goog.exportSymbol('proto.ondewo.nlu.AudioEncoding', null, global);
|
|
36
36
|
goog.exportSymbol('proto.ondewo.nlu.CreateSessionRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.ondewo.nlu.CreateSessionReviewRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.ondewo.nlu.DeleteSessionLabelsRequest', null, global);
|
|
38
39
|
goog.exportSymbol('proto.ondewo.nlu.DeleteSessionRequest', null, global);
|
|
39
40
|
goog.exportSymbol('proto.ondewo.nlu.DetectIntentRequest', null, global);
|
|
40
41
|
goog.exportSymbol('proto.ondewo.nlu.DetectIntentResponse', null, global);
|
|
@@ -44,6 +45,7 @@ goog.exportSymbol('proto.ondewo.nlu.GetLatestSessionReviewRequest', null, global
|
|
|
44
45
|
goog.exportSymbol('proto.ondewo.nlu.GetSessionRequest', null, global);
|
|
45
46
|
goog.exportSymbol('proto.ondewo.nlu.GetSessionReviewRequest', null, global);
|
|
46
47
|
goog.exportSymbol('proto.ondewo.nlu.InputAudioConfig', null, global);
|
|
48
|
+
goog.exportSymbol('proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest', null, global);
|
|
47
49
|
goog.exportSymbol('proto.ondewo.nlu.ListSessionLabelsRequest', null, global);
|
|
48
50
|
goog.exportSymbol('proto.ondewo.nlu.ListSessionLabelsResponse', null, global);
|
|
49
51
|
goog.exportSymbol('proto.ondewo.nlu.ListSessionReviewsRequest', null, global);
|
|
@@ -54,7 +56,6 @@ goog.exportSymbol('proto.ondewo.nlu.QueryInput', null, global);
|
|
|
54
56
|
goog.exportSymbol('proto.ondewo.nlu.QueryInput.InputCase', null, global);
|
|
55
57
|
goog.exportSymbol('proto.ondewo.nlu.QueryParameters', null, global);
|
|
56
58
|
goog.exportSymbol('proto.ondewo.nlu.QueryResult', null, global);
|
|
57
|
-
goog.exportSymbol('proto.ondewo.nlu.RemoveSessionLabelsRequest', null, global);
|
|
58
59
|
goog.exportSymbol('proto.ondewo.nlu.Session', null, global);
|
|
59
60
|
goog.exportSymbol('proto.ondewo.nlu.Session.View', null, global);
|
|
60
61
|
goog.exportSymbol('proto.ondewo.nlu.SessionFilter', null, global);
|
|
@@ -501,7 +502,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
501
502
|
* @constructor
|
|
502
503
|
*/
|
|
503
504
|
proto.ondewo.nlu.CreateSessionRequest = function(opt_data) {
|
|
504
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
505
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CreateSessionRequest.repeatedFields_, null);
|
|
505
506
|
};
|
|
506
507
|
goog.inherits(proto.ondewo.nlu.CreateSessionRequest, jspb.Message);
|
|
507
508
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -637,6 +638,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
637
638
|
*/
|
|
638
639
|
proto.ondewo.nlu.ListSessionLabelsRequest.displayName = 'proto.ondewo.nlu.ListSessionLabelsRequest';
|
|
639
640
|
}
|
|
641
|
+
/**
|
|
642
|
+
* Generated by JsPbCodeGenerator.
|
|
643
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
644
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
645
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
646
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
647
|
+
* valid.
|
|
648
|
+
* @extends {jspb.Message}
|
|
649
|
+
* @constructor
|
|
650
|
+
*/
|
|
651
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest = function(opt_data) {
|
|
652
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
653
|
+
};
|
|
654
|
+
goog.inherits(proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest, jspb.Message);
|
|
655
|
+
if (goog.DEBUG && !COMPILED) {
|
|
656
|
+
/**
|
|
657
|
+
* @public
|
|
658
|
+
* @override
|
|
659
|
+
*/
|
|
660
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.displayName = 'proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest';
|
|
661
|
+
}
|
|
640
662
|
/**
|
|
641
663
|
* Generated by JsPbCodeGenerator.
|
|
642
664
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -689,16 +711,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
689
711
|
* @extends {jspb.Message}
|
|
690
712
|
* @constructor
|
|
691
713
|
*/
|
|
692
|
-
proto.ondewo.nlu.
|
|
693
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.
|
|
714
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest = function(opt_data) {
|
|
715
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.DeleteSessionLabelsRequest.repeatedFields_, null);
|
|
694
716
|
};
|
|
695
|
-
goog.inherits(proto.ondewo.nlu.
|
|
717
|
+
goog.inherits(proto.ondewo.nlu.DeleteSessionLabelsRequest, jspb.Message);
|
|
696
718
|
if (goog.DEBUG && !COMPILED) {
|
|
697
719
|
/**
|
|
698
720
|
* @public
|
|
699
721
|
* @override
|
|
700
722
|
*/
|
|
701
|
-
proto.ondewo.nlu.
|
|
723
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.displayName = 'proto.ondewo.nlu.DeleteSessionLabelsRequest';
|
|
702
724
|
}
|
|
703
725
|
/**
|
|
704
726
|
* Generated by JsPbCodeGenerator.
|
|
@@ -6950,6 +6972,13 @@ proto.ondewo.nlu.GetSessionRequest.prototype.setSessionView = function(value) {
|
|
|
6950
6972
|
|
|
6951
6973
|
|
|
6952
6974
|
|
|
6975
|
+
/**
|
|
6976
|
+
* List of repeated fields within this message type.
|
|
6977
|
+
* @private {!Array<number>}
|
|
6978
|
+
* @const
|
|
6979
|
+
*/
|
|
6980
|
+
proto.ondewo.nlu.CreateSessionRequest.repeatedFields_ = [3];
|
|
6981
|
+
|
|
6953
6982
|
|
|
6954
6983
|
|
|
6955
6984
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -6982,7 +7011,8 @@ proto.ondewo.nlu.CreateSessionRequest.prototype.toObject = function(opt_includeI
|
|
|
6982
7011
|
proto.ondewo.nlu.CreateSessionRequest.toObject = function(includeInstance, msg) {
|
|
6983
7012
|
var f, obj = {
|
|
6984
7013
|
parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6985
|
-
sessionUuid: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7014
|
+
sessionUuid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7015
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
6986
7016
|
};
|
|
6987
7017
|
|
|
6988
7018
|
if (includeInstance) {
|
|
@@ -7027,6 +7057,10 @@ proto.ondewo.nlu.CreateSessionRequest.deserializeBinaryFromReader = function(msg
|
|
|
7027
7057
|
var value = /** @type {string} */ (reader.readString());
|
|
7028
7058
|
msg.setSessionUuid(value);
|
|
7029
7059
|
break;
|
|
7060
|
+
case 3:
|
|
7061
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7062
|
+
msg.addLabels(value);
|
|
7063
|
+
break;
|
|
7030
7064
|
default:
|
|
7031
7065
|
reader.skipField();
|
|
7032
7066
|
break;
|
|
@@ -7070,6 +7104,13 @@ proto.ondewo.nlu.CreateSessionRequest.serializeBinaryToWriter = function(message
|
|
|
7070
7104
|
f
|
|
7071
7105
|
);
|
|
7072
7106
|
}
|
|
7107
|
+
f = message.getLabelsList();
|
|
7108
|
+
if (f.length > 0) {
|
|
7109
|
+
writer.writeRepeatedString(
|
|
7110
|
+
3,
|
|
7111
|
+
f
|
|
7112
|
+
);
|
|
7113
|
+
}
|
|
7073
7114
|
};
|
|
7074
7115
|
|
|
7075
7116
|
|
|
@@ -7109,6 +7150,43 @@ proto.ondewo.nlu.CreateSessionRequest.prototype.setSessionUuid = function(value)
|
|
|
7109
7150
|
};
|
|
7110
7151
|
|
|
7111
7152
|
|
|
7153
|
+
/**
|
|
7154
|
+
* repeated string labels = 3;
|
|
7155
|
+
* @return {!Array<string>}
|
|
7156
|
+
*/
|
|
7157
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.getLabelsList = function() {
|
|
7158
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
7159
|
+
};
|
|
7160
|
+
|
|
7161
|
+
|
|
7162
|
+
/**
|
|
7163
|
+
* @param {!Array<string>} value
|
|
7164
|
+
* @return {!proto.ondewo.nlu.CreateSessionRequest} returns this
|
|
7165
|
+
*/
|
|
7166
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.setLabelsList = function(value) {
|
|
7167
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
7168
|
+
};
|
|
7169
|
+
|
|
7170
|
+
|
|
7171
|
+
/**
|
|
7172
|
+
* @param {string} value
|
|
7173
|
+
* @param {number=} opt_index
|
|
7174
|
+
* @return {!proto.ondewo.nlu.CreateSessionRequest} returns this
|
|
7175
|
+
*/
|
|
7176
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.addLabels = function(value, opt_index) {
|
|
7177
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
7178
|
+
};
|
|
7179
|
+
|
|
7180
|
+
|
|
7181
|
+
/**
|
|
7182
|
+
* Clears the list making it empty but non-null.
|
|
7183
|
+
* @return {!proto.ondewo.nlu.CreateSessionRequest} returns this
|
|
7184
|
+
*/
|
|
7185
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.clearLabelsList = function() {
|
|
7186
|
+
return this.setLabelsList([]);
|
|
7187
|
+
};
|
|
7188
|
+
|
|
7189
|
+
|
|
7112
7190
|
|
|
7113
7191
|
|
|
7114
7192
|
|
|
@@ -8359,7 +8437,7 @@ proto.ondewo.nlu.ListSessionLabelsRequest.prototype.toObject = function(opt_incl
|
|
|
8359
8437
|
*/
|
|
8360
8438
|
proto.ondewo.nlu.ListSessionLabelsRequest.toObject = function(includeInstance, msg) {
|
|
8361
8439
|
var f, obj = {
|
|
8362
|
-
|
|
8440
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8363
8441
|
};
|
|
8364
8442
|
|
|
8365
8443
|
if (includeInstance) {
|
|
@@ -8398,7 +8476,7 @@ proto.ondewo.nlu.ListSessionLabelsRequest.deserializeBinaryFromReader = function
|
|
|
8398
8476
|
switch (field) {
|
|
8399
8477
|
case 1:
|
|
8400
8478
|
var value = /** @type {string} */ (reader.readString());
|
|
8401
|
-
msg.
|
|
8479
|
+
msg.setSessionId(value);
|
|
8402
8480
|
break;
|
|
8403
8481
|
default:
|
|
8404
8482
|
reader.skipField();
|
|
@@ -8428,6 +8506,136 @@ proto.ondewo.nlu.ListSessionLabelsRequest.prototype.serializeBinary = function()
|
|
|
8428
8506
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8429
8507
|
*/
|
|
8430
8508
|
proto.ondewo.nlu.ListSessionLabelsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8509
|
+
var f = undefined;
|
|
8510
|
+
f = message.getSessionId();
|
|
8511
|
+
if (f.length > 0) {
|
|
8512
|
+
writer.writeString(
|
|
8513
|
+
1,
|
|
8514
|
+
f
|
|
8515
|
+
);
|
|
8516
|
+
}
|
|
8517
|
+
};
|
|
8518
|
+
|
|
8519
|
+
|
|
8520
|
+
/**
|
|
8521
|
+
* optional string session_id = 1;
|
|
8522
|
+
* @return {string}
|
|
8523
|
+
*/
|
|
8524
|
+
proto.ondewo.nlu.ListSessionLabelsRequest.prototype.getSessionId = function() {
|
|
8525
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8526
|
+
};
|
|
8527
|
+
|
|
8528
|
+
|
|
8529
|
+
/**
|
|
8530
|
+
* @param {string} value
|
|
8531
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsRequest} returns this
|
|
8532
|
+
*/
|
|
8533
|
+
proto.ondewo.nlu.ListSessionLabelsRequest.prototype.setSessionId = function(value) {
|
|
8534
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8535
|
+
};
|
|
8536
|
+
|
|
8537
|
+
|
|
8538
|
+
|
|
8539
|
+
|
|
8540
|
+
|
|
8541
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8542
|
+
/**
|
|
8543
|
+
* Creates an object representation of this proto.
|
|
8544
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8545
|
+
* Optional fields that are not set will be set to undefined.
|
|
8546
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8547
|
+
* For the list of reserved names please see:
|
|
8548
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8549
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8550
|
+
* JSPB instance for transitional soy proto support:
|
|
8551
|
+
* http://goto/soy-param-migration
|
|
8552
|
+
* @return {!Object}
|
|
8553
|
+
*/
|
|
8554
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8555
|
+
return proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.toObject(opt_includeInstance, this);
|
|
8556
|
+
};
|
|
8557
|
+
|
|
8558
|
+
|
|
8559
|
+
/**
|
|
8560
|
+
* Static version of the {@see toObject} method.
|
|
8561
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8562
|
+
* the JSPB instance for transitional soy proto support:
|
|
8563
|
+
* http://goto/soy-param-migration
|
|
8564
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} msg The msg instance to transform.
|
|
8565
|
+
* @return {!Object}
|
|
8566
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8567
|
+
*/
|
|
8568
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.toObject = function(includeInstance, msg) {
|
|
8569
|
+
var f, obj = {
|
|
8570
|
+
parent: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8571
|
+
};
|
|
8572
|
+
|
|
8573
|
+
if (includeInstance) {
|
|
8574
|
+
obj.$jspbMessageInstance = msg;
|
|
8575
|
+
}
|
|
8576
|
+
return obj;
|
|
8577
|
+
};
|
|
8578
|
+
}
|
|
8579
|
+
|
|
8580
|
+
|
|
8581
|
+
/**
|
|
8582
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8583
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8584
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest}
|
|
8585
|
+
*/
|
|
8586
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.deserializeBinary = function(bytes) {
|
|
8587
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8588
|
+
var msg = new proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest;
|
|
8589
|
+
return proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
8590
|
+
};
|
|
8591
|
+
|
|
8592
|
+
|
|
8593
|
+
/**
|
|
8594
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8595
|
+
* given reader into the given message object.
|
|
8596
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} msg The message object to deserialize into.
|
|
8597
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8598
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest}
|
|
8599
|
+
*/
|
|
8600
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8601
|
+
while (reader.nextField()) {
|
|
8602
|
+
if (reader.isEndGroup()) {
|
|
8603
|
+
break;
|
|
8604
|
+
}
|
|
8605
|
+
var field = reader.getFieldNumber();
|
|
8606
|
+
switch (field) {
|
|
8607
|
+
case 1:
|
|
8608
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8609
|
+
msg.setParent(value);
|
|
8610
|
+
break;
|
|
8611
|
+
default:
|
|
8612
|
+
reader.skipField();
|
|
8613
|
+
break;
|
|
8614
|
+
}
|
|
8615
|
+
}
|
|
8616
|
+
return msg;
|
|
8617
|
+
};
|
|
8618
|
+
|
|
8619
|
+
|
|
8620
|
+
/**
|
|
8621
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8622
|
+
* @return {!Uint8Array}
|
|
8623
|
+
*/
|
|
8624
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.serializeBinary = function() {
|
|
8625
|
+
var writer = new jspb.BinaryWriter();
|
|
8626
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.serializeBinaryToWriter(this, writer);
|
|
8627
|
+
return writer.getResultBuffer();
|
|
8628
|
+
};
|
|
8629
|
+
|
|
8630
|
+
|
|
8631
|
+
/**
|
|
8632
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8633
|
+
* format), writing to the given BinaryWriter.
|
|
8634
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} message
|
|
8635
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8637
|
+
*/
|
|
8638
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8431
8639
|
var f = undefined;
|
|
8432
8640
|
f = message.getParent();
|
|
8433
8641
|
if (f.length > 0) {
|
|
@@ -8443,16 +8651,16 @@ proto.ondewo.nlu.ListSessionLabelsRequest.serializeBinaryToWriter = function(mes
|
|
|
8443
8651
|
* optional string parent = 1;
|
|
8444
8652
|
* @return {string}
|
|
8445
8653
|
*/
|
|
8446
|
-
proto.ondewo.nlu.
|
|
8654
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.getParent = function() {
|
|
8447
8655
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8448
8656
|
};
|
|
8449
8657
|
|
|
8450
8658
|
|
|
8451
8659
|
/**
|
|
8452
8660
|
* @param {string} value
|
|
8453
|
-
* @return {!proto.ondewo.nlu.
|
|
8661
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} returns this
|
|
8454
8662
|
*/
|
|
8455
|
-
proto.ondewo.nlu.
|
|
8663
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.setParent = function(value) {
|
|
8456
8664
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8457
8665
|
};
|
|
8458
8666
|
|
|
@@ -8653,8 +8861,7 @@ proto.ondewo.nlu.AddSessionLabelsRequest.prototype.toObject = function(opt_inclu
|
|
|
8653
8861
|
proto.ondewo.nlu.AddSessionLabelsRequest.toObject = function(includeInstance, msg) {
|
|
8654
8862
|
var f, obj = {
|
|
8655
8863
|
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8656
|
-
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8657
|
-
sessionView: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
8864
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8658
8865
|
};
|
|
8659
8866
|
|
|
8660
8867
|
if (includeInstance) {
|
|
@@ -8699,10 +8906,6 @@ proto.ondewo.nlu.AddSessionLabelsRequest.deserializeBinaryFromReader = function(
|
|
|
8699
8906
|
var value = /** @type {string} */ (reader.readString());
|
|
8700
8907
|
msg.addLabels(value);
|
|
8701
8908
|
break;
|
|
8702
|
-
case 3:
|
|
8703
|
-
var value = /** @type {!proto.ondewo.nlu.Session.View} */ (reader.readEnum());
|
|
8704
|
-
msg.setSessionView(value);
|
|
8705
|
-
break;
|
|
8706
8909
|
default:
|
|
8707
8910
|
reader.skipField();
|
|
8708
8911
|
break;
|
|
@@ -8746,13 +8949,6 @@ proto.ondewo.nlu.AddSessionLabelsRequest.serializeBinaryToWriter = function(mess
|
|
|
8746
8949
|
f
|
|
8747
8950
|
);
|
|
8748
8951
|
}
|
|
8749
|
-
f = message.getSessionView();
|
|
8750
|
-
if (f !== 0.0) {
|
|
8751
|
-
writer.writeEnum(
|
|
8752
|
-
3,
|
|
8753
|
-
f
|
|
8754
|
-
);
|
|
8755
|
-
}
|
|
8756
8952
|
};
|
|
8757
8953
|
|
|
8758
8954
|
|
|
@@ -8811,31 +9007,13 @@ proto.ondewo.nlu.AddSessionLabelsRequest.prototype.clearLabelsList = function()
|
|
|
8811
9007
|
};
|
|
8812
9008
|
|
|
8813
9009
|
|
|
8814
|
-
/**
|
|
8815
|
-
* optional Session.View session_view = 3;
|
|
8816
|
-
* @return {!proto.ondewo.nlu.Session.View}
|
|
8817
|
-
*/
|
|
8818
|
-
proto.ondewo.nlu.AddSessionLabelsRequest.prototype.getSessionView = function() {
|
|
8819
|
-
return /** @type {!proto.ondewo.nlu.Session.View} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
8820
|
-
};
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
/**
|
|
8824
|
-
* @param {!proto.ondewo.nlu.Session.View} value
|
|
8825
|
-
* @return {!proto.ondewo.nlu.AddSessionLabelsRequest} returns this
|
|
8826
|
-
*/
|
|
8827
|
-
proto.ondewo.nlu.AddSessionLabelsRequest.prototype.setSessionView = function(value) {
|
|
8828
|
-
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
8829
|
-
};
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
9010
|
|
|
8833
9011
|
/**
|
|
8834
9012
|
* List of repeated fields within this message type.
|
|
8835
9013
|
* @private {!Array<number>}
|
|
8836
9014
|
* @const
|
|
8837
9015
|
*/
|
|
8838
|
-
proto.ondewo.nlu.
|
|
9016
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.repeatedFields_ = [2];
|
|
8839
9017
|
|
|
8840
9018
|
|
|
8841
9019
|
|
|
@@ -8852,8 +9030,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
8852
9030
|
* http://goto/soy-param-migration
|
|
8853
9031
|
* @return {!Object}
|
|
8854
9032
|
*/
|
|
8855
|
-
proto.ondewo.nlu.
|
|
8856
|
-
return proto.ondewo.nlu.
|
|
9033
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
9034
|
+
return proto.ondewo.nlu.DeleteSessionLabelsRequest.toObject(opt_includeInstance, this);
|
|
8857
9035
|
};
|
|
8858
9036
|
|
|
8859
9037
|
|
|
@@ -8862,15 +9040,14 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.toObject = function(opt_in
|
|
|
8862
9040
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8863
9041
|
* the JSPB instance for transitional soy proto support:
|
|
8864
9042
|
* http://goto/soy-param-migration
|
|
8865
|
-
* @param {!proto.ondewo.nlu.
|
|
9043
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} msg The msg instance to transform.
|
|
8866
9044
|
* @return {!Object}
|
|
8867
9045
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8868
9046
|
*/
|
|
8869
|
-
proto.ondewo.nlu.
|
|
9047
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.toObject = function(includeInstance, msg) {
|
|
8870
9048
|
var f, obj = {
|
|
8871
9049
|
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8872
|
-
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8873
|
-
sessionView: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
9050
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8874
9051
|
};
|
|
8875
9052
|
|
|
8876
9053
|
if (includeInstance) {
|
|
@@ -8884,23 +9061,23 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.toObject = function(includeInstance,
|
|
|
8884
9061
|
/**
|
|
8885
9062
|
* Deserializes binary data (in protobuf wire format).
|
|
8886
9063
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8887
|
-
* @return {!proto.ondewo.nlu.
|
|
9064
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest}
|
|
8888
9065
|
*/
|
|
8889
|
-
proto.ondewo.nlu.
|
|
9066
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.deserializeBinary = function(bytes) {
|
|
8890
9067
|
var reader = new jspb.BinaryReader(bytes);
|
|
8891
|
-
var msg = new proto.ondewo.nlu.
|
|
8892
|
-
return proto.ondewo.nlu.
|
|
9068
|
+
var msg = new proto.ondewo.nlu.DeleteSessionLabelsRequest;
|
|
9069
|
+
return proto.ondewo.nlu.DeleteSessionLabelsRequest.deserializeBinaryFromReader(msg, reader);
|
|
8893
9070
|
};
|
|
8894
9071
|
|
|
8895
9072
|
|
|
8896
9073
|
/**
|
|
8897
9074
|
* Deserializes binary data (in protobuf wire format) from the
|
|
8898
9075
|
* given reader into the given message object.
|
|
8899
|
-
* @param {!proto.ondewo.nlu.
|
|
9076
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} msg The message object to deserialize into.
|
|
8900
9077
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8901
|
-
* @return {!proto.ondewo.nlu.
|
|
9078
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest}
|
|
8902
9079
|
*/
|
|
8903
|
-
proto.ondewo.nlu.
|
|
9080
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8904
9081
|
while (reader.nextField()) {
|
|
8905
9082
|
if (reader.isEndGroup()) {
|
|
8906
9083
|
break;
|
|
@@ -8915,10 +9092,6 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.deserializeBinaryFromReader = functi
|
|
|
8915
9092
|
var value = /** @type {string} */ (reader.readString());
|
|
8916
9093
|
msg.addLabels(value);
|
|
8917
9094
|
break;
|
|
8918
|
-
case 3:
|
|
8919
|
-
var value = /** @type {!proto.ondewo.nlu.Session.View} */ (reader.readEnum());
|
|
8920
|
-
msg.setSessionView(value);
|
|
8921
|
-
break;
|
|
8922
9095
|
default:
|
|
8923
9096
|
reader.skipField();
|
|
8924
9097
|
break;
|
|
@@ -8932,9 +9105,9 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.deserializeBinaryFromReader = functi
|
|
|
8932
9105
|
* Serializes the message to binary data (in protobuf wire format).
|
|
8933
9106
|
* @return {!Uint8Array}
|
|
8934
9107
|
*/
|
|
8935
|
-
proto.ondewo.nlu.
|
|
9108
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.serializeBinary = function() {
|
|
8936
9109
|
var writer = new jspb.BinaryWriter();
|
|
8937
|
-
proto.ondewo.nlu.
|
|
9110
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.serializeBinaryToWriter(this, writer);
|
|
8938
9111
|
return writer.getResultBuffer();
|
|
8939
9112
|
};
|
|
8940
9113
|
|
|
@@ -8942,11 +9115,11 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.serializeBinary = function
|
|
|
8942
9115
|
/**
|
|
8943
9116
|
* Serializes the given message to binary data (in protobuf wire
|
|
8944
9117
|
* format), writing to the given BinaryWriter.
|
|
8945
|
-
* @param {!proto.ondewo.nlu.
|
|
9118
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} message
|
|
8946
9119
|
* @param {!jspb.BinaryWriter} writer
|
|
8947
9120
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8948
9121
|
*/
|
|
8949
|
-
proto.ondewo.nlu.
|
|
9122
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8950
9123
|
var f = undefined;
|
|
8951
9124
|
f = message.getSessionId();
|
|
8952
9125
|
if (f.length > 0) {
|
|
@@ -8962,13 +9135,6 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.serializeBinaryToWriter = function(m
|
|
|
8962
9135
|
f
|
|
8963
9136
|
);
|
|
8964
9137
|
}
|
|
8965
|
-
f = message.getSessionView();
|
|
8966
|
-
if (f !== 0.0) {
|
|
8967
|
-
writer.writeEnum(
|
|
8968
|
-
3,
|
|
8969
|
-
f
|
|
8970
|
-
);
|
|
8971
|
-
}
|
|
8972
9138
|
};
|
|
8973
9139
|
|
|
8974
9140
|
|
|
@@ -8976,16 +9142,16 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.serializeBinaryToWriter = function(m
|
|
|
8976
9142
|
* optional string session_id = 1;
|
|
8977
9143
|
* @return {string}
|
|
8978
9144
|
*/
|
|
8979
|
-
proto.ondewo.nlu.
|
|
9145
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.getSessionId = function() {
|
|
8980
9146
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8981
9147
|
};
|
|
8982
9148
|
|
|
8983
9149
|
|
|
8984
9150
|
/**
|
|
8985
9151
|
* @param {string} value
|
|
8986
|
-
* @return {!proto.ondewo.nlu.
|
|
9152
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
8987
9153
|
*/
|
|
8988
|
-
proto.ondewo.nlu.
|
|
9154
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.setSessionId = function(value) {
|
|
8989
9155
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8990
9156
|
};
|
|
8991
9157
|
|
|
@@ -8994,16 +9160,16 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.setSessionId = function(va
|
|
|
8994
9160
|
* repeated string labels = 2;
|
|
8995
9161
|
* @return {!Array<string>}
|
|
8996
9162
|
*/
|
|
8997
|
-
proto.ondewo.nlu.
|
|
9163
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.getLabelsList = function() {
|
|
8998
9164
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
8999
9165
|
};
|
|
9000
9166
|
|
|
9001
9167
|
|
|
9002
9168
|
/**
|
|
9003
9169
|
* @param {!Array<string>} value
|
|
9004
|
-
* @return {!proto.ondewo.nlu.
|
|
9170
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
9005
9171
|
*/
|
|
9006
|
-
proto.ondewo.nlu.
|
|
9172
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.setLabelsList = function(value) {
|
|
9007
9173
|
return jspb.Message.setField(this, 2, value || []);
|
|
9008
9174
|
};
|
|
9009
9175
|
|
|
@@ -9011,40 +9177,22 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.setLabelsList = function(v
|
|
|
9011
9177
|
/**
|
|
9012
9178
|
* @param {string} value
|
|
9013
9179
|
* @param {number=} opt_index
|
|
9014
|
-
* @return {!proto.ondewo.nlu.
|
|
9180
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
9015
9181
|
*/
|
|
9016
|
-
proto.ondewo.nlu.
|
|
9182
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.addLabels = function(value, opt_index) {
|
|
9017
9183
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
9018
9184
|
};
|
|
9019
9185
|
|
|
9020
9186
|
|
|
9021
9187
|
/**
|
|
9022
9188
|
* Clears the list making it empty but non-null.
|
|
9023
|
-
* @return {!proto.ondewo.nlu.
|
|
9189
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
9024
9190
|
*/
|
|
9025
|
-
proto.ondewo.nlu.
|
|
9191
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.clearLabelsList = function() {
|
|
9026
9192
|
return this.setLabelsList([]);
|
|
9027
9193
|
};
|
|
9028
9194
|
|
|
9029
9195
|
|
|
9030
|
-
/**
|
|
9031
|
-
* optional Session.View session_view = 3;
|
|
9032
|
-
* @return {!proto.ondewo.nlu.Session.View}
|
|
9033
|
-
*/
|
|
9034
|
-
proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.getSessionView = function() {
|
|
9035
|
-
return /** @type {!proto.ondewo.nlu.Session.View} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
9036
|
-
};
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
/**
|
|
9040
|
-
* @param {!proto.ondewo.nlu.Session.View} value
|
|
9041
|
-
* @return {!proto.ondewo.nlu.RemoveSessionLabelsRequest} returns this
|
|
9042
|
-
*/
|
|
9043
|
-
proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.setSessionView = function(value) {
|
|
9044
|
-
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
9045
|
-
};
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
9196
|
|
|
9049
9197
|
|
|
9050
9198
|
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export * from './api/google/api/annotations_pb.d';
|
|
2
|
-
export * from './api/google/protobuf/any_pb.d';
|
|
3
|
-
export * from './api/google/protobuf/field_mask_pb.d';
|
|
4
|
-
export * from './api/google/protobuf/timestamp_pb.d';
|
|
5
|
-
export * from './api/google/protobuf/struct_pb.d';
|
|
6
|
-
export * from './api/google/protobuf/empty_pb.d';
|
|
7
|
-
export * from './api/google/rpc/status_pb.d';
|
|
8
|
-
export * from './api/google/type/latlng_pb.d';
|
|
9
|
-
export * from './api/ondewo/nlu/operation_metadata_pb.d';
|
|
10
|
-
export * from './api/ondewo/nlu/webhook_grpc_web_pb.d';
|
|
11
|
-
export * from './api/ondewo/nlu/common_pb.d';
|
|
12
|
-
export * from './api/ondewo/nlu/user_grpc_web_pb.d';
|
|
13
|
-
export * from './api/ondewo/nlu/server_statistics_pb.d';
|
|
14
|
-
export * from './api/ondewo/nlu/operations_pb.d';
|
|
15
|
-
export * from './api/ondewo/nlu/operations_grpc_web_pb.d';
|
|
16
|
-
export * from './api/ondewo/nlu/server_statistics_grpc_web_pb.d';
|
|
17
1
|
export * from './api/ondewo/nlu/context_grpc_web_pb.d';
|
|
18
|
-
export * from './api/ondewo/nlu/entity_type_pb.d';
|
|
19
|
-
export * from './api/ondewo/nlu/user_pb.d';
|
|
20
|
-
export * from './api/ondewo/nlu/intent_pb.d';
|
|
21
|
-
export * from './api/ondewo/nlu/project_statistics_pb.d';
|
|
22
|
-
export * from './api/ondewo/nlu/aiservices_grpc_web_pb.d';
|
|
23
2
|
export * from './api/ondewo/nlu/project_statistics_grpc_web_pb.d';
|
|
24
3
|
export * from './api/ondewo/nlu/utility_pb.d';
|
|
25
4
|
export * from './api/ondewo/nlu/utility_grpc_web_pb.d';
|
|
26
|
-
export * from './api/ondewo/nlu/
|
|
5
|
+
export * from './api/ondewo/nlu/server_statistics_grpc_web_pb.d';
|
|
6
|
+
export * from './api/ondewo/nlu/operations_grpc_web_pb.d';
|
|
7
|
+
export * from './api/ondewo/nlu/user_pb.d';
|
|
8
|
+
export * from './api/ondewo/nlu/intent_pb.d';
|
|
27
9
|
export * from './api/ondewo/nlu/context_pb.d';
|
|
28
|
-
export * from './api/ondewo/nlu/
|
|
29
|
-
export * from './api/ondewo/nlu/
|
|
30
|
-
export * from './api/ondewo/nlu/
|
|
31
|
-
export * from './api/ondewo/nlu/entity_type_grpc_web_pb.d';
|
|
10
|
+
export * from './api/ondewo/nlu/project_statistics_pb.d';
|
|
11
|
+
export * from './api/ondewo/nlu/session_pb.d';
|
|
12
|
+
export * from './api/ondewo/nlu/server_statistics_pb.d';
|
|
32
13
|
export * from './api/ondewo/nlu/agent_pb.d';
|
|
33
|
-
export * from './api/ondewo/nlu/webhook_pb.d';
|
|
34
14
|
export * from './api/ondewo/nlu/aiservices_pb.d';
|
|
35
|
-
export * from './api/ondewo/nlu/
|
|
15
|
+
export * from './api/ondewo/nlu/user_grpc_web_pb.d';
|
|
16
|
+
export * from './api/ondewo/nlu/common_pb.d';
|
|
17
|
+
export * from './api/ondewo/nlu/entity_type_pb.d';
|
|
36
18
|
export * from './api/ondewo/nlu/agent_grpc_web_pb.d';
|
|
37
|
-
export * from './api/ondewo/
|
|
19
|
+
export * from './api/ondewo/nlu/webhook_grpc_web_pb.d';
|
|
20
|
+
export * from './api/ondewo/nlu/operation_metadata_pb.d';
|
|
21
|
+
export * from './api/ondewo/nlu/project_role_grpc_web_pb.d';
|
|
22
|
+
export * from './api/ondewo/nlu/intent_grpc_web_pb.d';
|
|
23
|
+
export * from './api/ondewo/nlu/webhook_pb.d';
|
|
24
|
+
export * from './api/ondewo/nlu/project_role_pb.d';
|
|
25
|
+
export * from './api/ondewo/nlu/operations_pb.d';
|
|
26
|
+
export * from './api/ondewo/nlu/aiservices_grpc_web_pb.d';
|
|
27
|
+
export * from './api/ondewo/nlu/entity_type_grpc_web_pb.d';
|
|
28
|
+
export * from './api/ondewo/nlu/session_grpc_web_pb.d';
|
|
38
29
|
export * from './api/ondewo/qa/qa_pb.d';
|
|
30
|
+
export * from './api/ondewo/qa/qa_grpc_web_pb.d';
|
|
31
|
+
export * from './api/google/type/latlng_pb.d';
|
|
32
|
+
export * from './api/google/rpc/status_pb.d';
|
|
33
|
+
export * from './api/google/protobuf/struct_pb.d';
|
|
34
|
+
export * from './api/google/protobuf/field_mask_pb.d';
|
|
35
|
+
export * from './api/google/protobuf/any_pb.d';
|
|
36
|
+
export * from './api/google/protobuf/timestamp_pb.d';
|
|
37
|
+
export * from './api/google/protobuf/empty_pb.d';
|
|
38
|
+
export * from './api/google/api/annotations_pb.d';
|