google-cloud-language-v1beta2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +24 -0
- data/lib/google-cloud-language-v1beta2.rb +1 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/lib/google/cloud/language/v1beta2.rb +19 -0
- data/lib/google/cloud/language/v1beta2/language_service.rb +20 -0
- data/lib/google/cloud/language/v1beta2/language_service/client.rb +735 -0
- data/lib/google/cloud/language/v1beta2/language_service/credentials.rb +53 -0
- data/lib/google/cloud/language/v1beta2/language_service_pb.rb +405 -0
- data/lib/google/cloud/language/v1beta2/language_service_services_pb.rb +63 -0
- data/lib/google/cloud/language/v1beta2/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/language/v1beta2/language_service.rb +1131 -0
- data/proto_docs/google/protobuf/timestamp.rb +116 -0
- metadata +174 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Language
|
25
|
+
module V1beta2
|
26
|
+
module LanguageService
|
27
|
+
# Credentials for the LanguageService API.
|
28
|
+
class Credentials < Google::Auth::Credentials
|
29
|
+
self.scope = [
|
30
|
+
"https://www.googleapis.com/auth/cloud-language",
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
32
|
+
]
|
33
|
+
self.env_vars = [
|
34
|
+
"LANGUAGE_CREDENTIALS",
|
35
|
+
"LANGUAGE_KEYFILE",
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
37
|
+
"GOOGLE_CLOUD_KEYFILE",
|
38
|
+
"GCLOUD_KEYFILE",
|
39
|
+
"LANGUAGE_CREDENTIALS_JSON",
|
40
|
+
"LANGUAGE_KEYFILE_JSON",
|
41
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
42
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
43
|
+
"GCLOUD_KEYFILE_JSON"
|
44
|
+
]
|
45
|
+
self.paths = [
|
46
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
47
|
+
]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,405 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/language/v1beta2/language_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/cloud/language/v1beta2/language_service.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.language.v1beta2.Document" do
|
13
|
+
optional :type, :enum, 1, "google.cloud.language.v1beta2.Document.Type"
|
14
|
+
optional :language, :string, 4
|
15
|
+
oneof :source do
|
16
|
+
optional :content, :string, 2
|
17
|
+
optional :gcs_content_uri, :string, 3
|
18
|
+
end
|
19
|
+
end
|
20
|
+
add_enum "google.cloud.language.v1beta2.Document.Type" do
|
21
|
+
value :TYPE_UNSPECIFIED, 0
|
22
|
+
value :PLAIN_TEXT, 1
|
23
|
+
value :HTML, 2
|
24
|
+
end
|
25
|
+
add_message "google.cloud.language.v1beta2.Sentence" do
|
26
|
+
optional :text, :message, 1, "google.cloud.language.v1beta2.TextSpan"
|
27
|
+
optional :sentiment, :message, 2, "google.cloud.language.v1beta2.Sentiment"
|
28
|
+
end
|
29
|
+
add_message "google.cloud.language.v1beta2.Entity" do
|
30
|
+
optional :name, :string, 1
|
31
|
+
optional :type, :enum, 2, "google.cloud.language.v1beta2.Entity.Type"
|
32
|
+
map :metadata, :string, :string, 3
|
33
|
+
optional :salience, :float, 4
|
34
|
+
repeated :mentions, :message, 5, "google.cloud.language.v1beta2.EntityMention"
|
35
|
+
optional :sentiment, :message, 6, "google.cloud.language.v1beta2.Sentiment"
|
36
|
+
end
|
37
|
+
add_enum "google.cloud.language.v1beta2.Entity.Type" do
|
38
|
+
value :UNKNOWN, 0
|
39
|
+
value :PERSON, 1
|
40
|
+
value :LOCATION, 2
|
41
|
+
value :ORGANIZATION, 3
|
42
|
+
value :EVENT, 4
|
43
|
+
value :WORK_OF_ART, 5
|
44
|
+
value :CONSUMER_GOOD, 6
|
45
|
+
value :OTHER, 7
|
46
|
+
value :PHONE_NUMBER, 9
|
47
|
+
value :ADDRESS, 10
|
48
|
+
value :DATE, 11
|
49
|
+
value :NUMBER, 12
|
50
|
+
value :PRICE, 13
|
51
|
+
end
|
52
|
+
add_message "google.cloud.language.v1beta2.Token" do
|
53
|
+
optional :text, :message, 1, "google.cloud.language.v1beta2.TextSpan"
|
54
|
+
optional :part_of_speech, :message, 2, "google.cloud.language.v1beta2.PartOfSpeech"
|
55
|
+
optional :dependency_edge, :message, 3, "google.cloud.language.v1beta2.DependencyEdge"
|
56
|
+
optional :lemma, :string, 4
|
57
|
+
end
|
58
|
+
add_message "google.cloud.language.v1beta2.Sentiment" do
|
59
|
+
optional :magnitude, :float, 2
|
60
|
+
optional :score, :float, 3
|
61
|
+
end
|
62
|
+
add_message "google.cloud.language.v1beta2.PartOfSpeech" do
|
63
|
+
optional :tag, :enum, 1, "google.cloud.language.v1beta2.PartOfSpeech.Tag"
|
64
|
+
optional :aspect, :enum, 2, "google.cloud.language.v1beta2.PartOfSpeech.Aspect"
|
65
|
+
optional :case, :enum, 3, "google.cloud.language.v1beta2.PartOfSpeech.Case"
|
66
|
+
optional :form, :enum, 4, "google.cloud.language.v1beta2.PartOfSpeech.Form"
|
67
|
+
optional :gender, :enum, 5, "google.cloud.language.v1beta2.PartOfSpeech.Gender"
|
68
|
+
optional :mood, :enum, 6, "google.cloud.language.v1beta2.PartOfSpeech.Mood"
|
69
|
+
optional :number, :enum, 7, "google.cloud.language.v1beta2.PartOfSpeech.Number"
|
70
|
+
optional :person, :enum, 8, "google.cloud.language.v1beta2.PartOfSpeech.Person"
|
71
|
+
optional :proper, :enum, 9, "google.cloud.language.v1beta2.PartOfSpeech.Proper"
|
72
|
+
optional :reciprocity, :enum, 10, "google.cloud.language.v1beta2.PartOfSpeech.Reciprocity"
|
73
|
+
optional :tense, :enum, 11, "google.cloud.language.v1beta2.PartOfSpeech.Tense"
|
74
|
+
optional :voice, :enum, 12, "google.cloud.language.v1beta2.PartOfSpeech.Voice"
|
75
|
+
end
|
76
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Tag" do
|
77
|
+
value :UNKNOWN, 0
|
78
|
+
value :ADJ, 1
|
79
|
+
value :ADP, 2
|
80
|
+
value :ADV, 3
|
81
|
+
value :CONJ, 4
|
82
|
+
value :DET, 5
|
83
|
+
value :NOUN, 6
|
84
|
+
value :NUM, 7
|
85
|
+
value :PRON, 8
|
86
|
+
value :PRT, 9
|
87
|
+
value :PUNCT, 10
|
88
|
+
value :VERB, 11
|
89
|
+
value :X, 12
|
90
|
+
value :AFFIX, 13
|
91
|
+
end
|
92
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Aspect" do
|
93
|
+
value :ASPECT_UNKNOWN, 0
|
94
|
+
value :PERFECTIVE, 1
|
95
|
+
value :IMPERFECTIVE, 2
|
96
|
+
value :PROGRESSIVE, 3
|
97
|
+
end
|
98
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Case" do
|
99
|
+
value :CASE_UNKNOWN, 0
|
100
|
+
value :ACCUSATIVE, 1
|
101
|
+
value :ADVERBIAL, 2
|
102
|
+
value :COMPLEMENTIVE, 3
|
103
|
+
value :DATIVE, 4
|
104
|
+
value :GENITIVE, 5
|
105
|
+
value :INSTRUMENTAL, 6
|
106
|
+
value :LOCATIVE, 7
|
107
|
+
value :NOMINATIVE, 8
|
108
|
+
value :OBLIQUE, 9
|
109
|
+
value :PARTITIVE, 10
|
110
|
+
value :PREPOSITIONAL, 11
|
111
|
+
value :REFLEXIVE_CASE, 12
|
112
|
+
value :RELATIVE_CASE, 13
|
113
|
+
value :VOCATIVE, 14
|
114
|
+
end
|
115
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Form" do
|
116
|
+
value :FORM_UNKNOWN, 0
|
117
|
+
value :ADNOMIAL, 1
|
118
|
+
value :AUXILIARY, 2
|
119
|
+
value :COMPLEMENTIZER, 3
|
120
|
+
value :FINAL_ENDING, 4
|
121
|
+
value :GERUND, 5
|
122
|
+
value :REALIS, 6
|
123
|
+
value :IRREALIS, 7
|
124
|
+
value :SHORT, 8
|
125
|
+
value :LONG, 9
|
126
|
+
value :ORDER, 10
|
127
|
+
value :SPECIFIC, 11
|
128
|
+
end
|
129
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Gender" do
|
130
|
+
value :GENDER_UNKNOWN, 0
|
131
|
+
value :FEMININE, 1
|
132
|
+
value :MASCULINE, 2
|
133
|
+
value :NEUTER, 3
|
134
|
+
end
|
135
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Mood" do
|
136
|
+
value :MOOD_UNKNOWN, 0
|
137
|
+
value :CONDITIONAL_MOOD, 1
|
138
|
+
value :IMPERATIVE, 2
|
139
|
+
value :INDICATIVE, 3
|
140
|
+
value :INTERROGATIVE, 4
|
141
|
+
value :JUSSIVE, 5
|
142
|
+
value :SUBJUNCTIVE, 6
|
143
|
+
end
|
144
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Number" do
|
145
|
+
value :NUMBER_UNKNOWN, 0
|
146
|
+
value :SINGULAR, 1
|
147
|
+
value :PLURAL, 2
|
148
|
+
value :DUAL, 3
|
149
|
+
end
|
150
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Person" do
|
151
|
+
value :PERSON_UNKNOWN, 0
|
152
|
+
value :FIRST, 1
|
153
|
+
value :SECOND, 2
|
154
|
+
value :THIRD, 3
|
155
|
+
value :REFLEXIVE_PERSON, 4
|
156
|
+
end
|
157
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Proper" do
|
158
|
+
value :PROPER_UNKNOWN, 0
|
159
|
+
value :PROPER, 1
|
160
|
+
value :NOT_PROPER, 2
|
161
|
+
end
|
162
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Reciprocity" do
|
163
|
+
value :RECIPROCITY_UNKNOWN, 0
|
164
|
+
value :RECIPROCAL, 1
|
165
|
+
value :NON_RECIPROCAL, 2
|
166
|
+
end
|
167
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Tense" do
|
168
|
+
value :TENSE_UNKNOWN, 0
|
169
|
+
value :CONDITIONAL_TENSE, 1
|
170
|
+
value :FUTURE, 2
|
171
|
+
value :PAST, 3
|
172
|
+
value :PRESENT, 4
|
173
|
+
value :IMPERFECT, 5
|
174
|
+
value :PLUPERFECT, 6
|
175
|
+
end
|
176
|
+
add_enum "google.cloud.language.v1beta2.PartOfSpeech.Voice" do
|
177
|
+
value :VOICE_UNKNOWN, 0
|
178
|
+
value :ACTIVE, 1
|
179
|
+
value :CAUSATIVE, 2
|
180
|
+
value :PASSIVE, 3
|
181
|
+
end
|
182
|
+
add_message "google.cloud.language.v1beta2.DependencyEdge" do
|
183
|
+
optional :head_token_index, :int32, 1
|
184
|
+
optional :label, :enum, 2, "google.cloud.language.v1beta2.DependencyEdge.Label"
|
185
|
+
end
|
186
|
+
add_enum "google.cloud.language.v1beta2.DependencyEdge.Label" do
|
187
|
+
value :UNKNOWN, 0
|
188
|
+
value :ABBREV, 1
|
189
|
+
value :ACOMP, 2
|
190
|
+
value :ADVCL, 3
|
191
|
+
value :ADVMOD, 4
|
192
|
+
value :AMOD, 5
|
193
|
+
value :APPOS, 6
|
194
|
+
value :ATTR, 7
|
195
|
+
value :AUX, 8
|
196
|
+
value :AUXPASS, 9
|
197
|
+
value :CC, 10
|
198
|
+
value :CCOMP, 11
|
199
|
+
value :CONJ, 12
|
200
|
+
value :CSUBJ, 13
|
201
|
+
value :CSUBJPASS, 14
|
202
|
+
value :DEP, 15
|
203
|
+
value :DET, 16
|
204
|
+
value :DISCOURSE, 17
|
205
|
+
value :DOBJ, 18
|
206
|
+
value :EXPL, 19
|
207
|
+
value :GOESWITH, 20
|
208
|
+
value :IOBJ, 21
|
209
|
+
value :MARK, 22
|
210
|
+
value :MWE, 23
|
211
|
+
value :MWV, 24
|
212
|
+
value :NEG, 25
|
213
|
+
value :NN, 26
|
214
|
+
value :NPADVMOD, 27
|
215
|
+
value :NSUBJ, 28
|
216
|
+
value :NSUBJPASS, 29
|
217
|
+
value :NUM, 30
|
218
|
+
value :NUMBER, 31
|
219
|
+
value :P, 32
|
220
|
+
value :PARATAXIS, 33
|
221
|
+
value :PARTMOD, 34
|
222
|
+
value :PCOMP, 35
|
223
|
+
value :POBJ, 36
|
224
|
+
value :POSS, 37
|
225
|
+
value :POSTNEG, 38
|
226
|
+
value :PRECOMP, 39
|
227
|
+
value :PRECONJ, 40
|
228
|
+
value :PREDET, 41
|
229
|
+
value :PREF, 42
|
230
|
+
value :PREP, 43
|
231
|
+
value :PRONL, 44
|
232
|
+
value :PRT, 45
|
233
|
+
value :PS, 46
|
234
|
+
value :QUANTMOD, 47
|
235
|
+
value :RCMOD, 48
|
236
|
+
value :RCMODREL, 49
|
237
|
+
value :RDROP, 50
|
238
|
+
value :REF, 51
|
239
|
+
value :REMNANT, 52
|
240
|
+
value :REPARANDUM, 53
|
241
|
+
value :ROOT, 54
|
242
|
+
value :SNUM, 55
|
243
|
+
value :SUFF, 56
|
244
|
+
value :TMOD, 57
|
245
|
+
value :TOPIC, 58
|
246
|
+
value :VMOD, 59
|
247
|
+
value :VOCATIVE, 60
|
248
|
+
value :XCOMP, 61
|
249
|
+
value :SUFFIX, 62
|
250
|
+
value :TITLE, 63
|
251
|
+
value :ADVPHMOD, 64
|
252
|
+
value :AUXCAUS, 65
|
253
|
+
value :AUXVV, 66
|
254
|
+
value :DTMOD, 67
|
255
|
+
value :FOREIGN, 68
|
256
|
+
value :KW, 69
|
257
|
+
value :LIST, 70
|
258
|
+
value :NOMC, 71
|
259
|
+
value :NOMCSUBJ, 72
|
260
|
+
value :NOMCSUBJPASS, 73
|
261
|
+
value :NUMC, 74
|
262
|
+
value :COP, 75
|
263
|
+
value :DISLOCATED, 76
|
264
|
+
value :ASP, 77
|
265
|
+
value :GMOD, 78
|
266
|
+
value :GOBJ, 79
|
267
|
+
value :INFMOD, 80
|
268
|
+
value :MES, 81
|
269
|
+
value :NCOMP, 82
|
270
|
+
end
|
271
|
+
add_message "google.cloud.language.v1beta2.EntityMention" do
|
272
|
+
optional :text, :message, 1, "google.cloud.language.v1beta2.TextSpan"
|
273
|
+
optional :type, :enum, 2, "google.cloud.language.v1beta2.EntityMention.Type"
|
274
|
+
optional :sentiment, :message, 3, "google.cloud.language.v1beta2.Sentiment"
|
275
|
+
end
|
276
|
+
add_enum "google.cloud.language.v1beta2.EntityMention.Type" do
|
277
|
+
value :TYPE_UNKNOWN, 0
|
278
|
+
value :PROPER, 1
|
279
|
+
value :COMMON, 2
|
280
|
+
end
|
281
|
+
add_message "google.cloud.language.v1beta2.TextSpan" do
|
282
|
+
optional :content, :string, 1
|
283
|
+
optional :begin_offset, :int32, 2
|
284
|
+
end
|
285
|
+
add_message "google.cloud.language.v1beta2.ClassificationCategory" do
|
286
|
+
optional :name, :string, 1
|
287
|
+
optional :confidence, :float, 2
|
288
|
+
end
|
289
|
+
add_message "google.cloud.language.v1beta2.AnalyzeSentimentRequest" do
|
290
|
+
optional :document, :message, 1, "google.cloud.language.v1beta2.Document"
|
291
|
+
optional :encoding_type, :enum, 2, "google.cloud.language.v1beta2.EncodingType"
|
292
|
+
end
|
293
|
+
add_message "google.cloud.language.v1beta2.AnalyzeSentimentResponse" do
|
294
|
+
optional :document_sentiment, :message, 1, "google.cloud.language.v1beta2.Sentiment"
|
295
|
+
optional :language, :string, 2
|
296
|
+
repeated :sentences, :message, 3, "google.cloud.language.v1beta2.Sentence"
|
297
|
+
end
|
298
|
+
add_message "google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest" do
|
299
|
+
optional :document, :message, 1, "google.cloud.language.v1beta2.Document"
|
300
|
+
optional :encoding_type, :enum, 2, "google.cloud.language.v1beta2.EncodingType"
|
301
|
+
end
|
302
|
+
add_message "google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse" do
|
303
|
+
repeated :entities, :message, 1, "google.cloud.language.v1beta2.Entity"
|
304
|
+
optional :language, :string, 2
|
305
|
+
end
|
306
|
+
add_message "google.cloud.language.v1beta2.AnalyzeEntitiesRequest" do
|
307
|
+
optional :document, :message, 1, "google.cloud.language.v1beta2.Document"
|
308
|
+
optional :encoding_type, :enum, 2, "google.cloud.language.v1beta2.EncodingType"
|
309
|
+
end
|
310
|
+
add_message "google.cloud.language.v1beta2.AnalyzeEntitiesResponse" do
|
311
|
+
repeated :entities, :message, 1, "google.cloud.language.v1beta2.Entity"
|
312
|
+
optional :language, :string, 2
|
313
|
+
end
|
314
|
+
add_message "google.cloud.language.v1beta2.AnalyzeSyntaxRequest" do
|
315
|
+
optional :document, :message, 1, "google.cloud.language.v1beta2.Document"
|
316
|
+
optional :encoding_type, :enum, 2, "google.cloud.language.v1beta2.EncodingType"
|
317
|
+
end
|
318
|
+
add_message "google.cloud.language.v1beta2.AnalyzeSyntaxResponse" do
|
319
|
+
repeated :sentences, :message, 1, "google.cloud.language.v1beta2.Sentence"
|
320
|
+
repeated :tokens, :message, 2, "google.cloud.language.v1beta2.Token"
|
321
|
+
optional :language, :string, 3
|
322
|
+
end
|
323
|
+
add_message "google.cloud.language.v1beta2.ClassifyTextRequest" do
|
324
|
+
optional :document, :message, 1, "google.cloud.language.v1beta2.Document"
|
325
|
+
end
|
326
|
+
add_message "google.cloud.language.v1beta2.ClassifyTextResponse" do
|
327
|
+
repeated :categories, :message, 1, "google.cloud.language.v1beta2.ClassificationCategory"
|
328
|
+
end
|
329
|
+
add_message "google.cloud.language.v1beta2.AnnotateTextRequest" do
|
330
|
+
optional :document, :message, 1, "google.cloud.language.v1beta2.Document"
|
331
|
+
optional :features, :message, 2, "google.cloud.language.v1beta2.AnnotateTextRequest.Features"
|
332
|
+
optional :encoding_type, :enum, 3, "google.cloud.language.v1beta2.EncodingType"
|
333
|
+
end
|
334
|
+
add_message "google.cloud.language.v1beta2.AnnotateTextRequest.Features" do
|
335
|
+
optional :extract_syntax, :bool, 1
|
336
|
+
optional :extract_entities, :bool, 2
|
337
|
+
optional :extract_document_sentiment, :bool, 3
|
338
|
+
optional :extract_entity_sentiment, :bool, 4
|
339
|
+
optional :classify_text, :bool, 6
|
340
|
+
end
|
341
|
+
add_message "google.cloud.language.v1beta2.AnnotateTextResponse" do
|
342
|
+
repeated :sentences, :message, 1, "google.cloud.language.v1beta2.Sentence"
|
343
|
+
repeated :tokens, :message, 2, "google.cloud.language.v1beta2.Token"
|
344
|
+
repeated :entities, :message, 3, "google.cloud.language.v1beta2.Entity"
|
345
|
+
optional :document_sentiment, :message, 4, "google.cloud.language.v1beta2.Sentiment"
|
346
|
+
optional :language, :string, 5
|
347
|
+
repeated :categories, :message, 6, "google.cloud.language.v1beta2.ClassificationCategory"
|
348
|
+
end
|
349
|
+
add_enum "google.cloud.language.v1beta2.EncodingType" do
|
350
|
+
value :NONE, 0
|
351
|
+
value :UTF8, 1
|
352
|
+
value :UTF16, 2
|
353
|
+
value :UTF32, 3
|
354
|
+
end
|
355
|
+
end
|
356
|
+
end
|
357
|
+
|
358
|
+
module Google
|
359
|
+
module Cloud
|
360
|
+
module Language
|
361
|
+
module V1beta2
|
362
|
+
Document = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.Document").msgclass
|
363
|
+
Document::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.Document.Type").enummodule
|
364
|
+
Sentence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.Sentence").msgclass
|
365
|
+
Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.Entity").msgclass
|
366
|
+
Entity::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.Entity.Type").enummodule
|
367
|
+
Token = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.Token").msgclass
|
368
|
+
Sentiment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.Sentiment").msgclass
|
369
|
+
PartOfSpeech = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech").msgclass
|
370
|
+
PartOfSpeech::Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Tag").enummodule
|
371
|
+
PartOfSpeech::Aspect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Aspect").enummodule
|
372
|
+
PartOfSpeech::Case = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Case").enummodule
|
373
|
+
PartOfSpeech::Form = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Form").enummodule
|
374
|
+
PartOfSpeech::Gender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Gender").enummodule
|
375
|
+
PartOfSpeech::Mood = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Mood").enummodule
|
376
|
+
PartOfSpeech::Number = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Number").enummodule
|
377
|
+
PartOfSpeech::Person = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Person").enummodule
|
378
|
+
PartOfSpeech::Proper = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Proper").enummodule
|
379
|
+
PartOfSpeech::Reciprocity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Reciprocity").enummodule
|
380
|
+
PartOfSpeech::Tense = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Tense").enummodule
|
381
|
+
PartOfSpeech::Voice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.PartOfSpeech.Voice").enummodule
|
382
|
+
DependencyEdge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.DependencyEdge").msgclass
|
383
|
+
DependencyEdge::Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.DependencyEdge.Label").enummodule
|
384
|
+
EntityMention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.EntityMention").msgclass
|
385
|
+
EntityMention::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.EntityMention.Type").enummodule
|
386
|
+
TextSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.TextSpan").msgclass
|
387
|
+
ClassificationCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.ClassificationCategory").msgclass
|
388
|
+
AnalyzeSentimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeSentimentRequest").msgclass
|
389
|
+
AnalyzeSentimentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeSentimentResponse").msgclass
|
390
|
+
AnalyzeEntitySentimentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest").msgclass
|
391
|
+
AnalyzeEntitySentimentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse").msgclass
|
392
|
+
AnalyzeEntitiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeEntitiesRequest").msgclass
|
393
|
+
AnalyzeEntitiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeEntitiesResponse").msgclass
|
394
|
+
AnalyzeSyntaxRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeSyntaxRequest").msgclass
|
395
|
+
AnalyzeSyntaxResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnalyzeSyntaxResponse").msgclass
|
396
|
+
ClassifyTextRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.ClassifyTextRequest").msgclass
|
397
|
+
ClassifyTextResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.ClassifyTextResponse").msgclass
|
398
|
+
AnnotateTextRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnnotateTextRequest").msgclass
|
399
|
+
AnnotateTextRequest::Features = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnnotateTextRequest.Features").msgclass
|
400
|
+
AnnotateTextResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.AnnotateTextResponse").msgclass
|
401
|
+
EncodingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta2.EncodingType").enummodule
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|