google-cloud-language 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/language/v1beta1/language_service.proto for package 'google.cloud.language.v1beta1'
2
+ # Source: google/cloud/language/v1/language_service.proto for package 'google.cloud.language.v1'
3
3
  # Original file comments:
4
4
  # Copyright 2016 Google Inc.
5
5
  #
@@ -17,12 +17,12 @@
17
17
  #
18
18
 
19
19
  require 'grpc'
20
- require 'google/cloud/language/v1beta1/language_service_pb'
20
+ require 'google/cloud/language/v1/language_service_pb'
21
21
 
22
22
  module Google
23
23
  module Cloud
24
24
  module Language
25
- module V1beta1
25
+ module V1
26
26
  module LanguageService
27
27
  # Provides text analysis operations such as sentiment analysis and entity
28
28
  # recognition.
@@ -32,17 +32,19 @@ module Google
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
35
- self.service_name = 'google.cloud.language.v1beta1.LanguageService'
35
+ self.service_name = 'google.cloud.language.v1.LanguageService'
36
36
 
37
37
  # Analyzes the sentiment of the provided text.
38
38
  rpc :AnalyzeSentiment, AnalyzeSentimentRequest, AnalyzeSentimentResponse
39
39
  # Finds named entities (currently finds proper names) in the text,
40
40
  # entity types, salience, mentions for each entity, and other properties.
41
41
  rpc :AnalyzeEntities, AnalyzeEntitiesRequest, AnalyzeEntitiesResponse
42
- # Advanced API that analyzes the document and provides a full set of text
43
- # annotations, including semantic, syntactic, and sentiment information. This
44
- # API is intended for users who are familiar with machine learning and need
45
- # in-depth text features to build upon.
42
+ # Analyzes the syntax of the text and provides sentence boundaries and
43
+ # tokenization along with part of speech tags, dependency trees, and other
44
+ # properties.
45
+ rpc :AnalyzeSyntax, AnalyzeSyntaxRequest, AnalyzeSyntaxResponse
46
+ # A convenience method that provides all the features that analyzeSentiment,
47
+ # analyzeEntities, and analyzeSyntax provide in one call.
46
48
  rpc :AnnotateText, AnnotateTextRequest, AnnotateTextResponse
47
49
  end
48
50
 
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Language
19
- VERSION = "0.21.0"
19
+ VERSION = "0.22.0"
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-language
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-20 00:00:00.000000000 Z
12
+ date: 2016-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -199,14 +199,14 @@ dependencies:
199
199
  requirements:
200
200
  - - "~>"
201
201
  - !ruby/object:Gem::Version
202
- version: 0.1.6
202
+ version: 0.1.8
203
203
  type: :development
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
206
206
  requirements:
207
207
  - - "~>"
208
208
  - !ruby/object:Gem::Version
209
- version: 0.1.6
209
+ version: 0.1.8
210
210
  description: google-cloud-language is the official library for Google Cloud Natural
211
211
  Language API.
212
212
  email:
@@ -216,6 +216,9 @@ executables: []
216
216
  extensions: []
217
217
  extra_rdoc_files: []
218
218
  files:
219
+ - ".yardopts"
220
+ - LICENSE
221
+ - README.md
219
222
  - lib/google-cloud-language.rb
220
223
  - lib/google/cloud/language.rb
221
224
  - lib/google/cloud/language/annotation.rb
@@ -223,10 +226,12 @@ files:
223
226
  - lib/google/cloud/language/document.rb
224
227
  - lib/google/cloud/language/project.rb
225
228
  - lib/google/cloud/language/service.rb
226
- - lib/google/cloud/language/v1beta1/language_service_api.rb
227
- - lib/google/cloud/language/v1beta1/language_service_client_config.json
228
- - lib/google/cloud/language/v1beta1/language_service_pb.rb
229
- - lib/google/cloud/language/v1beta1/language_service_services_pb.rb
229
+ - lib/google/cloud/language/v1.rb
230
+ - lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb
231
+ - lib/google/cloud/language/v1/language_service_api.rb
232
+ - lib/google/cloud/language/v1/language_service_client_config.json
233
+ - lib/google/cloud/language/v1/language_service_pb.rb
234
+ - lib/google/cloud/language/v1/language_service_services_pb.rb
230
235
  - lib/google/cloud/language/version.rb
231
236
  homepage: http://googlecloudplatform.github.io/google-cloud-ruby/
232
237
  licenses:
@@ -248,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
253
  version: '0'
249
254
  requirements: []
250
255
  rubyforge_project:
251
- rubygems_version: 2.6.4
256
+ rubygems_version: 2.5.1
252
257
  signing_key:
253
258
  specification_version: 4
254
259
  summary: API Client library for Google Cloud Natural Language API
