google-cloud-language-v2 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e8cd6b5b749fc067af1cefe2c378d57297fe7bab3299dcf325a0d3a3b0ca2d3
|
4
|
+
data.tar.gz: fac4d0005269738a671e02b5e7d005fbb0962dd2e90743762cf93836a93e0780
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd906f61bb12b5339d9ec7eac48761007839389a652fb5a0fd33e91b522edcbc48e3bc785b271aef051612135a85d830e478b1a0f55f00ad3a2d206a5ee39597
|
7
|
+
data.tar.gz: 7f460ca324aea4ccc2f9cab2186735b120592b1e534c76ba1c24dd3c2903e6a0e6a146cbd94c60d33bd33eacb29d4d254e5a813b81c4aa1892f20e51c6f9187c
|
@@ -9,13 +9,13 @@ require 'google/api/client_pb'
|
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n/google/cloud/language/v2/language_service.proto\x12\x18google.cloud.language.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\
|
12
|
+
descriptor_data = "\n/google/cloud/language/v2/language_service.proto\x12\x18google.cloud.language.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"\xce\x01\n\x08\x44ocument\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32\'.google.cloud.language.v2.Document.Type\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12\x19\n\x0fgcs_content_uri\x18\x03 \x01(\tH\x00\x12\x1b\n\rlanguage_code\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"6\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPLAIN_TEXT\x10\x01\x12\x08\n\x04HTML\x10\x02\x42\x08\n\x06source\"t\n\x08Sentence\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32\".google.cloud.language.v2.TextSpan\x12\x36\n\tsentiment\x18\x02 \x01(\x0b\x32#.google.cloud.language.v2.Sentiment\"\xed\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x04type\x18\x02 \x01(\x0e\x32%.google.cloud.language.v2.Entity.Type\x12@\n\x08metadata\x18\x03 \x03(\x0b\x32..google.cloud.language.v2.Entity.MetadataEntry\x12\x39\n\x08mentions\x18\x05 \x03(\x0b\x32\'.google.cloud.language.v2.EntityMention\x12\x36\n\tsentiment\x18\x06 \x01(\x0b\x32#.google.cloud.language.v2.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb9\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\x08\n\x04\x44\x41TE\x10\x0b\x12\n\n\x06NUMBER\x10\x0c\x12\t\n\x05PRICE\x10\r\"-\n\tSentiment\x12\x11\n\tmagnitude\x18\x01 \x01(\x02\x12\r\n\x05score\x18\x02 \x01(\x02\"\xfc\x01\n\rEntityMention\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32\".google.cloud.language.v2.TextSpan\x12:\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.language.v2.EntityMention.Type\x12\x36\n\tsentiment\x18\x03 \x01(\x0b\x32#.google.cloud.language.v2.Sentiment\x12\x13\n\x0bprobability\x18\x04 \x01(\x02\"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02\"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05\":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02\"\x94\x01\n\x17\x41nalyzeSentimentRequest\x12:\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v2.DocumentB\x04\xe2\x41\x01\x02\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v2.EncodingType\"\xc5\x01\n\x18\x41nalyzeSentimentResponse\x12?\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32#.google.cloud.language.v2.Sentiment\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x35\n\tsentences\x18\x03 \x03(\x0b\x32\".google.cloud.language.v2.Sentence\x12\x1a\n\x12language_supported\x18\x04 \x01(\x08\"\x93\x01\n\x16\x41nalyzeEntitiesRequest\x12:\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v2.DocumentB\x04\xe2\x41\x01\x02\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v2.EncodingType\"\x80\x01\n\x17\x41nalyzeEntitiesResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v2.Entity\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x1a\n\x12language_supported\x18\x03 \x01(\x08\"Q\n\x13\x43lassifyTextRequest\x12:\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v2.DocumentB\x04\xe2\x41\x01\x02\"\x8f\x01\n\x14\x43lassifyTextResponse\x12\x44\n\ncategories\x18\x01 \x03(\x0b\x32\x30.google.cloud.language.v2.ClassificationCategory\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x1a\n\x12language_supported\x18\x03 \x01(\x08\"Q\n\x13ModerateTextRequest\x12:\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v2.DocumentB\x04\xe2\x41\x01\x02\"\x9a\x01\n\x14ModerateTextResponse\x12O\n\x15moderation_categories\x18\x01 \x03(\x0b\x32\x30.google.cloud.language.v2.ClassificationCategory\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x1a\n\x12language_supported\x18\x03 \x01(\x08\"\xf1\x02\n\x13\x41nnotateTextRequest\x12:\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v2.DocumentB\x04\xe2\x41\x01\x02\x12N\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32\x36.google.cloud.language.v2.AnnotateTextRequest.FeaturesB\x04\xe2\x41\x01\x02\x12=\n\rencoding_type\x18\x03 \x01(\x0e\x32&.google.cloud.language.v2.EncodingType\x1a\x8e\x01\n\x08\x46\x65\x61tures\x12\x1e\n\x10\x65xtract_entities\x18\x01 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12(\n\x1a\x65xtract_document_sentiment\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x1b\n\rclassify_text\x18\x04 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x1b\n\rmoderate_text\x18\x05 \x01(\x08\x42\x04\xe2\x41\x01\x01\"\x8c\x03\n\x14\x41nnotateTextResponse\x12\x35\n\tsentences\x18\x01 \x03(\x0b\x32\".google.cloud.language.v2.Sentence\x12\x32\n\x08\x65ntities\x18\x02 \x03(\x0b\x32 .google.cloud.language.v2.Entity\x12?\n\x12\x64ocument_sentiment\x18\x03 \x01(\x0b\x32#.google.cloud.language.v2.Sentiment\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\x12\x44\n\ncategories\x18\x05 \x03(\x0b\x32\x30.google.cloud.language.v2.ClassificationCategory\x12O\n\x15moderation_categories\x18\x06 \x03(\x0b\x32\x30.google.cloud.language.v2.ClassificationCategory\x12\x1a\n\x12language_supported\x18\x07 \x01(\x08*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xb0\x08\n\x0fLanguageService\x12\xc8\x01\n\x10\x41nalyzeSentiment\x12\x31.google.cloud.language.v2.AnalyzeSentimentRequest\x1a\x32.google.cloud.language.v2.AnalyzeSentimentResponse\"M\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x82\xd3\xe4\x93\x02#\"\x1e/v2/documents:analyzeSentiment:\x01*\x12\xc4\x01\n\x0f\x41nalyzeEntities\x12\x30.google.cloud.language.v2.AnalyzeEntitiesRequest\x1a\x31.google.cloud.language.v2.AnalyzeEntitiesResponse\"L\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x82\xd3\xe4\x93\x02\"\"\x1d/v2/documents:analyzeEntities:\x01*\x12\x9f\x01\n\x0c\x43lassifyText\x12-.google.cloud.language.v2.ClassifyTextRequest\x1a..google.cloud.language.v2.ClassifyTextResponse\"0\xda\x41\x08\x64ocument\x82\xd3\xe4\x93\x02\x1f\"\x1a/v2/documents:classifyText:\x01*\x12\x9f\x01\n\x0cModerateText\x12-.google.cloud.language.v2.ModerateTextRequest\x1a..google.cloud.language.v2.ModerateTextResponse\"0\xda\x41\x08\x64ocument\x82\xd3\xe4\x93\x02\x1f\"\x1a/v2/documents:moderateText:\x01*\x12\xca\x01\n\x0c\x41nnotateText\x12-.google.cloud.language.v2.AnnotateTextRequest\x1a..google.cloud.language.v2.AnnotateTextResponse\"[\xda\x41\x1f\x64ocument,features,encoding_type\xda\x41\x11\x64ocument,features\x82\xd3\xe4\x93\x02\x1f\"\x1a/v2/documents:annotateText:\x01*\x1az\xca\x41\x17language.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platformBp\n\x1c\x63om.google.cloud.language.v2B\x14LanguageServiceProtoP\x01Z8cloud.google.com/go/language/apiv2/languagepb;languagepbb\x06proto3"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|
16
16
|
begin
|
17
17
|
pool.add_serialized_file(descriptor_data)
|
18
|
-
rescue TypeError
|
18
|
+
rescue TypeError
|
19
19
|
# Compatibility code: will be removed in the next major version.
|
20
20
|
require 'google/protobuf/descriptor_pb'
|
21
21
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-language-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|