Skip to content

Commit d202602

Browse files
committed
Update generated files
1 parent d97c601 commit d202602

28 files changed

+5253
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "languagemodeling/v1/languagemodeling.proto",
5+
"version": "version not set"
6+
},
7+
"tags": [
8+
{
9+
"name": "LanguageModelingService"
10+
}
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/v1/predict": {
20+
"post": {
21+
"operationId": "LanguageModelingService_Predict",
22+
"responses": {
23+
"200": {
24+
"description": "A successful response.",
25+
"schema": {
26+
"$ref": "#/definitions/v1LanguageModelingResponse"
27+
}
28+
},
29+
"default": {
30+
"description": "An unexpected error response.",
31+
"schema": {
32+
"$ref": "#/definitions/rpcStatus"
33+
}
34+
}
35+
},
36+
"parameters": [
37+
{
38+
"name": "body",
39+
"in": "body",
40+
"required": true,
41+
"schema": {
42+
"$ref": "#/definitions/v1LanguageModelingRequest"
43+
}
44+
}
45+
],
46+
"tags": [
47+
"LanguageModelingService"
48+
]
49+
}
50+
}
51+
},
52+
"definitions": {
53+
"protobufAny": {
54+
"type": "object",
55+
"properties": {
56+
"@type": {
57+
"type": "string"
58+
}
59+
},
60+
"additionalProperties": {}
61+
},
62+
"rpcStatus": {
63+
"type": "object",
64+
"properties": {
65+
"code": {
66+
"type": "integer",
67+
"format": "int32"
68+
},
69+
"message": {
70+
"type": "string"
71+
},
72+
"details": {
73+
"type": "array",
74+
"items": {
75+
"type": "object",
76+
"$ref": "#/definitions/protobufAny"
77+
}
78+
}
79+
}
80+
},
81+
"v1LanguageModelingParameters": {
82+
"type": "object",
83+
"properties": {
84+
"k": {
85+
"type": "integer",
86+
"format": "int32"
87+
}
88+
}
89+
},
90+
"v1LanguageModelingRequest": {
91+
"type": "object",
92+
"properties": {
93+
"input": {
94+
"type": "string"
95+
},
96+
"parameters": {
97+
"$ref": "#/definitions/v1LanguageModelingParameters"
98+
}
99+
}
100+
},
101+
"v1LanguageModelingResponse": {
102+
"type": "object",
103+
"properties": {
104+
"tokens": {
105+
"type": "array",
106+
"items": {
107+
"type": "object",
108+
"$ref": "#/definitions/v1Token"
109+
}
110+
}
111+
}
112+
},
113+
"v1Token": {
114+
"type": "object",
115+
"properties": {
116+
"start": {
117+
"type": "integer",
118+
"format": "int32"
119+
},
120+
"end": {
121+
"type": "integer",
122+
"format": "int32"
123+
},
124+
"words": {
125+
"type": "array",
126+
"items": {
127+
"type": "string"
128+
}
129+
},
130+
"scores": {
131+
"type": "array",
132+
"items": {
133+
"type": "number",
134+
"format": "double"
135+
}
136+
}
137+
}
138+
}
139+
}
140+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "questionanswering/v1/questionanswering.proto",
5+
"version": "version not set"
6+
},
7+
"tags": [
8+
{
9+
"name": "QuestionAnsweringService"
10+
}
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/v1/answer": {
20+
"post": {
21+
"operationId": "QuestionAnsweringService_Answer",
22+
"responses": {
23+
"200": {
24+
"description": "A successful response.",
25+
"schema": {
26+
"$ref": "#/definitions/v1AnswerResponse"
27+
}
28+
},
29+
"default": {
30+
"description": "An unexpected error response.",
31+
"schema": {
32+
"$ref": "#/definitions/rpcStatus"
33+
}
34+
}
35+
},
36+
"parameters": [
37+
{
38+
"name": "body",
39+
"in": "body",
40+
"required": true,
41+
"schema": {
42+
"$ref": "#/definitions/v1AnswerRequest"
43+
}
44+
}
45+
],
46+
"tags": [
47+
"QuestionAnsweringService"
48+
]
49+
}
50+
}
51+
},
52+
"definitions": {
53+
"protobufAny": {
54+
"type": "object",
55+
"properties": {
56+
"@type": {
57+
"type": "string"
58+
}
59+
},
60+
"additionalProperties": {}
61+
},
62+
"rpcStatus": {
63+
"type": "object",
64+
"properties": {
65+
"code": {
66+
"type": "integer",
67+
"format": "int32"
68+
},
69+
"message": {
70+
"type": "string"
71+
},
72+
"details": {
73+
"type": "array",
74+
"items": {
75+
"type": "object",
76+
"$ref": "#/definitions/protobufAny"
77+
}
78+
}
79+
}
80+
},
81+
"v1Answer": {
82+
"type": "object",
83+
"properties": {
84+
"text": {
85+
"type": "string"
86+
},
87+
"start": {
88+
"type": "string",
89+
"format": "int64"
90+
},
91+
"end": {
92+
"type": "string",
93+
"format": "int64"
94+
},
95+
"score": {
96+
"type": "number",
97+
"format": "double"
98+
}
99+
}
100+
},
101+
"v1AnswerRequest": {
102+
"type": "object",
103+
"properties": {
104+
"question": {
105+
"type": "string"
106+
},
107+
"passage": {
108+
"type": "string"
109+
},
110+
"options": {
111+
"$ref": "#/definitions/v1QuestionAnsweringOptions"
112+
}
113+
}
114+
},
115+
"v1AnswerResponse": {
116+
"type": "object",
117+
"properties": {
118+
"answers": {
119+
"type": "array",
120+
"items": {
121+
"type": "object",
122+
"$ref": "#/definitions/v1Answer"
123+
}
124+
}
125+
}
126+
},
127+
"v1QuestionAnsweringOptions": {
128+
"type": "object",
129+
"properties": {
130+
"maxAnswers": {
131+
"type": "string",
132+
"format": "int64"
133+
},
134+
"maxAnswersLen": {
135+
"type": "string",
136+
"format": "int64"
137+
},
138+
"maxCandidates": {
139+
"type": "string",
140+
"format": "int64"
141+
},
142+
"minScore": {
143+
"type": "number",
144+
"format": "double"
145+
}
146+
}
147+
}
148+
}
149+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "textclassification/v1/textclassification.proto",
5+
"version": "version not set"
6+
},
7+
"tags": [
8+
{
9+
"name": "TextClassificationService"
10+
}
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/v1/classify": {
20+
"post": {
21+
"operationId": "TextClassificationService_Classify",
22+
"responses": {
23+
"200": {
24+
"description": "A successful response.",
25+
"schema": {
26+
"$ref": "#/definitions/v1ClassifyResponse"
27+
}
28+
},
29+
"default": {
30+
"description": "An unexpected error response.",
31+
"schema": {
32+
"$ref": "#/definitions/rpcStatus"
33+
}
34+
}
35+
},
36+
"parameters": [
37+
{
38+
"name": "body",
39+
"in": "body",
40+
"required": true,
41+
"schema": {
42+
"$ref": "#/definitions/v1ClassifyRequest"
43+
}
44+
}
45+
],
46+
"tags": [
47+
"TextClassificationService"
48+
]
49+
}
50+
}
51+
},
52+
"definitions": {
53+
"protobufAny": {
54+
"type": "object",
55+
"properties": {
56+
"@type": {
57+
"type": "string"
58+
}
59+
},
60+
"additionalProperties": {}
61+
},
62+
"rpcStatus": {
63+
"type": "object",
64+
"properties": {
65+
"code": {
66+
"type": "integer",
67+
"format": "int32"
68+
},
69+
"message": {
70+
"type": "string"
71+
},
72+
"details": {
73+
"type": "array",
74+
"items": {
75+
"type": "object",
76+
"$ref": "#/definitions/protobufAny"
77+
}
78+
}
79+
}
80+
},
81+
"v1ClassifyRequest": {
82+
"type": "object",
83+
"properties": {
84+
"input": {
85+
"type": "string"
86+
}
87+
}
88+
},
89+
"v1ClassifyResponse": {
90+
"type": "object",
91+
"properties": {
92+
"labels": {
93+
"type": "array",
94+
"items": {
95+
"type": "string"
96+
}
97+
},
98+
"scores": {
99+
"type": "array",
100+
"items": {
101+
"type": "number",
102+
"format": "double"
103+
}
104+
}
105+
}
106+
}
107+
}
108+
}

0 commit comments

Comments
 (0)