@@ -1,228 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/language/v1beta1/language_service.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/annotations_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.cloud.language.v1beta1.Document" do
9
- optional :type, :enum, 1, "google.cloud.language.v1beta1.Document.Type"
10
- optional :language, :string, 4
11
- oneof :source do
12
- optional :content, :string, 2
13
- optional :gcs_content_uri, :string, 3
14
- end
15
- end
16
- add_enum "google.cloud.language.v1beta1.Document.Type" do
17
- value :TYPE_UNSPECIFIED, 0
18
- value :PLAIN_TEXT, 1
19
- value :HTML, 2
20
- end
21
- add_message "google.cloud.language.v1beta1.Sentence" do
22
- optional :text, :message, 1, "google.cloud.language.v1beta1.TextSpan"
23
- end
24
- add_message "google.cloud.language.v1beta1.Entity" do
25
- optional :name, :string, 1
26
- optional :type, :enum, 2, "google.cloud.language.v1beta1.Entity.Type"
27
- map :metadata, :string, :string, 3
28
- optional :salience, :float, 4
29
- repeated :mentions, :message, 5, "google.cloud.language.v1beta1.EntityMention"
30
- end
31
- add_enum "google.cloud.language.v1beta1.Entity.Type" do
32
- value :UNKNOWN, 0
33
- value :PERSON, 1
34
- value :LOCATION, 2
35
- value :ORGANIZATION, 3
36
- value :EVENT, 4
37
- value :WORK_OF_ART, 5
38
- value :CONSUMER_GOOD, 6
39
- value :OTHER, 7
40
- end
41
- add_message "google.cloud.language.v1beta1.Token" do
42
- optional :text, :message, 1, "google.cloud.language.v1beta1.TextSpan"
43
- optional :part_of_speech, :message, 2, "google.cloud.language.v1beta1.PartOfSpeech"
44
- optional :dependency_edge, :message, 3, "google.cloud.language.v1beta1.DependencyEdge"
45
- optional :lemma, :string, 4
46
- end
47
- add_message "google.cloud.language.v1beta1.Sentiment" do
48
- optional :polarity, :float, 1
49
- optional :magnitude, :float, 2
50
- end
51
- add_message "google.cloud.language.v1beta1.PartOfSpeech" do
52
- optional :tag, :enum, 1, "google.cloud.language.v1beta1.PartOfSpeech.Tag"
53
- end
54
- add_enum "google.cloud.language.v1beta1.PartOfSpeech.Tag" do
55
- value :UNKNOWN, 0
56
- value :ADJ, 1
57
- value :ADP, 2
58
- value :ADV, 3
59
- value :CONJ, 4
60
- value :DET, 5
61
- value :NOUN, 6
62
- value :NUM, 7
63
- value :PRON, 8
64
- value :PRT, 9
65
- value :PUNCT, 10
66
- value :VERB, 11
67
- value :X, 12
68
- value :AFFIX, 13
69
- end
70
- add_message "google.cloud.language.v1beta1.DependencyEdge" do
71
- optional :head_token_index, :int32, 1
72
- optional :label, :enum, 2, "google.cloud.language.v1beta1.DependencyEdge.Label"
73
- end
74
- add_enum "google.cloud.language.v1beta1.DependencyEdge.Label" do
75
- value :UNKNOWN, 0
76
- value :ABBREV, 1
77
- value :ACOMP, 2
78
- value :ADVCL, 3
79
- value :ADVMOD, 4
80
- value :AMOD, 5
81
- value :APPOS, 6
82
- value :ATTR, 7
83
- value :AUX, 8
84
- value :AUXPASS, 9
85
- value :CC, 10
86
- value :CCOMP, 11
87
- value :CONJ, 12
88
- value :CSUBJ, 13
89
- value :CSUBJPASS, 14
90
- value :DEP, 15
91
- value :DET, 16
92
- value :DISCOURSE, 17
93
- value :DOBJ, 18
94
- value :EXPL, 19
95
- value :GOESWITH, 20
96
- value :IOBJ, 21
97
- value :MARK, 22
98
- value :MWE, 23
99
- value :MWV, 24
100
- value :NEG, 25
101
- value :NN, 26
102
- value :NPADVMOD, 27
103
- value :NSUBJ, 28
104
- value :NSUBJPASS, 29
105
- value :NUM, 30
106
- value :NUMBER, 31
107
- value :P, 32
108
- value :PARATAXIS, 33
109
- value :PARTMOD, 34
110
- value :PCOMP, 35
111
- value :POBJ, 36
112
- value :POSS, 37
113
- value :POSTNEG, 38
114
- value :PRECOMP, 39
115
- value :PRECONJ, 40
116
- value :PREDET, 41
117
- value :PREF, 42
118
- value :PREP, 43
119
- value :PRONL, 44
120
- value :PRT, 45
121
- value :PS, 46
122
- value :QUANTMOD, 47
123
- value :RCMOD, 48
124
- value :RCMODREL, 49
125
- value :RDROP, 50
126
- value :REF, 51
127
- value :REMNANT, 52
128
- value :REPARANDUM, 53
129
- value :ROOT, 54
130
- value :SNUM, 55
131
- value :SUFF, 56
132
- value :TMOD, 57
133
- value :TOPIC, 58
134
- value :VMOD, 59
135
- value :VOCATIVE, 60
136
- value :XCOMP, 61
137
- value :SUFFIX, 62
138
- value :TITLE, 63
139
- value :ADVPHMOD, 64
140
- value :AUXCAUS, 65
141
- value :AUXVV, 66
142
- value :DTMOD, 67
143
- value :FOREIGN, 68
144
- value :KW, 69
145
- value :LIST, 70
146
- value :NOMC, 71
147
- value :NOMCSUBJ, 72
148
- value :NOMCSUBJPASS, 73
149
- value :NUMC, 74
150
- value :COP, 75
151
- value :DISLOCATED, 76
152
- end
153
- add_message "google.cloud.language.v1beta1.EntityMention" do
154
- optional :text, :message, 1, "google.cloud.language.v1beta1.TextSpan"
155
- end
156
- add_message "google.cloud.language.v1beta1.TextSpan" do
157
- optional :content, :string, 1
158
- optional :begin_offset, :int32, 2
159
- end
160
- add_message "google.cloud.language.v1beta1.AnalyzeSentimentRequest" do
161
- optional :document, :message, 1, "google.cloud.language.v1beta1.Document"
162
- end
163
- add_message "google.cloud.language.v1beta1.AnalyzeSentimentResponse" do
164
- optional :document_sentiment, :message, 1, "google.cloud.language.v1beta1.Sentiment"
165
- optional :language, :string, 2
166
- end
167
- add_message "google.cloud.language.v1beta1.AnalyzeEntitiesRequest" do
168
- optional :document, :message, 1, "google.cloud.language.v1beta1.Document"
169
- optional :encoding_type, :enum, 2, "google.cloud.language.v1beta1.EncodingType"
170
- end
171
- add_message "google.cloud.language.v1beta1.AnalyzeEntitiesResponse" do
172
- repeated :entities, :message, 1, "google.cloud.language.v1beta1.Entity"
173
- optional :language, :string, 2
174
- end
175
- add_message "google.cloud.language.v1beta1.AnnotateTextRequest" do
176
- optional :document, :message, 1, "google.cloud.language.v1beta1.Document"
177
- optional :features, :message, 2, "google.cloud.language.v1beta1.AnnotateTextRequest.Features"
178
- optional :encoding_type, :enum, 3, "google.cloud.language.v1beta1.EncodingType"
179
- end
180
- add_message "google.cloud.language.v1beta1.AnnotateTextRequest.Features" do
181
- optional :extract_syntax, :bool, 1
182
- optional :extract_entities, :bool, 2
183
- optional :extract_document_sentiment, :bool, 3
184
- end
185
- add_message "google.cloud.language.v1beta1.AnnotateTextResponse" do
186
- repeated :sentences, :message, 1, "google.cloud.language.v1beta1.Sentence"
187
- repeated :tokens, :message, 2, "google.cloud.language.v1beta1.Token"
188
- repeated :entities, :message, 3, "google.cloud.language.v1beta1.Entity"
189
- optional :document_sentiment, :message, 4, "google.cloud.language.v1beta1.Sentiment"
190
- optional :language, :string, 5
191
- end
192
- add_enum "google.cloud.language.v1beta1.EncodingType" do
193
- value :NONE, 0
194
- value :UTF8, 1
195
- value :UTF16, 2
196
- value :UTF32, 3
197
- end
198
- end
199
-
200
- module Google
201
- module Cloud
202
- module Language
203
- module V1beta1
204
- Document = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.Document").msgclass
205
- Document::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.Document.Type").enummodule
206
- Sentence = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.Sentence").msgclass
207
- Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.Entity").msgclass
208
- Entity::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.Entity.Type").enummodule
209
- Token = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.Token").msgclass
210
- Sentiment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.Sentiment").msgclass
211
- PartOfSpeech = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.PartOfSpeech").msgclass
212
- PartOfSpeech::Tag = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.PartOfSpeech.Tag").enummodule
213
- DependencyEdge = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.DependencyEdge").msgclass
214
- DependencyEdge::Label = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.DependencyEdge.Label").enummodule
215
- EntityMention = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.EntityMention").msgclass
216
- TextSpan = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.TextSpan").msgclass
217
- AnalyzeSentimentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.AnalyzeSentimentRequest").msgclass
218
- AnalyzeSentimentResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.AnalyzeSentimentResponse").msgclass
219
- AnalyzeEntitiesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.AnalyzeEntitiesRequest").msgclass
220
- AnalyzeEntitiesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.AnalyzeEntitiesResponse").msgclass
221
- AnnotateTextRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.AnnotateTextRequest").msgclass
222
- AnnotateTextRequest::Features = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.AnnotateTextRequest.Features").msgclass
223
- AnnotateTextResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.AnnotateTextResponse").msgclass
224
- EncodingType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.language.v1beta1.EncodingType").enummodule
225
- end
226
- end
227
- end
228
- end