From 3627c28dcf909b3470121dda951610e9919f0ca6 Mon Sep 17 00:00:00 2001 From: "Brian J. Watson" Date: Wed, 16 Nov 2016 17:57:15 -0800 Subject: [PATCH 1/3] Move Language to v1, since we will no longer support v1beta1 GAPIC --- .../LICENSE | 0 .../MANIFEST.in | 0 .../PUBLISHING.rst | 0 .../README.rst | 0 .../docs/apis.rst | 0 .../docs/conf.py | 0 .../docs/index.rst | 0 .../docs/starting.rst | 0 .../google/__init__.py | 0 .../google/cloud/__init__.py | 0 .../google/cloud/gapic/__init__.py | 0 .../google/cloud/gapic/language/__init__.py | 0 .../google/cloud/gapic/language/v1}/__init__.py | 0 .../google/cloud/gapic/language/v1}/enums.py | 0 .../google/cloud/gapic/language/v1}/language_service_api.py | 0 .../cloud/gapic/language/v1}/language_service_client_config.json | 0 .../requirements.txt | 0 .../setup.cfg | 0 .../setup.py | 0 .../tox.ini | 0 .../LICENSE | 0 .../MANIFEST.in | 0 .../PUBLISHING.rst | 0 .../README.rst | 0 .../google/__init__.py | 0 .../google/cloud/__init__.py | 0 .../google/cloud/grpc/__init__.py | 0 .../google/cloud/grpc/language/__init__.py | 0 .../google/cloud/grpc/language/v1}/__init__.py | 0 .../google/cloud/grpc/language/v1}/language_service_pb2.py | 0 .../setup.py | 0 31 files changed, 0 insertions(+), 0 deletions(-) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/LICENSE (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/MANIFEST.in (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/PUBLISHING.rst (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/README.rst (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/docs/apis.rst (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/docs/conf.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/docs/index.rst (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/docs/starting.rst (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/google/__init__.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/google/cloud/__init__.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/google/cloud/gapic/__init__.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/google/cloud/gapic/language/__init__.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1 => gapic-google-cloud-language-v1/google/cloud/gapic/language/v1}/__init__.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1 => gapic-google-cloud-language-v1/google/cloud/gapic/language/v1}/enums.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1 => gapic-google-cloud-language-v1/google/cloud/gapic/language/v1}/language_service_api.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1 => gapic-google-cloud-language-v1/google/cloud/gapic/language/v1}/language_service_client_config.json (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/requirements.txt (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/setup.cfg (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/setup.py (100%) rename generated/python/{gapic-google-cloud-language-v1beta1 => gapic-google-cloud-language-v1}/tox.ini (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/LICENSE (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/MANIFEST.in (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/PUBLISHING.rst (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/README.rst (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/google/__init__.py (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/google/cloud/__init__.py (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/google/cloud/grpc/__init__.py (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/google/cloud/grpc/language/__init__.py (100%) rename generated/python/{grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/v1beta1 => grpc-google-cloud-language-v1/google/cloud/grpc/language/v1}/__init__.py (100%) rename generated/python/{grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/v1beta1 => grpc-google-cloud-language-v1/google/cloud/grpc/language/v1}/language_service_pb2.py (100%) rename generated/python/{grpc-google-cloud-language-v1beta1 => grpc-google-cloud-language-v1}/setup.py (100%) diff --git a/generated/python/gapic-google-cloud-language-v1beta1/LICENSE b/generated/python/gapic-google-cloud-language-v1/LICENSE similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/LICENSE rename to generated/python/gapic-google-cloud-language-v1/LICENSE diff --git a/generated/python/gapic-google-cloud-language-v1beta1/MANIFEST.in b/generated/python/gapic-google-cloud-language-v1/MANIFEST.in similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/MANIFEST.in rename to generated/python/gapic-google-cloud-language-v1/MANIFEST.in diff --git a/generated/python/gapic-google-cloud-language-v1beta1/PUBLISHING.rst b/generated/python/gapic-google-cloud-language-v1/PUBLISHING.rst similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/PUBLISHING.rst rename to generated/python/gapic-google-cloud-language-v1/PUBLISHING.rst diff --git a/generated/python/gapic-google-cloud-language-v1beta1/README.rst b/generated/python/gapic-google-cloud-language-v1/README.rst similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/README.rst rename to generated/python/gapic-google-cloud-language-v1/README.rst diff --git a/generated/python/gapic-google-cloud-language-v1beta1/docs/apis.rst b/generated/python/gapic-google-cloud-language-v1/docs/apis.rst similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/docs/apis.rst rename to generated/python/gapic-google-cloud-language-v1/docs/apis.rst diff --git a/generated/python/gapic-google-cloud-language-v1beta1/docs/conf.py b/generated/python/gapic-google-cloud-language-v1/docs/conf.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/docs/conf.py rename to generated/python/gapic-google-cloud-language-v1/docs/conf.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/docs/index.rst b/generated/python/gapic-google-cloud-language-v1/docs/index.rst similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/docs/index.rst rename to generated/python/gapic-google-cloud-language-v1/docs/index.rst diff --git a/generated/python/gapic-google-cloud-language-v1beta1/docs/starting.rst b/generated/python/gapic-google-cloud-language-v1/docs/starting.rst similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/docs/starting.rst rename to generated/python/gapic-google-cloud-language-v1/docs/starting.rst diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/__init__.py b/generated/python/gapic-google-cloud-language-v1/google/__init__.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/__init__.py rename to generated/python/gapic-google-cloud-language-v1/google/__init__.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/cloud/__init__.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/__init__.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/cloud/__init__.py rename to generated/python/gapic-google-cloud-language-v1/google/cloud/__init__.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/__init__.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/__init__.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/__init__.py rename to generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/__init__.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/__init__.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/__init__.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/__init__.py rename to generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/__init__.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/__init__.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/__init__.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/__init__.py rename to generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/__init__.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/enums.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/enums.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/enums.py rename to generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/enums.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/language_service_api.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_api.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/language_service_api.py rename to generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_api.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/language_service_client_config.json b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_client_config.json similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/google/cloud/gapic/language/v1beta1/language_service_client_config.json rename to generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_client_config.json diff --git a/generated/python/gapic-google-cloud-language-v1beta1/requirements.txt b/generated/python/gapic-google-cloud-language-v1/requirements.txt similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/requirements.txt rename to generated/python/gapic-google-cloud-language-v1/requirements.txt diff --git a/generated/python/gapic-google-cloud-language-v1beta1/setup.cfg b/generated/python/gapic-google-cloud-language-v1/setup.cfg similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/setup.cfg rename to generated/python/gapic-google-cloud-language-v1/setup.cfg diff --git a/generated/python/gapic-google-cloud-language-v1beta1/setup.py b/generated/python/gapic-google-cloud-language-v1/setup.py similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/setup.py rename to generated/python/gapic-google-cloud-language-v1/setup.py diff --git a/generated/python/gapic-google-cloud-language-v1beta1/tox.ini b/generated/python/gapic-google-cloud-language-v1/tox.ini similarity index 100% rename from generated/python/gapic-google-cloud-language-v1beta1/tox.ini rename to generated/python/gapic-google-cloud-language-v1/tox.ini diff --git a/generated/python/grpc-google-cloud-language-v1beta1/LICENSE b/generated/python/grpc-google-cloud-language-v1/LICENSE similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/LICENSE rename to generated/python/grpc-google-cloud-language-v1/LICENSE diff --git a/generated/python/grpc-google-cloud-language-v1beta1/MANIFEST.in b/generated/python/grpc-google-cloud-language-v1/MANIFEST.in similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/MANIFEST.in rename to generated/python/grpc-google-cloud-language-v1/MANIFEST.in diff --git a/generated/python/grpc-google-cloud-language-v1beta1/PUBLISHING.rst b/generated/python/grpc-google-cloud-language-v1/PUBLISHING.rst similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/PUBLISHING.rst rename to generated/python/grpc-google-cloud-language-v1/PUBLISHING.rst diff --git a/generated/python/grpc-google-cloud-language-v1beta1/README.rst b/generated/python/grpc-google-cloud-language-v1/README.rst similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/README.rst rename to generated/python/grpc-google-cloud-language-v1/README.rst diff --git a/generated/python/grpc-google-cloud-language-v1beta1/google/__init__.py b/generated/python/grpc-google-cloud-language-v1/google/__init__.py similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/google/__init__.py rename to generated/python/grpc-google-cloud-language-v1/google/__init__.py diff --git a/generated/python/grpc-google-cloud-language-v1beta1/google/cloud/__init__.py b/generated/python/grpc-google-cloud-language-v1/google/cloud/__init__.py similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/google/cloud/__init__.py rename to generated/python/grpc-google-cloud-language-v1/google/cloud/__init__.py diff --git a/generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/__init__.py b/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/__init__.py similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/__init__.py rename to generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/__init__.py diff --git a/generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/__init__.py b/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/__init__.py similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/__init__.py rename to generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/__init__.py diff --git a/generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/v1beta1/__init__.py b/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/__init__.py similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/v1beta1/__init__.py rename to generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/__init__.py diff --git a/generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/v1beta1/language_service_pb2.py b/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/language_service_pb2.py similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/google/cloud/grpc/language/v1beta1/language_service_pb2.py rename to generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/language_service_pb2.py diff --git a/generated/python/grpc-google-cloud-language-v1beta1/setup.py b/generated/python/grpc-google-cloud-language-v1/setup.py similarity index 100% rename from generated/python/grpc-google-cloud-language-v1beta1/setup.py rename to generated/python/grpc-google-cloud-language-v1/setup.py From e1feb09aaf3109b2d9f698a66ee3e762724bcc21 Mon Sep 17 00:00:00 2001 From: "Brian J. Watson" Date: Wed, 16 Nov 2016 18:16:21 -0800 Subject: [PATCH 2/3] Generate gRPC code for Language v1 --- .../grpc-google-cloud-language-v1/README.rst | 6 +- .../grpc/language/v1/language_service_pb2.py | 1115 ++++++++++++++--- .../grpc-google-cloud-language-v1/setup.py | 12 +- 3 files changed, 942 insertions(+), 191 deletions(-) diff --git a/generated/python/grpc-google-cloud-language-v1/README.rst b/generated/python/grpc-google-cloud-language-v1/README.rst index c0cb23b68..ba90c2369 100644 --- a/generated/python/grpc-google-cloud-language-v1/README.rst +++ b/generated/python/grpc-google-cloud-language-v1/README.rst @@ -1,5 +1,5 @@ -gRPC library for google-cloud-language-v1beta1 +gRPC library for google-cloud-language-v1 -grpc-google-cloud-language-v1beta1 is the IDL-derived library for the google-cloud-language (v1beta1) service in the googleapis_ repository. +grpc-google-cloud-language-v1 is the IDL-derived library for the google-cloud-language (v1) service in the googleapis_ repository. -.. _`googleapis`: https://github.com/googleapis/googleapis/tree/master/google/cloud/language/v1beta1 +.. _`googleapis`: https://github.com/googleapis/googleapis/tree/master/google/cloud/language/v1 diff --git a/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/language_service_pb2.py b/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/language_service_pb2.py index 24734a630..d6701f899 100644 --- a/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/language_service_pb2.py +++ b/generated/python/grpc-google-cloud-language-v1/google/cloud/grpc/language/v1/language_service_pb2.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/grpc/language/v1beta1/language_service.proto +# source: google/cloud/language/v1/language_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -18,17 +18,17 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/grpc/language/v1beta1/language_service.proto', - package='google.cloud.language.v1beta1', + name='google/cloud/grpc/language/v1/language_service.proto', + package='google.cloud.language.v1', syntax='proto3', - serialized_pb=_b('\n9google/cloud/grpc/language/v1beta1/language_service.proto\x12\x1dgoogle.cloud.language.v1beta1\x1a\x1cgoogle/api/annotations.proto\"\xc8\x01\n\x08\x44ocument\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.cloud.language.v1beta1.Document.Type\x12\x11\n\x07\x63ontent\x18\x02 \x01(\tH\x00\x12\x19\n\x0fgcs_content_uri\x18\x03 \x01(\tH\x00\x12\x10\n\x08language\x18\x04 \x01(\t\"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\"A\n\x08Sentence\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta1.TextSpan\"\x95\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.language.v1beta1.Entity.Type\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.google.cloud.language.v1beta1.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12>\n\x08mentions\x18\x05 \x03(\x0b\x32,.google.cloud.language.v1beta1.EntityMention\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\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\"\xda\x01\n\x05Token\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta1.TextSpan\x12\x43\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32+.google.cloud.language.v1beta1.PartOfSpeech\x12\x46\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32-.google.cloud.language.v1beta1.DependencyEdge\x12\r\n\x05lemma\x18\x04 \x01(\t\"0\n\tSentiment\x12\x10\n\x08polarity\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\"\xdc\x01\n\x0cPartOfSpeech\x12<\n\x03tag\x18\x01 \x01(\x0e\x32/.google.cloud.language.v1beta1.PartOfSpeech.Tag\"\x8d\x01\n\x03Tag\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44J\x10\x01\x12\x07\n\x03\x41\x44P\x10\x02\x12\x07\n\x03\x41\x44V\x10\x03\x12\x08\n\x04\x43ONJ\x10\x04\x12\x07\n\x03\x44\x45T\x10\x05\x12\x08\n\x04NOUN\x10\x06\x12\x07\n\x03NUM\x10\x07\x12\x08\n\x04PRON\x10\x08\x12\x07\n\x03PRT\x10\t\x12\t\n\x05PUNCT\x10\n\x12\x08\n\x04VERB\x10\x0b\x12\x05\n\x01X\x10\x0c\x12\t\n\x05\x41\x46\x46IX\x10\r\"\xdd\x07\n\x0e\x44\x65pendencyEdge\x12\x18\n\x10head_token_index\x18\x01 \x01(\x05\x12\x42\n\x05label\x18\x02 \x01(\x0e\x32\x33.google.cloud.language.v1beta1.DependencyEdge.Label\"\xec\x06\n\x05Label\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x42\x42REV\x10\x01\x12\t\n\x05\x41\x43OMP\x10\x02\x12\t\n\x05\x41\x44VCL\x10\x03\x12\n\n\x06\x41\x44VMOD\x10\x04\x12\x08\n\x04\x41MOD\x10\x05\x12\t\n\x05\x41PPOS\x10\x06\x12\x08\n\x04\x41TTR\x10\x07\x12\x07\n\x03\x41UX\x10\x08\x12\x0b\n\x07\x41UXPASS\x10\t\x12\x06\n\x02\x43\x43\x10\n\x12\t\n\x05\x43\x43OMP\x10\x0b\x12\x08\n\x04\x43ONJ\x10\x0c\x12\t\n\x05\x43SUBJ\x10\r\x12\r\n\tCSUBJPASS\x10\x0e\x12\x07\n\x03\x44\x45P\x10\x0f\x12\x07\n\x03\x44\x45T\x10\x10\x12\r\n\tDISCOURSE\x10\x11\x12\x08\n\x04\x44OBJ\x10\x12\x12\x08\n\x04\x45XPL\x10\x13\x12\x0c\n\x08GOESWITH\x10\x14\x12\x08\n\x04IOBJ\x10\x15\x12\x08\n\x04MARK\x10\x16\x12\x07\n\x03MWE\x10\x17\x12\x07\n\x03MWV\x10\x18\x12\x07\n\x03NEG\x10\x19\x12\x06\n\x02NN\x10\x1a\x12\x0c\n\x08NPADVMOD\x10\x1b\x12\t\n\x05NSUBJ\x10\x1c\x12\r\n\tNSUBJPASS\x10\x1d\x12\x07\n\x03NUM\x10\x1e\x12\n\n\x06NUMBER\x10\x1f\x12\x05\n\x01P\x10 \x12\r\n\tPARATAXIS\x10!\x12\x0b\n\x07PARTMOD\x10\"\x12\t\n\x05PCOMP\x10#\x12\x08\n\x04POBJ\x10$\x12\x08\n\x04POSS\x10%\x12\x0b\n\x07POSTNEG\x10&\x12\x0b\n\x07PRECOMP\x10\'\x12\x0b\n\x07PRECONJ\x10(\x12\n\n\x06PREDET\x10)\x12\x08\n\x04PREF\x10*\x12\x08\n\x04PREP\x10+\x12\t\n\x05PRONL\x10,\x12\x07\n\x03PRT\x10-\x12\x06\n\x02PS\x10.\x12\x0c\n\x08QUANTMOD\x10/\x12\t\n\x05RCMOD\x10\x30\x12\x0c\n\x08RCMODREL\x10\x31\x12\t\n\x05RDROP\x10\x32\x12\x07\n\x03REF\x10\x33\x12\x0b\n\x07REMNANT\x10\x34\x12\x0e\n\nREPARANDUM\x10\x35\x12\x08\n\x04ROOT\x10\x36\x12\x08\n\x04SNUM\x10\x37\x12\x08\n\x04SUFF\x10\x38\x12\x08\n\x04TMOD\x10\x39\x12\t\n\x05TOPIC\x10:\x12\x08\n\x04VMOD\x10;\x12\x0c\n\x08VOCATIVE\x10<\x12\t\n\x05XCOMP\x10=\x12\n\n\x06SUFFIX\x10>\x12\t\n\x05TITLE\x10?\x12\x0c\n\x08\x41\x44VPHMOD\x10@\x12\x0b\n\x07\x41UXCAUS\x10\x41\x12\t\n\x05\x41UXVV\x10\x42\x12\t\n\x05\x44TMOD\x10\x43\x12\x0b\n\x07\x46OREIGN\x10\x44\x12\x06\n\x02KW\x10\x45\x12\x08\n\x04LIST\x10\x46\x12\x08\n\x04NOMC\x10G\x12\x0c\n\x08NOMCSUBJ\x10H\x12\x10\n\x0cNOMCSUBJPASS\x10I\x12\x08\n\x04NUMC\x10J\x12\x07\n\x03\x43OP\x10K\x12\x0e\n\nDISLOCATED\x10L\"F\n\rEntityMention\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta1.TextSpan\"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05\"T\n\x17\x41nalyzeSentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta1.Document\"r\n\x18\x41nalyzeSentimentResponse\x12\x44\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32(.google.cloud.language.v1beta1.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\"\x97\x01\n\x16\x41nalyzeEntitiesRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta1.Document\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta1.EncodingType\"d\n\x17\x41nalyzeEntitiesResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t\"\xc5\x02\n\x13\x41nnotateTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta1.Document\x12M\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32;.google.cloud.language.v1beta1.AnnotateTextRequest.Features\x12\x42\n\rencoding_type\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1beta1.EncodingType\x1a`\n\x08\x46\x65\x61tures\x12\x16\n\x0e\x65xtract_syntax\x18\x01 \x01(\x08\x12\x18\n\x10\x65xtract_entities\x18\x02 \x01(\x08\x12\"\n\x1a\x65xtract_document_sentiment\x18\x03 \x01(\x08\"\x99\x02\n\x14\x41nnotateTextResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta1.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta1.Token\x12\x37\n\x08\x65ntities\x18\x03 \x03(\x0b\x32%.google.cloud.language.v1beta1.Entity\x12\x44\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32(.google.cloud.language.v1beta1.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t*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\x9f\x04\n\x0fLanguageService\x12\xb3\x01\n\x10\x41nalyzeSentiment\x12\x36.google.cloud.language.v1beta1.AnalyzeSentimentRequest\x1a\x37.google.cloud.language.v1beta1.AnalyzeSentimentResponse\".\x82\xd3\xe4\x93\x02(\"#/v1beta1/documents:analyzeSentiment:\x01*\x12\xaf\x01\n\x0f\x41nalyzeEntities\x12\x35.google.cloud.language.v1beta1.AnalyzeEntitiesRequest\x1a\x36.google.cloud.language.v1beta1.AnalyzeEntitiesResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1beta1/documents:analyzeEntities:\x01*\x12\xa3\x01\n\x0c\x41nnotateText\x12\x32.google.cloud.language.v1beta1.AnnotateTextRequest\x1a\x33.google.cloud.language.v1beta1.AnnotateTextResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/v1beta1/documents:annotateText:\x01*By\n!com.google.cloud.language.v1beta1B\x14LanguageServiceProtoP\x01Z\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32&.google.cloud.language.v1.PartOfSpeech\x12\x41\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1.DependencyEdge\x12\r\n\x05lemma\x18\x04 \x01(\t\"-\n\tSentiment\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x12\r\n\x05score\x18\x03 \x01(\x02\"\xa3\x10\n\x0cPartOfSpeech\x12\x37\n\x03tag\x18\x01 \x01(\x0e\x32*.google.cloud.language.v1.PartOfSpeech.Tag\x12=\n\x06\x61spect\x18\x02 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Aspect\x12\x39\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Case\x12\x39\n\x04\x66orm\x18\x04 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Form\x12=\n\x06gender\x18\x05 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Gender\x12\x39\n\x04mood\x18\x06 \x01(\x0e\x32+.google.cloud.language.v1.PartOfSpeech.Mood\x12=\n\x06number\x18\x07 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Number\x12=\n\x06person\x18\x08 \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Person\x12=\n\x06proper\x18\t \x01(\x0e\x32-.google.cloud.language.v1.PartOfSpeech.Proper\x12G\n\x0breciprocity\x18\n \x01(\x0e\x32\x32.google.cloud.language.v1.PartOfSpeech.Reciprocity\x12;\n\x05tense\x18\x0b \x01(\x0e\x32,.google.cloud.language.v1.PartOfSpeech.Tense\x12;\n\x05voice\x18\x0c \x01(\x0e\x32,.google.cloud.language.v1.PartOfSpeech.Voice\"\x8d\x01\n\x03Tag\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44J\x10\x01\x12\x07\n\x03\x41\x44P\x10\x02\x12\x07\n\x03\x41\x44V\x10\x03\x12\x08\n\x04\x43ONJ\x10\x04\x12\x07\n\x03\x44\x45T\x10\x05\x12\x08\n\x04NOUN\x10\x06\x12\x07\n\x03NUM\x10\x07\x12\x08\n\x04PRON\x10\x08\x12\x07\n\x03PRT\x10\t\x12\t\n\x05PUNCT\x10\n\x12\x08\n\x04VERB\x10\x0b\x12\x05\n\x01X\x10\x0c\x12\t\n\x05\x41\x46\x46IX\x10\r\"O\n\x06\x41spect\x12\x12\n\x0e\x41SPECT_UNKNOWN\x10\x00\x12\x0e\n\nPERFECTIVE\x10\x01\x12\x10\n\x0cIMPERFECTIVE\x10\x02\x12\x0f\n\x0bPROGRESSIVE\x10\x03\"\xf8\x01\n\x04\x43\x61se\x12\x10\n\x0c\x43\x41SE_UNKNOWN\x10\x00\x12\x0e\n\nACCUSATIVE\x10\x01\x12\r\n\tADVERBIAL\x10\x02\x12\x11\n\rCOMPLEMENTIVE\x10\x03\x12\n\n\x06\x44\x41TIVE\x10\x04\x12\x0c\n\x08GENITIVE\x10\x05\x12\x10\n\x0cINSTRUMENTAL\x10\x06\x12\x0c\n\x08LOCATIVE\x10\x07\x12\x0e\n\nNOMINATIVE\x10\x08\x12\x0b\n\x07OBLIQUE\x10\t\x12\r\n\tPARTITIVE\x10\n\x12\x11\n\rPREPOSITIONAL\x10\x0b\x12\x12\n\x0eREFLEXIVE_CASE\x10\x0c\x12\x11\n\rRELATIVE_CASE\x10\r\x12\x0c\n\x08VOCATIVE\x10\x0e\"\xaf\x01\n\x04\x46orm\x12\x10\n\x0c\x46ORM_UNKNOWN\x10\x00\x12\x0c\n\x08\x41\x44NOMIAL\x10\x01\x12\r\n\tAUXILIARY\x10\x02\x12\x12\n\x0e\x43OMPLEMENTIZER\x10\x03\x12\x10\n\x0c\x46INAL_ENDING\x10\x04\x12\n\n\x06GERUND\x10\x05\x12\n\n\x06REALIS\x10\x06\x12\x0c\n\x08IRREALIS\x10\x07\x12\t\n\x05SHORT\x10\x08\x12\x08\n\x04LONG\x10\t\x12\t\n\x05ORDER\x10\n\x12\x0c\n\x08SPECIFIC\x10\x0b\"E\n\x06Gender\x12\x12\n\x0eGENDER_UNKNOWN\x10\x00\x12\x0c\n\x08\x46\x45MININE\x10\x01\x12\r\n\tMASCULINE\x10\x02\x12\n\n\x06NEUTER\x10\x03\"\x7f\n\x04Mood\x12\x10\n\x0cMOOD_UNKNOWN\x10\x00\x12\x14\n\x10\x43ONDITIONAL_MOOD\x10\x01\x12\x0e\n\nIMPERATIVE\x10\x02\x12\x0e\n\nINDICATIVE\x10\x03\x12\x11\n\rINTERROGATIVE\x10\x04\x12\x0b\n\x07JUSSIVE\x10\x05\x12\x0f\n\x0bSUBJUNCTIVE\x10\x06\"@\n\x06Number\x12\x12\n\x0eNUMBER_UNKNOWN\x10\x00\x12\x0c\n\x08SINGULAR\x10\x01\x12\n\n\x06PLURAL\x10\x02\x12\x08\n\x04\x44UAL\x10\x03\"T\n\x06Person\x12\x12\n\x0ePERSON_UNKNOWN\x10\x00\x12\t\n\x05\x46IRST\x10\x01\x12\n\n\x06SECOND\x10\x02\x12\t\n\x05THIRD\x10\x03\x12\x14\n\x10REFLEXIVE_PERSON\x10\x04\"8\n\x06Proper\x12\x12\n\x0ePROPER_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\x0e\n\nNOT_PROPER\x10\x02\"J\n\x0bReciprocity\x12\x17\n\x13RECIPROCITY_UNKNOWN\x10\x00\x12\x0e\n\nRECIPROCAL\x10\x01\x12\x12\n\x0eNON_RECIPROCAL\x10\x02\"s\n\x05Tense\x12\x11\n\rTENSE_UNKNOWN\x10\x00\x12\x15\n\x11\x43ONDITIONAL_TENSE\x10\x01\x12\n\n\x06\x46UTURE\x10\x02\x12\x08\n\x04PAST\x10\x03\x12\x0b\n\x07PRESENT\x10\x04\x12\r\n\tIMPERFECT\x10\x05\x12\x0e\n\nPLUPERFECT\x10\x06\"B\n\x05Voice\x12\x11\n\rVOICE_UNKNOWN\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tCAUSATIVE\x10\x02\x12\x0b\n\x07PASSIVE\x10\x03\"\xd8\x07\n\x0e\x44\x65pendencyEdge\x12\x18\n\x10head_token_index\x18\x01 \x01(\x05\x12=\n\x05label\x18\x02 \x01(\x0e\x32..google.cloud.language.v1.DependencyEdge.Label\"\xec\x06\n\x05Label\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x41\x42\x42REV\x10\x01\x12\t\n\x05\x41\x43OMP\x10\x02\x12\t\n\x05\x41\x44VCL\x10\x03\x12\n\n\x06\x41\x44VMOD\x10\x04\x12\x08\n\x04\x41MOD\x10\x05\x12\t\n\x05\x41PPOS\x10\x06\x12\x08\n\x04\x41TTR\x10\x07\x12\x07\n\x03\x41UX\x10\x08\x12\x0b\n\x07\x41UXPASS\x10\t\x12\x06\n\x02\x43\x43\x10\n\x12\t\n\x05\x43\x43OMP\x10\x0b\x12\x08\n\x04\x43ONJ\x10\x0c\x12\t\n\x05\x43SUBJ\x10\r\x12\r\n\tCSUBJPASS\x10\x0e\x12\x07\n\x03\x44\x45P\x10\x0f\x12\x07\n\x03\x44\x45T\x10\x10\x12\r\n\tDISCOURSE\x10\x11\x12\x08\n\x04\x44OBJ\x10\x12\x12\x08\n\x04\x45XPL\x10\x13\x12\x0c\n\x08GOESWITH\x10\x14\x12\x08\n\x04IOBJ\x10\x15\x12\x08\n\x04MARK\x10\x16\x12\x07\n\x03MWE\x10\x17\x12\x07\n\x03MWV\x10\x18\x12\x07\n\x03NEG\x10\x19\x12\x06\n\x02NN\x10\x1a\x12\x0c\n\x08NPADVMOD\x10\x1b\x12\t\n\x05NSUBJ\x10\x1c\x12\r\n\tNSUBJPASS\x10\x1d\x12\x07\n\x03NUM\x10\x1e\x12\n\n\x06NUMBER\x10\x1f\x12\x05\n\x01P\x10 \x12\r\n\tPARATAXIS\x10!\x12\x0b\n\x07PARTMOD\x10\"\x12\t\n\x05PCOMP\x10#\x12\x08\n\x04POBJ\x10$\x12\x08\n\x04POSS\x10%\x12\x0b\n\x07POSTNEG\x10&\x12\x0b\n\x07PRECOMP\x10\'\x12\x0b\n\x07PRECONJ\x10(\x12\n\n\x06PREDET\x10)\x12\x08\n\x04PREF\x10*\x12\x08\n\x04PREP\x10+\x12\t\n\x05PRONL\x10,\x12\x07\n\x03PRT\x10-\x12\x06\n\x02PS\x10.\x12\x0c\n\x08QUANTMOD\x10/\x12\t\n\x05RCMOD\x10\x30\x12\x0c\n\x08RCMODREL\x10\x31\x12\t\n\x05RDROP\x10\x32\x12\x07\n\x03REF\x10\x33\x12\x0b\n\x07REMNANT\x10\x34\x12\x0e\n\nREPARANDUM\x10\x35\x12\x08\n\x04ROOT\x10\x36\x12\x08\n\x04SNUM\x10\x37\x12\x08\n\x04SUFF\x10\x38\x12\x08\n\x04TMOD\x10\x39\x12\t\n\x05TOPIC\x10:\x12\x08\n\x04VMOD\x10;\x12\x0c\n\x08VOCATIVE\x10<\x12\t\n\x05XCOMP\x10=\x12\n\n\x06SUFFIX\x10>\x12\t\n\x05TITLE\x10?\x12\x0c\n\x08\x41\x44VPHMOD\x10@\x12\x0b\n\x07\x41UXCAUS\x10\x41\x12\t\n\x05\x41UXVV\x10\x42\x12\t\n\x05\x44TMOD\x10\x43\x12\x0b\n\x07\x46OREIGN\x10\x44\x12\x06\n\x02KW\x10\x45\x12\x08\n\x04LIST\x10\x46\x12\x08\n\x04NOMC\x10G\x12\x0c\n\x08NOMCSUBJ\x10H\x12\x10\n\x0cNOMCSUBJPASS\x10I\x12\x08\n\x04NUMC\x10J\x12\x07\n\x03\x43OP\x10K\x12\x0e\n\nDISLOCATED\x10L\"\xaf\x01\n\rEntityMention\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.TextSpan\x12:\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.language.v1.EntityMention.Type\"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\"\x8e\x01\n\x17\x41nalyzeSentimentRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\"\xa4\x01\n\x18\x41nalyzeSentimentResponse\x12?\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x35\n\tsentences\x18\x03 \x03(\x0b\x32\".google.cloud.language.v1.Sentence\"\x8d\x01\n\x16\x41nalyzeEntitiesRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\"_\n\x17\x41nalyzeEntitiesResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t\"\x8b\x01\n\x14\x41nalyzeSyntaxRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\"\x91\x01\n\x15\x41nalyzeSyntaxResponse\x12\x35\n\tsentences\x18\x01 \x03(\x0b\x32\".google.cloud.language.v1.Sentence\x12/\n\x06tokens\x18\x02 \x03(\x0b\x32\x1f.google.cloud.language.v1.Token\x12\x10\n\x08language\x18\x03 \x01(\t\"\xb6\x02\n\x13\x41nnotateTextRequest\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".google.cloud.language.v1.Document\x12H\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32\x36.google.cloud.language.v1.AnnotateTextRequest.Features\x12=\n\rencoding_type\x18\x03 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\x1a`\n\x08\x46\x65\x61tures\x12\x16\n\x0e\x65xtract_syntax\x18\x01 \x01(\x08\x12\x18\n\x10\x65xtract_entities\x18\x02 \x01(\x08\x12\"\n\x1a\x65xtract_document_sentiment\x18\x03 \x01(\x08\"\x85\x02\n\x14\x41nnotateTextResponse\x12\x35\n\tsentences\x18\x01 \x03(\x0b\x32\".google.cloud.language.v1.Sentence\x12/\n\x06tokens\x18\x02 \x03(\x0b\x32\x1f.google.cloud.language.v1.Token\x12\x32\n\x08\x65ntities\x18\x03 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12?\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t*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\x8d\x05\n\x0fLanguageService\x12\xa4\x01\n\x10\x41nalyzeSentiment\x12\x31.google.cloud.language.v1.AnalyzeSentimentRequest\x1a\x32.google.cloud.language.v1.AnalyzeSentimentResponse\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/documents:analyzeSentiment:\x01*\x12\xa0\x01\n\x0f\x41nalyzeEntities\x12\x30.google.cloud.language.v1.AnalyzeEntitiesRequest\x1a\x31.google.cloud.language.v1.AnalyzeEntitiesResponse\"(\x82\xd3\xe4\x93\x02\"\"\x1d/v1/documents:analyzeEntities:\x01*\x12\x98\x01\n\rAnalyzeSyntax\x12..google.cloud.language.v1.AnalyzeSyntaxRequest\x1a/.google.cloud.language.v1.AnalyzeSyntaxResponse\"&\x82\xd3\xe4\x93\x02 \"\x1b/v1/documents:analyzeSyntax:\x01*\x12\x94\x01\n\x0c\x41nnotateText\x12-.google.cloud.language.v1.AnnotateTextRequest\x1a..google.cloud.language.v1.AnnotateTextResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1/documents:annotateText:\x01*B6\n\x1c\x63om.google.cloud.language.v1B\x14LanguageServiceProtoP\x01\x62\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _sym_db.RegisterFileDescriptor(DESCRIPTOR) _ENCODINGTYPE = _descriptor.EnumDescriptor( name='EncodingType', - full_name='google.cloud.language.v1beta1.EncodingType', + full_name='google.cloud.language.v1.EncodingType', filename=None, file=DESCRIPTOR, values=[ @@ -51,8 +51,8 @@ ], containing_type=None, options=None, - serialized_start=3479, - serialized_end=3535, + serialized_start=5796, + serialized_end=5852, ) _sym_db.RegisterEnumDescriptor(_ENCODINGTYPE) @@ -65,7 +65,7 @@ _DOCUMENT_TYPE = _descriptor.EnumDescriptor( name='Type', - full_name='google.cloud.language.v1beta1.Document.Type', + full_name='google.cloud.language.v1.Document.Type', filename=None, file=DESCRIPTOR, values=[ @@ -84,14 +84,14 @@ ], containing_type=None, options=None, - serialized_start=259, - serialized_end=313, + serialized_start=244, + serialized_end=298, ) _sym_db.RegisterEnumDescriptor(_DOCUMENT_TYPE) _ENTITY_TYPE = _descriptor.EnumDescriptor( name='Type', - full_name='google.cloud.language.v1beta1.Entity.Type', + full_name='google.cloud.language.v1.Entity.Type', filename=None, file=DESCRIPTOR, values=[ @@ -130,14 +130,14 @@ ], containing_type=None, options=None, - serialized_start=677, - serialized_end=798, + serialized_start=698, + serialized_end=819, ) _sym_db.RegisterEnumDescriptor(_ENTITY_TYPE) _PARTOFSPEECH_TAG = _descriptor.EnumDescriptor( name='Tag', - full_name='google.cloud.language.v1beta1.PartOfSpeech.Tag', + full_name='google.cloud.language.v1.PartOfSpeech.Tag', filename=None, file=DESCRIPTOR, values=[ @@ -200,14 +200,440 @@ ], containing_type=None, options=None, - serialized_start=1151, - serialized_end=1292, + serialized_start=1836, + serialized_end=1977, ) _sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_TAG) +_PARTOFSPEECH_ASPECT = _descriptor.EnumDescriptor( + name='Aspect', + full_name='google.cloud.language.v1.PartOfSpeech.Aspect', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='ASPECT_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PERFECTIVE', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMPERFECTIVE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROGRESSIVE', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=1979, + serialized_end=2058, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_ASPECT) + +_PARTOFSPEECH_CASE = _descriptor.EnumDescriptor( + name='Case', + full_name='google.cloud.language.v1.PartOfSpeech.Case', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='CASE_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACCUSATIVE', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADVERBIAL', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='COMPLEMENTIVE', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATIVE', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GENITIVE', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INSTRUMENTAL', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATIVE', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOMINATIVE', index=8, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OBLIQUE', index=9, number=9, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PARTITIVE', index=10, number=10, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PREPOSITIONAL', index=11, number=11, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REFLEXIVE_CASE', index=12, number=12, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RELATIVE_CASE', index=13, number=13, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VOCATIVE', index=14, number=14, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2061, + serialized_end=2309, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_CASE) + +_PARTOFSPEECH_FORM = _descriptor.EnumDescriptor( + name='Form', + full_name='google.cloud.language.v1.PartOfSpeech.Form', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='FORM_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADNOMIAL', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AUXILIARY', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='COMPLEMENTIZER', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_ENDING', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GERUND', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REALIS', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IRREALIS', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHORT', index=8, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LONG', index=9, number=9, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ORDER', index=10, number=10, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SPECIFIC', index=11, number=11, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2312, + serialized_end=2487, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_FORM) + +_PARTOFSPEECH_GENDER = _descriptor.EnumDescriptor( + name='Gender', + full_name='google.cloud.language.v1.PartOfSpeech.Gender', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='GENDER_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEMININE', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MASCULINE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEUTER', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2489, + serialized_end=2558, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_GENDER) + +_PARTOFSPEECH_MOOD = _descriptor.EnumDescriptor( + name='Mood', + full_name='google.cloud.language.v1.PartOfSpeech.Mood', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='MOOD_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONDITIONAL_MOOD', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMPERATIVE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INDICATIVE', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INTERROGATIVE', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='JUSSIVE', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUBJUNCTIVE', index=6, number=6, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2560, + serialized_end=2687, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_MOOD) + +_PARTOFSPEECH_NUMBER = _descriptor.EnumDescriptor( + name='Number', + full_name='google.cloud.language.v1.PartOfSpeech.Number', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='NUMBER_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SINGULAR', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLURAL', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUAL', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2689, + serialized_end=2753, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_NUMBER) + +_PARTOFSPEECH_PERSON = _descriptor.EnumDescriptor( + name='Person', + full_name='google.cloud.language.v1.PartOfSpeech.Person', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='PERSON_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIRST', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SECOND', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THIRD', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REFLEXIVE_PERSON', index=4, number=4, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2755, + serialized_end=2839, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_PERSON) + +_PARTOFSPEECH_PROPER = _descriptor.EnumDescriptor( + name='Proper', + full_name='google.cloud.language.v1.PartOfSpeech.Proper', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='PROPER_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROPER', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_PROPER', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2841, + serialized_end=2897, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_PROPER) + +_PARTOFSPEECH_RECIPROCITY = _descriptor.EnumDescriptor( + name='Reciprocity', + full_name='google.cloud.language.v1.PartOfSpeech.Reciprocity', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='RECIPROCITY_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RECIPROCAL', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NON_RECIPROCAL', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2899, + serialized_end=2973, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_RECIPROCITY) + +_PARTOFSPEECH_TENSE = _descriptor.EnumDescriptor( + name='Tense', + full_name='google.cloud.language.v1.PartOfSpeech.Tense', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='TENSE_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONDITIONAL_TENSE', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FUTURE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAST', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRESENT', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMPERFECT', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLUPERFECT', index=6, number=6, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=2975, + serialized_end=3090, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_TENSE) + +_PARTOFSPEECH_VOICE = _descriptor.EnumDescriptor( + name='Voice', + full_name='google.cloud.language.v1.PartOfSpeech.Voice', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='VOICE_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACTIVE', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAUSATIVE', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PASSIVE', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=3092, + serialized_end=3158, +) +_sym_db.RegisterEnumDescriptor(_PARTOFSPEECH_VOICE) + _DEPENDENCYEDGE_LABEL = _descriptor.EnumDescriptor( name='Label', - full_name='google.cloud.language.v1beta1.DependencyEdge.Label', + full_name='google.cloud.language.v1.DependencyEdge.Label', filename=None, file=DESCRIPTOR, values=[ @@ -522,42 +948,68 @@ ], containing_type=None, options=None, - serialized_start=1408, - serialized_end=2284, + serialized_start=3269, + serialized_end=4145, ) _sym_db.RegisterEnumDescriptor(_DEPENDENCYEDGE_LABEL) +_ENTITYMENTION_TYPE = _descriptor.EnumDescriptor( + name='Type', + full_name='google.cloud.language.v1.EntityMention.Type', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='TYPE_UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROPER', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='COMMON', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=4275, + serialized_end=4323, +) +_sym_db.RegisterEnumDescriptor(_ENTITYMENTION_TYPE) + _DOCUMENT = _descriptor.Descriptor( name='Document', - full_name='google.cloud.language.v1beta1.Document', + full_name='google.cloud.language.v1.Document', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1beta1.Document.type', index=0, + name='type', full_name='google.cloud.language.v1.Document.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.language.v1beta1.Document.content', index=1, + name='content', full_name='google.cloud.language.v1.Document.content', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='gcs_content_uri', full_name='google.cloud.language.v1beta1.Document.gcs_content_uri', index=2, + name='gcs_content_uri', full_name='google.cloud.language.v1.Document.gcs_content_uri', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta1.Document.language', index=3, + name='language', full_name='google.cloud.language.v1.Document.language', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -576,28 +1028,35 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='source', full_name='google.cloud.language.v1beta1.Document.source', + name='source', full_name='google.cloud.language.v1.Document.source', index=0, containing_type=None, fields=[]), ], - serialized_start=123, - serialized_end=323, + serialized_start=113, + serialized_end=308, ) _SENTENCE = _descriptor.Descriptor( name='Sentence', - full_name='google.cloud.language.v1beta1.Sentence', + full_name='google.cloud.language.v1.Sentence', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1beta1.Sentence.text', index=0, + name='text', full_name='google.cloud.language.v1.Sentence.text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), + _descriptor.FieldDescriptor( + name='sentiment', full_name='google.cloud.language.v1.Sentence.sentiment', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), ], extensions=[ ], @@ -610,27 +1069,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=325, - serialized_end=390, + serialized_start=310, + serialized_end=426, ) _ENTITY_METADATAENTRY = _descriptor.Descriptor( name='MetadataEntry', - full_name='google.cloud.language.v1beta1.Entity.MetadataEntry', + full_name='google.cloud.language.v1.Entity.MetadataEntry', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='key', full_name='google.cloud.language.v1beta1.Entity.MetadataEntry.key', index=0, + name='key', full_name='google.cloud.language.v1.Entity.MetadataEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='value', full_name='google.cloud.language.v1beta1.Entity.MetadataEntry.value', index=1, + name='value', full_name='google.cloud.language.v1.Entity.MetadataEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -648,47 +1107,47 @@ extension_ranges=[], oneofs=[ ], - serialized_start=628, - serialized_end=675, + serialized_start=649, + serialized_end=696, ) _ENTITY = _descriptor.Descriptor( name='Entity', - full_name='google.cloud.language.v1beta1.Entity', + full_name='google.cloud.language.v1.Entity', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='name', full_name='google.cloud.language.v1beta1.Entity.name', index=0, + name='name', full_name='google.cloud.language.v1.Entity.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='type', full_name='google.cloud.language.v1beta1.Entity.type', index=1, + name='type', full_name='google.cloud.language.v1.Entity.type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='metadata', full_name='google.cloud.language.v1beta1.Entity.metadata', index=2, + name='metadata', full_name='google.cloud.language.v1.Entity.metadata', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='salience', full_name='google.cloud.language.v1beta1.Entity.salience', index=3, + name='salience', full_name='google.cloud.language.v1.Entity.salience', index=3, number=4, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='mentions', full_name='google.cloud.language.v1beta1.Entity.mentions', index=4, + name='mentions', full_name='google.cloud.language.v1.Entity.mentions', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -707,41 +1166,41 @@ extension_ranges=[], oneofs=[ ], - serialized_start=393, - serialized_end=798, + serialized_start=429, + serialized_end=819, ) _TOKEN = _descriptor.Descriptor( name='Token', - full_name='google.cloud.language.v1beta1.Token', + full_name='google.cloud.language.v1.Token', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1beta1.Token.text', index=0, + name='text', full_name='google.cloud.language.v1.Token.text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='part_of_speech', full_name='google.cloud.language.v1beta1.Token.part_of_speech', index=1, + name='part_of_speech', full_name='google.cloud.language.v1.Token.part_of_speech', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='dependency_edge', full_name='google.cloud.language.v1beta1.Token.dependency_edge', index=2, + name='dependency_edge', full_name='google.cloud.language.v1.Token.dependency_edge', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='lemma', full_name='google.cloud.language.v1beta1.Token.lemma', index=3, + name='lemma', full_name='google.cloud.language.v1.Token.lemma', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -759,28 +1218,28 @@ extension_ranges=[], oneofs=[ ], - serialized_start=801, - serialized_end=1019, + serialized_start=822, + serialized_end=1025, ) _SENTIMENT = _descriptor.Descriptor( name='Sentiment', - full_name='google.cloud.language.v1beta1.Sentiment', + full_name='google.cloud.language.v1.Sentiment', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='polarity', full_name='google.cloud.language.v1beta1.Sentiment.polarity', index=0, - number=1, type=2, cpp_type=6, label=1, + name='magnitude', full_name='google.cloud.language.v1.Sentiment.magnitude', index=0, + number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='magnitude', full_name='google.cloud.language.v1beta1.Sentiment.magnitude', index=1, - number=2, type=2, cpp_type=6, label=1, + name='score', full_name='google.cloud.language.v1.Sentiment.score', index=1, + number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -797,31 +1256,119 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1021, - serialized_end=1069, + serialized_start=1027, + serialized_end=1072, ) _PARTOFSPEECH = _descriptor.Descriptor( name='PartOfSpeech', - full_name='google.cloud.language.v1beta1.PartOfSpeech', + full_name='google.cloud.language.v1.PartOfSpeech', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='tag', full_name='google.cloud.language.v1beta1.PartOfSpeech.tag', index=0, + name='tag', full_name='google.cloud.language.v1.PartOfSpeech.tag', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), + _descriptor.FieldDescriptor( + name='aspect', full_name='google.cloud.language.v1.PartOfSpeech.aspect', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='case', full_name='google.cloud.language.v1.PartOfSpeech.case', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='form', full_name='google.cloud.language.v1.PartOfSpeech.form', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='gender', full_name='google.cloud.language.v1.PartOfSpeech.gender', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='mood', full_name='google.cloud.language.v1.PartOfSpeech.mood', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='number', full_name='google.cloud.language.v1.PartOfSpeech.number', index=6, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='person', full_name='google.cloud.language.v1.PartOfSpeech.person', index=7, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='proper', full_name='google.cloud.language.v1.PartOfSpeech.proper', index=8, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='reciprocity', full_name='google.cloud.language.v1.PartOfSpeech.reciprocity', index=9, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='tense', full_name='google.cloud.language.v1.PartOfSpeech.tense', index=10, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='voice', full_name='google.cloud.language.v1.PartOfSpeech.voice', index=11, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), ], extensions=[ ], nested_types=[], enum_types=[ _PARTOFSPEECH_TAG, + _PARTOFSPEECH_ASPECT, + _PARTOFSPEECH_CASE, + _PARTOFSPEECH_FORM, + _PARTOFSPEECH_GENDER, + _PARTOFSPEECH_MOOD, + _PARTOFSPEECH_NUMBER, + _PARTOFSPEECH_PERSON, + _PARTOFSPEECH_PROPER, + _PARTOFSPEECH_RECIPROCITY, + _PARTOFSPEECH_TENSE, + _PARTOFSPEECH_VOICE, ], options=None, is_extendable=False, @@ -829,27 +1376,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1072, - serialized_end=1292, + serialized_start=1075, + serialized_end=3158, ) _DEPENDENCYEDGE = _descriptor.Descriptor( name='DependencyEdge', - full_name='google.cloud.language.v1beta1.DependencyEdge', + full_name='google.cloud.language.v1.DependencyEdge', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='head_token_index', full_name='google.cloud.language.v1beta1.DependencyEdge.head_token_index', index=0, + name='head_token_index', full_name='google.cloud.language.v1.DependencyEdge.head_token_index', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='label', full_name='google.cloud.language.v1beta1.DependencyEdge.label', index=1, + name='label', full_name='google.cloud.language.v1.DependencyEdge.label', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -868,30 +1415,38 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1295, - serialized_end=2284, + serialized_start=3161, + serialized_end=4145, ) _ENTITYMENTION = _descriptor.Descriptor( name='EntityMention', - full_name='google.cloud.language.v1beta1.EntityMention', + full_name='google.cloud.language.v1.EntityMention', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='text', full_name='google.cloud.language.v1beta1.EntityMention.text', index=0, + name='text', full_name='google.cloud.language.v1.EntityMention.text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), + _descriptor.FieldDescriptor( + name='type', full_name='google.cloud.language.v1.EntityMention.type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), ], extensions=[ ], nested_types=[], enum_types=[ + _ENTITYMENTION_TYPE, ], options=None, is_extendable=False, @@ -899,27 +1454,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2286, - serialized_end=2356, + serialized_start=4148, + serialized_end=4323, ) _TEXTSPAN = _descriptor.Descriptor( name='TextSpan', - full_name='google.cloud.language.v1beta1.TextSpan', + full_name='google.cloud.language.v1.TextSpan', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='content', full_name='google.cloud.language.v1beta1.TextSpan.content', index=0, + name='content', full_name='google.cloud.language.v1.TextSpan.content', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='begin_offset', full_name='google.cloud.language.v1beta1.TextSpan.begin_offset', index=1, + name='begin_offset', full_name='google.cloud.language.v1.TextSpan.begin_offset', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -937,25 +1492,32 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2358, - serialized_end=2407, + serialized_start=4325, + serialized_end=4374, ) _ANALYZESENTIMENTREQUEST = _descriptor.Descriptor( name='AnalyzeSentimentRequest', - full_name='google.cloud.language.v1beta1.AnalyzeSentimentRequest', + full_name='google.cloud.language.v1.AnalyzeSentimentRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta1.AnalyzeSentimentRequest.document', index=0, + name='document', full_name='google.cloud.language.v1.AnalyzeSentimentRequest.document', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), + _descriptor.FieldDescriptor( + name='encoding_type', full_name='google.cloud.language.v1.AnalyzeSentimentRequest.encoding_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), ], extensions=[ ], @@ -968,32 +1530,39 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2409, - serialized_end=2493, + serialized_start=4377, + serialized_end=4519, ) _ANALYZESENTIMENTRESPONSE = _descriptor.Descriptor( name='AnalyzeSentimentResponse', - full_name='google.cloud.language.v1beta1.AnalyzeSentimentResponse', + full_name='google.cloud.language.v1.AnalyzeSentimentResponse', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='document_sentiment', full_name='google.cloud.language.v1beta1.AnalyzeSentimentResponse.document_sentiment', index=0, + name='document_sentiment', full_name='google.cloud.language.v1.AnalyzeSentimentResponse.document_sentiment', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta1.AnalyzeSentimentResponse.language', index=1, + name='language', full_name='google.cloud.language.v1.AnalyzeSentimentResponse.language', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), + _descriptor.FieldDescriptor( + name='sentences', full_name='google.cloud.language.v1.AnalyzeSentimentResponse.sentences', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), ], extensions=[ ], @@ -1006,27 +1575,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2495, - serialized_end=2609, + serialized_start=4522, + serialized_end=4686, ) _ANALYZEENTITIESREQUEST = _descriptor.Descriptor( name='AnalyzeEntitiesRequest', - full_name='google.cloud.language.v1beta1.AnalyzeEntitiesRequest', + full_name='google.cloud.language.v1.AnalyzeEntitiesRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta1.AnalyzeEntitiesRequest.document', index=0, + name='document', full_name='google.cloud.language.v1.AnalyzeEntitiesRequest.document', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1beta1.AnalyzeEntitiesRequest.encoding_type', index=1, + name='encoding_type', full_name='google.cloud.language.v1.AnalyzeEntitiesRequest.encoding_type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1044,27 +1613,27 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2612, - serialized_end=2763, + serialized_start=4689, + serialized_end=4830, ) _ANALYZEENTITIESRESPONSE = _descriptor.Descriptor( name='AnalyzeEntitiesResponse', - full_name='google.cloud.language.v1beta1.AnalyzeEntitiesResponse', + full_name='google.cloud.language.v1.AnalyzeEntitiesResponse', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1beta1.AnalyzeEntitiesResponse.entities', index=0, + name='entities', full_name='google.cloud.language.v1.AnalyzeEntitiesResponse.entities', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta1.AnalyzeEntitiesResponse.language', index=1, + name='language', full_name='google.cloud.language.v1.AnalyzeEntitiesResponse.language', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -1082,34 +1651,117 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2765, - serialized_end=2865, + serialized_start=4832, + serialized_end=4927, +) + + +_ANALYZESYNTAXREQUEST = _descriptor.Descriptor( + name='AnalyzeSyntaxRequest', + full_name='google.cloud.language.v1.AnalyzeSyntaxRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='document', full_name='google.cloud.language.v1.AnalyzeSyntaxRequest.document', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='encoding_type', full_name='google.cloud.language.v1.AnalyzeSyntaxRequest.encoding_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4930, + serialized_end=5069, +) + + +_ANALYZESYNTAXRESPONSE = _descriptor.Descriptor( + name='AnalyzeSyntaxResponse', + full_name='google.cloud.language.v1.AnalyzeSyntaxResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='sentences', full_name='google.cloud.language.v1.AnalyzeSyntaxResponse.sentences', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='tokens', full_name='google.cloud.language.v1.AnalyzeSyntaxResponse.tokens', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='language', full_name='google.cloud.language.v1.AnalyzeSyntaxResponse.language', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5072, + serialized_end=5217, ) _ANNOTATETEXTREQUEST_FEATURES = _descriptor.Descriptor( name='Features', - full_name='google.cloud.language.v1beta1.AnnotateTextRequest.Features', + full_name='google.cloud.language.v1.AnnotateTextRequest.Features', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='extract_syntax', full_name='google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_syntax', index=0, + name='extract_syntax', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.extract_syntax', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='extract_entities', full_name='google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_entities', index=1, + name='extract_entities', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.extract_entities', index=1, number=2, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='extract_document_sentiment', full_name='google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_document_sentiment', index=2, + name='extract_document_sentiment', full_name='google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -1127,33 +1779,33 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3097, - serialized_end=3193, + serialized_start=5434, + serialized_end=5530, ) _ANNOTATETEXTREQUEST = _descriptor.Descriptor( name='AnnotateTextRequest', - full_name='google.cloud.language.v1beta1.AnnotateTextRequest', + full_name='google.cloud.language.v1.AnnotateTextRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='document', full_name='google.cloud.language.v1beta1.AnnotateTextRequest.document', index=0, + name='document', full_name='google.cloud.language.v1.AnnotateTextRequest.document', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='features', full_name='google.cloud.language.v1beta1.AnnotateTextRequest.features', index=1, + name='features', full_name='google.cloud.language.v1.AnnotateTextRequest.features', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='encoding_type', full_name='google.cloud.language.v1beta1.AnnotateTextRequest.encoding_type', index=2, + name='encoding_type', full_name='google.cloud.language.v1.AnnotateTextRequest.encoding_type', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1171,48 +1823,48 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2868, - serialized_end=3193, + serialized_start=5220, + serialized_end=5530, ) _ANNOTATETEXTRESPONSE = _descriptor.Descriptor( name='AnnotateTextResponse', - full_name='google.cloud.language.v1beta1.AnnotateTextResponse', + full_name='google.cloud.language.v1.AnnotateTextResponse', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='sentences', full_name='google.cloud.language.v1beta1.AnnotateTextResponse.sentences', index=0, + name='sentences', full_name='google.cloud.language.v1.AnnotateTextResponse.sentences', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='tokens', full_name='google.cloud.language.v1beta1.AnnotateTextResponse.tokens', index=1, + name='tokens', full_name='google.cloud.language.v1.AnnotateTextResponse.tokens', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='entities', full_name='google.cloud.language.v1beta1.AnnotateTextResponse.entities', index=2, + name='entities', full_name='google.cloud.language.v1.AnnotateTextResponse.entities', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='document_sentiment', full_name='google.cloud.language.v1beta1.AnnotateTextResponse.document_sentiment', index=3, + name='document_sentiment', full_name='google.cloud.language.v1.AnnotateTextResponse.document_sentiment', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( - name='language', full_name='google.cloud.language.v1beta1.AnnotateTextResponse.language', index=4, + name='language', full_name='google.cloud.language.v1.AnnotateTextResponse.language', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -1230,8 +1882,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3196, - serialized_end=3477, + serialized_start=5533, + serialized_end=5794, ) _DOCUMENT.fields_by_name['type'].enum_type = _DOCUMENT_TYPE @@ -1243,6 +1895,7 @@ _DOCUMENT.fields_by_name['gcs_content_uri']) _DOCUMENT.fields_by_name['gcs_content_uri'].containing_oneof = _DOCUMENT.oneofs_by_name['source'] _SENTENCE.fields_by_name['text'].message_type = _TEXTSPAN +_SENTENCE.fields_by_name['sentiment'].message_type = _SENTIMENT _ENTITY_METADATAENTRY.containing_type = _ENTITY _ENTITY.fields_by_name['type'].enum_type = _ENTITY_TYPE _ENTITY.fields_by_name['metadata'].message_type = _ENTITY_METADATAENTRY @@ -1252,15 +1905,45 @@ _TOKEN.fields_by_name['part_of_speech'].message_type = _PARTOFSPEECH _TOKEN.fields_by_name['dependency_edge'].message_type = _DEPENDENCYEDGE _PARTOFSPEECH.fields_by_name['tag'].enum_type = _PARTOFSPEECH_TAG +_PARTOFSPEECH.fields_by_name['aspect'].enum_type = _PARTOFSPEECH_ASPECT +_PARTOFSPEECH.fields_by_name['case'].enum_type = _PARTOFSPEECH_CASE +_PARTOFSPEECH.fields_by_name['form'].enum_type = _PARTOFSPEECH_FORM +_PARTOFSPEECH.fields_by_name['gender'].enum_type = _PARTOFSPEECH_GENDER +_PARTOFSPEECH.fields_by_name['mood'].enum_type = _PARTOFSPEECH_MOOD +_PARTOFSPEECH.fields_by_name['number'].enum_type = _PARTOFSPEECH_NUMBER +_PARTOFSPEECH.fields_by_name['person'].enum_type = _PARTOFSPEECH_PERSON +_PARTOFSPEECH.fields_by_name['proper'].enum_type = _PARTOFSPEECH_PROPER +_PARTOFSPEECH.fields_by_name['reciprocity'].enum_type = _PARTOFSPEECH_RECIPROCITY +_PARTOFSPEECH.fields_by_name['tense'].enum_type = _PARTOFSPEECH_TENSE +_PARTOFSPEECH.fields_by_name['voice'].enum_type = _PARTOFSPEECH_VOICE _PARTOFSPEECH_TAG.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_ASPECT.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_CASE.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_FORM.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_GENDER.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_MOOD.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_NUMBER.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_PERSON.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_PROPER.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_RECIPROCITY.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_TENSE.containing_type = _PARTOFSPEECH +_PARTOFSPEECH_VOICE.containing_type = _PARTOFSPEECH _DEPENDENCYEDGE.fields_by_name['label'].enum_type = _DEPENDENCYEDGE_LABEL _DEPENDENCYEDGE_LABEL.containing_type = _DEPENDENCYEDGE _ENTITYMENTION.fields_by_name['text'].message_type = _TEXTSPAN +_ENTITYMENTION.fields_by_name['type'].enum_type = _ENTITYMENTION_TYPE +_ENTITYMENTION_TYPE.containing_type = _ENTITYMENTION _ANALYZESENTIMENTREQUEST.fields_by_name['document'].message_type = _DOCUMENT +_ANALYZESENTIMENTREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE _ANALYZESENTIMENTRESPONSE.fields_by_name['document_sentiment'].message_type = _SENTIMENT +_ANALYZESENTIMENTRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE _ANALYZEENTITIESREQUEST.fields_by_name['document'].message_type = _DOCUMENT _ANALYZEENTITIESREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE _ANALYZEENTITIESRESPONSE.fields_by_name['entities'].message_type = _ENTITY +_ANALYZESYNTAXREQUEST.fields_by_name['document'].message_type = _DOCUMENT +_ANALYZESYNTAXREQUEST.fields_by_name['encoding_type'].enum_type = _ENCODINGTYPE +_ANALYZESYNTAXRESPONSE.fields_by_name['sentences'].message_type = _SENTENCE +_ANALYZESYNTAXRESPONSE.fields_by_name['tokens'].message_type = _TOKEN _ANNOTATETEXTREQUEST_FEATURES.containing_type = _ANNOTATETEXTREQUEST _ANNOTATETEXTREQUEST.fields_by_name['document'].message_type = _DOCUMENT _ANNOTATETEXTREQUEST.fields_by_name['features'].message_type = _ANNOTATETEXTREQUEST_FEATURES @@ -1282,21 +1965,23 @@ DESCRIPTOR.message_types_by_name['AnalyzeSentimentResponse'] = _ANALYZESENTIMENTRESPONSE DESCRIPTOR.message_types_by_name['AnalyzeEntitiesRequest'] = _ANALYZEENTITIESREQUEST DESCRIPTOR.message_types_by_name['AnalyzeEntitiesResponse'] = _ANALYZEENTITIESRESPONSE +DESCRIPTOR.message_types_by_name['AnalyzeSyntaxRequest'] = _ANALYZESYNTAXREQUEST +DESCRIPTOR.message_types_by_name['AnalyzeSyntaxResponse'] = _ANALYZESYNTAXRESPONSE DESCRIPTOR.message_types_by_name['AnnotateTextRequest'] = _ANNOTATETEXTREQUEST DESCRIPTOR.message_types_by_name['AnnotateTextResponse'] = _ANNOTATETEXTRESPONSE DESCRIPTOR.enum_types_by_name['EncodingType'] = _ENCODINGTYPE Document = _reflection.GeneratedProtocolMessageType('Document', (_message.Message,), dict( DESCRIPTOR = _DOCUMENT, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.Document) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Document) )) _sym_db.RegisterMessage(Document) Sentence = _reflection.GeneratedProtocolMessageType('Sentence', (_message.Message,), dict( DESCRIPTOR = _SENTENCE, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.Sentence) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentence) )) _sym_db.RegisterMessage(Sentence) @@ -1304,112 +1989,126 @@ MetadataEntry = _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), dict( DESCRIPTOR = _ENTITY_METADATAENTRY, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.Entity.MetadataEntry) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity.MetadataEntry) )) , DESCRIPTOR = _ENTITY, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.Entity) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity) )) _sym_db.RegisterMessage(Entity) _sym_db.RegisterMessage(Entity.MetadataEntry) Token = _reflection.GeneratedProtocolMessageType('Token', (_message.Message,), dict( DESCRIPTOR = _TOKEN, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.Token) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Token) )) _sym_db.RegisterMessage(Token) Sentiment = _reflection.GeneratedProtocolMessageType('Sentiment', (_message.Message,), dict( DESCRIPTOR = _SENTIMENT, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.Sentiment) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentiment) )) _sym_db.RegisterMessage(Sentiment) PartOfSpeech = _reflection.GeneratedProtocolMessageType('PartOfSpeech', (_message.Message,), dict( DESCRIPTOR = _PARTOFSPEECH, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.PartOfSpeech) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.PartOfSpeech) )) _sym_db.RegisterMessage(PartOfSpeech) DependencyEdge = _reflection.GeneratedProtocolMessageType('DependencyEdge', (_message.Message,), dict( DESCRIPTOR = _DEPENDENCYEDGE, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.DependencyEdge) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.DependencyEdge) )) _sym_db.RegisterMessage(DependencyEdge) EntityMention = _reflection.GeneratedProtocolMessageType('EntityMention', (_message.Message,), dict( DESCRIPTOR = _ENTITYMENTION, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.EntityMention) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.EntityMention) )) _sym_db.RegisterMessage(EntityMention) TextSpan = _reflection.GeneratedProtocolMessageType('TextSpan', (_message.Message,), dict( DESCRIPTOR = _TEXTSPAN, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.TextSpan) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.TextSpan) )) _sym_db.RegisterMessage(TextSpan) AnalyzeSentimentRequest = _reflection.GeneratedProtocolMessageType('AnalyzeSentimentRequest', (_message.Message,), dict( DESCRIPTOR = _ANALYZESENTIMENTREQUEST, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.AnalyzeSentimentRequest) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSentimentRequest) )) _sym_db.RegisterMessage(AnalyzeSentimentRequest) AnalyzeSentimentResponse = _reflection.GeneratedProtocolMessageType('AnalyzeSentimentResponse', (_message.Message,), dict( DESCRIPTOR = _ANALYZESENTIMENTRESPONSE, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.AnalyzeSentimentResponse) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSentimentResponse) )) _sym_db.RegisterMessage(AnalyzeSentimentResponse) AnalyzeEntitiesRequest = _reflection.GeneratedProtocolMessageType('AnalyzeEntitiesRequest', (_message.Message,), dict( DESCRIPTOR = _ANALYZEENTITIESREQUEST, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.AnalyzeEntitiesRequest) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitiesRequest) )) _sym_db.RegisterMessage(AnalyzeEntitiesRequest) AnalyzeEntitiesResponse = _reflection.GeneratedProtocolMessageType('AnalyzeEntitiesResponse', (_message.Message,), dict( DESCRIPTOR = _ANALYZEENTITIESRESPONSE, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.AnalyzeEntitiesResponse) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitiesResponse) )) _sym_db.RegisterMessage(AnalyzeEntitiesResponse) +AnalyzeSyntaxRequest = _reflection.GeneratedProtocolMessageType('AnalyzeSyntaxRequest', (_message.Message,), dict( + DESCRIPTOR = _ANALYZESYNTAXREQUEST, + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSyntaxRequest) + )) +_sym_db.RegisterMessage(AnalyzeSyntaxRequest) + +AnalyzeSyntaxResponse = _reflection.GeneratedProtocolMessageType('AnalyzeSyntaxResponse', (_message.Message,), dict( + DESCRIPTOR = _ANALYZESYNTAXRESPONSE, + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSyntaxResponse) + )) +_sym_db.RegisterMessage(AnalyzeSyntaxResponse) + AnnotateTextRequest = _reflection.GeneratedProtocolMessageType('AnnotateTextRequest', (_message.Message,), dict( Features = _reflection.GeneratedProtocolMessageType('Features', (_message.Message,), dict( DESCRIPTOR = _ANNOTATETEXTREQUEST_FEATURES, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.AnnotateTextRequest.Features) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest.Features) )) , DESCRIPTOR = _ANNOTATETEXTREQUEST, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.AnnotateTextRequest) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest) )) _sym_db.RegisterMessage(AnnotateTextRequest) _sym_db.RegisterMessage(AnnotateTextRequest.Features) AnnotateTextResponse = _reflection.GeneratedProtocolMessageType('AnnotateTextResponse', (_message.Message,), dict( DESCRIPTOR = _ANNOTATETEXTRESPONSE, - __module__ = 'google.cloud.grpc.language.v1beta1.language_service_pb2' - # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta1.AnnotateTextResponse) + __module__ = 'google.cloud.grpc.language.v1.language_service_pb2' + # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextResponse) )) _sym_db.RegisterMessage(AnnotateTextResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!com.google.cloud.language.v1beta1B\024LanguageServiceProtoP\001Z=0.15.0.""" """Provides text analysis operations such as sentiment analysis and entity recognition. """ @@ -1514,16 +2235,25 @@ def AnalyzeEntities(self, request, context): entity types, salience, mentions for each entity, and other properties. """ context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) + def AnalyzeSyntax(self, request, context): + """Analyzes the syntax of the text and provides sentence boundaries and + tokenization along with part of speech tags, dependency trees, and other + properties. + """ + context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) def AnnotateText(self, request, context): - """Advanced API that analyzes the document and provides a full set of text - annotations, including semantic, syntactic, and sentiment information. This - API is intended for users who are familiar with machine learning and need - in-depth text features to build upon. + """A convenience method that provides all the features that analyzeSentiment, + analyzeEntities, and analyzeSyntax provide in one call. """ context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) class BetaLanguageServiceStub(object): + """The Beta API is deprecated for 0.15.0 and later. + + It is recommended to use the GA API (classes and functions in this + file not marked beta) for all further purposes. This class was generated + only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.""" """Provides text analysis operations such as sentiment analysis and entity recognition. """ @@ -1538,52 +2268,73 @@ def AnalyzeEntities(self, request, timeout, metadata=None, with_call=False, prot """ raise NotImplementedError() AnalyzeEntities.future = None + def AnalyzeSyntax(self, request, timeout, metadata=None, with_call=False, protocol_options=None): + """Analyzes the syntax of the text and provides sentence boundaries and + tokenization along with part of speech tags, dependency trees, and other + properties. + """ + raise NotImplementedError() + AnalyzeSyntax.future = None def AnnotateText(self, request, timeout, metadata=None, with_call=False, protocol_options=None): - """Advanced API that analyzes the document and provides a full set of text - annotations, including semantic, syntactic, and sentiment information. This - API is intended for users who are familiar with machine learning and need - in-depth text features to build upon. + """A convenience method that provides all the features that analyzeSentiment, + analyzeEntities, and analyzeSyntax provide in one call. """ raise NotImplementedError() AnnotateText.future = None def beta_create_LanguageService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None): + """The Beta API is deprecated for 0.15.0 and later. + + It is recommended to use the GA API (classes and functions in this + file not marked beta) for all further purposes. This function was + generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" request_deserializers = { - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesRequest.FromString, - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentRequest.FromString, - ('google.cloud.language.v1beta1.LanguageService', 'AnnotateText'): AnnotateTextRequest.FromString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesRequest.FromString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentRequest.FromString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSyntax'): AnalyzeSyntaxRequest.FromString, + ('google.cloud.language.v1.LanguageService', 'AnnotateText'): AnnotateTextRequest.FromString, } response_serializers = { - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesResponse.SerializeToString, - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentResponse.SerializeToString, - ('google.cloud.language.v1beta1.LanguageService', 'AnnotateText'): AnnotateTextResponse.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesResponse.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentResponse.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSyntax'): AnalyzeSyntaxResponse.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnnotateText'): AnnotateTextResponse.SerializeToString, } method_implementations = { - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeEntities'): face_utilities.unary_unary_inline(servicer.AnalyzeEntities), - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeSentiment'): face_utilities.unary_unary_inline(servicer.AnalyzeSentiment), - ('google.cloud.language.v1beta1.LanguageService', 'AnnotateText'): face_utilities.unary_unary_inline(servicer.AnnotateText), + ('google.cloud.language.v1.LanguageService', 'AnalyzeEntities'): face_utilities.unary_unary_inline(servicer.AnalyzeEntities), + ('google.cloud.language.v1.LanguageService', 'AnalyzeSentiment'): face_utilities.unary_unary_inline(servicer.AnalyzeSentiment), + ('google.cloud.language.v1.LanguageService', 'AnalyzeSyntax'): face_utilities.unary_unary_inline(servicer.AnalyzeSyntax), + ('google.cloud.language.v1.LanguageService', 'AnnotateText'): face_utilities.unary_unary_inline(servicer.AnnotateText), } server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) return beta_implementations.server(method_implementations, options=server_options) def beta_create_LanguageService_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None): + """The Beta API is deprecated for 0.15.0 and later. + + It is recommended to use the GA API (classes and functions in this + file not marked beta) for all further purposes. This function was + generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" request_serializers = { - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesRequest.SerializeToString, - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentRequest.SerializeToString, - ('google.cloud.language.v1beta1.LanguageService', 'AnnotateText'): AnnotateTextRequest.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesRequest.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentRequest.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSyntax'): AnalyzeSyntaxRequest.SerializeToString, + ('google.cloud.language.v1.LanguageService', 'AnnotateText'): AnnotateTextRequest.SerializeToString, } response_deserializers = { - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesResponse.FromString, - ('google.cloud.language.v1beta1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentResponse.FromString, - ('google.cloud.language.v1beta1.LanguageService', 'AnnotateText'): AnnotateTextResponse.FromString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeEntities'): AnalyzeEntitiesResponse.FromString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSentiment'): AnalyzeSentimentResponse.FromString, + ('google.cloud.language.v1.LanguageService', 'AnalyzeSyntax'): AnalyzeSyntaxResponse.FromString, + ('google.cloud.language.v1.LanguageService', 'AnnotateText'): AnnotateTextResponse.FromString, } cardinalities = { 'AnalyzeEntities': cardinality.Cardinality.UNARY_UNARY, 'AnalyzeSentiment': cardinality.Cardinality.UNARY_UNARY, + 'AnalyzeSyntax': cardinality.Cardinality.UNARY_UNARY, 'AnnotateText': cardinality.Cardinality.UNARY_UNARY, } stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size) - return beta_implementations.dynamic_stub(channel, 'google.cloud.language.v1beta1.LanguageService', cardinalities, options=stub_options) + return beta_implementations.dynamic_stub(channel, 'google.cloud.language.v1.LanguageService', cardinalities, options=stub_options) # @@protoc_insertion_point(module_scope) diff --git a/generated/python/grpc-google-cloud-language-v1/setup.py b/generated/python/grpc-google-cloud-language-v1/setup.py index 0e94dc242..81a092e4c 100644 --- a/generated/python/grpc-google-cloud-language-v1/setup.py +++ b/generated/python/grpc-google-cloud-language-v1/setup.py @@ -10,14 +10,14 @@ from setuptools import setup, find_packages install_requires = [ - 'oauth2client>=2.0.0, <4.0.0dev', - 'grpcio>=1.0.0, <2.0.0dev', - 'googleapis-common-protos[grpc]>=1.3.5, <2.0.0dev' + 'oauth2client>=2.0.0, <4.0dev', + 'grpcio>=1.0.0, <2.0dev', + 'googleapis-common-protos[grpc]>=1.5.0, <2.0dev' ] setuptools.setup( - name='grpc-google-cloud-language-v1beta1', - version='0.11.1', + name='grpc-google-cloud-language-v1', + version='0.13.1', author='Google Inc', author_email='googleapis-packages@google.com', classifiers=[ @@ -33,7 +33,7 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: Implementation :: CPython', ], - description='GRPC library for the google-cloud-language-v1beta1 service', + description='GRPC library for the google-cloud-language-v1 service', long_description=open('README.rst').read(), install_requires=install_requires, license='Apache-2.0', From dd59f16be73d8b5d152c1b75a9dbaa0a49eed533 Mon Sep 17 00:00:00 2001 From: "Brian J. Watson" Date: Wed, 16 Nov 2016 18:32:33 -0800 Subject: [PATCH 3/3] Generate GAPIC code for Language v1 --- .../gapic-google-cloud-language-v1/README.rst | 14 +- .../docs/apis.rst | 4 +- .../docs/conf.py | 16 +- .../docs/index.rst | 16 +- .../docs/starting.rst | 8 +- .../google/cloud/gapic/language/v1/enums.py | 235 ++++++++++++++++++ .../gapic/language/v1/language_service_api.py | 92 ++++--- .../v1/language_service_client_config.json | 7 +- .../requirements.txt | 8 +- .../gapic-google-cloud-language-v1/setup.py | 12 +- 10 files changed, 344 insertions(+), 68 deletions(-) diff --git a/generated/python/gapic-google-cloud-language-v1/README.rst b/generated/python/gapic-google-cloud-language-v1/README.rst index 0e90d46df..369b01eb1 100644 --- a/generated/python/gapic-google-cloud-language-v1/README.rst +++ b/generated/python/gapic-google-cloud-language-v1/README.rst @@ -1,18 +1,18 @@ GAPIC library for the Google Language API ================================================================================ -gapic-google-cloud-language-v1beta1 uses google-gax_ (Google API extensions) to provide an -easy-to-use client library for the `Google Language API`_ (v1beta1) defined in the googleapis_ git repository +gapic-google-cloud-language-v1 uses google-gax_ (Google API extensions) to provide an +easy-to-use client library for the `Google Language API`_ (v1) defined in the googleapis_ git repository -.. _`googleapis`: https://github.com/googleapis/googleapis/tree/master/google/cloud/language/v1beta1 +.. _`googleapis`: https://github.com/googleapis/googleapis/tree/master/google/cloud/language/v1 .. _`google-gax`: https://github.com/googleapis/gax-python -.. _`Google Language API`: https://developers.google.com/apis-explorer/?hl=en_US#p/language/v1beta1/ +.. _`Google Language API`: https://developers.google.com/apis-explorer/?hl=en_US#p/language/v1/ Getting started --------------- -gapic-google-cloud-language-v1beta1 will allow you to connect to the Google +gapic-google-cloud-language-v1 will allow you to connect to the Google Language API and access all its methods. In order to do this, you need to set up authentication as well as install the library locally. @@ -61,7 +61,7 @@ Mac/Linux pip install virtualenv virtualenv source /bin/activate - /bin/pip install gapic-google-cloud-language-v1beta1 + /bin/pip install gapic-google-cloud-language-v1 Windows @@ -72,7 +72,7 @@ Windows pip install virtualenv virtualenv \Scripts\activate - \Scripts\pip.exe install gapic-google-cloud-language-v1beta1 + \Scripts\pip.exe install gapic-google-cloud-language-v1 At this point you are all set to continue. diff --git a/generated/python/gapic-google-cloud-language-v1/docs/apis.rst b/generated/python/gapic-google-cloud-language-v1/docs/apis.rst index 0712e6f74..889c4f11e 100644 --- a/generated/python/gapic-google-cloud-language-v1/docs/apis.rst +++ b/generated/python/gapic-google-cloud-language-v1/docs/apis.rst @@ -7,8 +7,8 @@ APIs .. autosummary:: :toctree: - google.cloud.gapic.language.v1beta1.enums - google.cloud.gapic.language.v1beta1.language_service_api + google.cloud.gapic.language.v1.enums + google.cloud.gapic.language.v1.language_service_api API types diff --git a/generated/python/gapic-google-cloud-language-v1/docs/conf.py b/generated/python/gapic-google-cloud-language-v1/docs/conf.py index 9b5473028..44170812b 100644 --- a/generated/python/gapic-google-cloud-language-v1/docs/conf.py +++ b/generated/python/gapic-google-cloud-language-v1/docs/conf.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# gapic-google-cloud-language-v1beta1 documentation build configuration file +# gapic-google-cloud-language-v1 documentation build configuration file # # This file is execfile()d with the current directory set to its # containing dir. @@ -20,7 +20,7 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) -__version__ = '0.11.1' +__version__ = '0.13.1' # -- General configuration ------------------------------------------------ @@ -60,7 +60,7 @@ master_doc = 'index' # General information about the project. -project = u'gapic-google-cloud-language-v1beta1' +project = u'gapic-google-cloud-language-v1' copyright = u'2016, Google' author = u'Google APIs' @@ -214,7 +214,7 @@ #html_search_scorer = 'scorer.js' # Output file base name for HTML help builder. -htmlhelp_basename = 'gapic-google-cloud-language-v1beta1-doc' +htmlhelp_basename = 'gapic-google-cloud-language-v1-doc' # -- Options for LaTeX output --------------------------------------------- @@ -236,7 +236,7 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'gapic-google-cloud-language-v1beta1.tex', u'gapic-google-cloud-language-v1beta1 Documentation', + (master_doc, 'gapic-google-cloud-language-v1.tex', u'gapic-google-cloud-language-v1 Documentation', author, 'manual'), ] @@ -266,7 +266,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'gapic-google-cloud-language-v1beta1', u'gapic-google-cloud-language-v1beta1 Documentation', + (master_doc, 'gapic-google-cloud-language-v1', u'gapic-google-cloud-language-v1 Documentation', [author], 1) ] @@ -280,8 +280,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'gapic-google-cloud-language-v1beta1', u'gapic-google-cloud-language-v1beta1 Documentation', - author, 'gapic-google-cloud-language-v1beta1', 'GAPIC library for the google-cloud-language (api.version) service', + (master_doc, 'gapic-google-cloud-language-v1', u'gapic-google-cloud-language-v1 Documentation', + author, 'gapic-google-cloud-language-v1', 'GAPIC library for the google-cloud-language (api.version) service', 'APIs'), ] diff --git a/generated/python/gapic-google-cloud-language-v1/docs/index.rst b/generated/python/gapic-google-cloud-language-v1/docs/index.rst index 69997eb0b..d9c65ded6 100644 --- a/generated/python/gapic-google-cloud-language-v1/docs/index.rst +++ b/generated/python/gapic-google-cloud-language-v1/docs/index.rst @@ -1,18 +1,18 @@ -.. gapic-google-cloud-language-v1beta1 sphinx documentation master file +.. gapic-google-cloud-language-v1 sphinx documentation master file GAPIC library for the Google Language API ============================================================================================================= -This is the API documentation for ``gapic-google-cloud-language-v1beta1``. +This is the API documentation for ``gapic-google-cloud-language-v1``. -gapic-google-cloud-language-v1beta1 uses google-gax_ (Google API extensions) to provide an -easy-to-use client library for the `Google Language API`_ (v1beta1) defined in the googleapis_ git repository +gapic-google-cloud-language-v1 uses google-gax_ (Google API extensions) to provide an +easy-to-use client library for the `Google Language API`_ (v1) defined in the googleapis_ git repository .. _`google-gax`: https://github.com/googleapis/gax-python -.. _`googleapis`: https://github.com/googleapis/googleapis/tree/master/google/google/cloud/language/v1beta1 -.. _`Google Language API`: https://developers.google.com/apis-explorer/?hl=en_US#p/language/v1beta1/ +.. _`googleapis`: https://github.com/googleapis/googleapis/tree/master/google/google/cloud/language/v1 +.. _`Google Language API`: https://developers.google.com/apis-explorer/?hl=en_US#p/language/v1/ APIs @@ -20,8 +20,8 @@ APIs .. autosummary:: - google.cloud.gapic.language.v1beta1.enums - google.cloud.gapic.language.v1beta1.language_service_api + google.cloud.gapic.language.v1.enums + google.cloud.gapic.language.v1.language_service_api Contents diff --git a/generated/python/gapic-google-cloud-language-v1/docs/starting.rst b/generated/python/gapic-google-cloud-language-v1/docs/starting.rst index a80193658..ec4319008 100644 --- a/generated/python/gapic-google-cloud-language-v1/docs/starting.rst +++ b/generated/python/gapic-google-cloud-language-v1/docs/starting.rst @@ -1,9 +1,9 @@ Getting started =============== -gapic-google-cloud-language-v1beta1 will allow you to connect to the `Google Language API`_ and access all its methods. In order to achieve this, you need to set up authentication as well as install the library locally. +gapic-google-cloud-language-v1 will allow you to connect to the `Google Language API`_ and access all its methods. In order to achieve this, you need to set up authentication as well as install the library locally. -.. _`Google Language API`: https://developers.google.com/apis-explorer/?hl=en_US#p/language/v1beta1/ +.. _`Google Language API`: https://developers.google.com/apis-explorer/?hl=en_US#p/language/v1/ Installation @@ -29,7 +29,7 @@ Mac/Linux pip install virtualenv virtualenv source /bin/activate - /bin/pip install gapic-google-cloud-language-v1beta1 + /bin/pip install gapic-google-cloud-language-v1 Windows ~~~~~~~ @@ -39,7 +39,7 @@ Windows pip install virtualenv virtualenv \Scripts\activate - \Scripts\pip.exe install gapic-google-cloud-language-v1beta1 + \Scripts\pip.exe install gapic-google-cloud-language-v1 Using the API diff --git a/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/enums.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/enums.py index 5773f21bd..2b53e4d91 100644 --- a/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/enums.py +++ b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/enums.py @@ -117,6 +117,226 @@ class Tag(object): X = 12 AFFIX = 13 + class Aspect(object): + """ + The characteristic of a verb that expresses time flow during an event. + + Attributes: + ASPECT_UNKNOWN (int): Aspect is not applicable in the analyzed language or is not predicted. + PERFECTIVE (int): Perfective + IMPERFECTIVE (int): Imperfective + PROGRESSIVE (int): Progressive + """ + ASPECT_UNKNOWN = 0 + PERFECTIVE = 1 + IMPERFECTIVE = 2 + PROGRESSIVE = 3 + + class Case(object): + """ + The grammatical function performed by a noun or pronoun in a phrase, + clause, or sentence. In some languages, other parts of speech, such as + adjective and determiner, take case inflection in agreement with the noun. + + Attributes: + CASE_UNKNOWN (int): Case is not applicable in the analyzed language or is not predicted. + ACCUSATIVE (int): Accusative + ADVERBIAL (int): Adverbial + COMPLEMENTIVE (int): Complementive + DATIVE (int): Dative + GENITIVE (int): Genitive + INSTRUMENTAL (int): Instrumental + LOCATIVE (int): Locative + NOMINATIVE (int): Nominative + OBLIQUE (int): Oblique + PARTITIVE (int): Partitive + PREPOSITIONAL (int): Prepositional + REFLEXIVE_CASE (int): Reflexive + RELATIVE_CASE (int): Relative + VOCATIVE (int): Vocative + """ + CASE_UNKNOWN = 0 + ACCUSATIVE = 1 + ADVERBIAL = 2 + COMPLEMENTIVE = 3 + DATIVE = 4 + GENITIVE = 5 + INSTRUMENTAL = 6 + LOCATIVE = 7 + NOMINATIVE = 8 + OBLIQUE = 9 + PARTITIVE = 10 + PREPOSITIONAL = 11 + REFLEXIVE_CASE = 12 + RELATIVE_CASE = 13 + VOCATIVE = 14 + + class Form(object): + """ + Depending on the language, Form can be categorizing different forms of + verbs, adjectives, adverbs, etc. For example, categorizing inflected + endings of verbs and adjectives or distinguishing between short and long + forms of adjectives and participles + + Attributes: + FORM_UNKNOWN (int): Form is not applicable in the analyzed language or is not predicted. + ADNOMIAL (int): Adnomial + AUXILIARY (int): Auxiliary + COMPLEMENTIZER (int): Complementizer + FINAL_ENDING (int): Final ending + GERUND (int): Gerund + REALIS (int): Realis + IRREALIS (int): Irrealis + SHORT (int): Short form + LONG (int): Long form + ORDER (int): Order form + SPECIFIC (int): Specific form + """ + FORM_UNKNOWN = 0 + ADNOMIAL = 1 + AUXILIARY = 2 + COMPLEMENTIZER = 3 + FINAL_ENDING = 4 + GERUND = 5 + REALIS = 6 + IRREALIS = 7 + SHORT = 8 + LONG = 9 + ORDER = 10 + SPECIFIC = 11 + + class Gender(object): + """ + Gender classes of nouns reflected in the behaviour of associated words. + + Attributes: + GENDER_UNKNOWN (int): Gender is not applicable in the analyzed language or is not predicted. + FEMININE (int): Feminine + MASCULINE (int): Masculine + NEUTER (int): Neuter + """ + GENDER_UNKNOWN = 0 + FEMININE = 1 + MASCULINE = 2 + NEUTER = 3 + + class Mood(object): + """ + The grammatical feature of verbs, used for showing modality and attitude. + + Attributes: + MOOD_UNKNOWN (int): Mood is not applicable in the analyzed language or is not predicted. + CONDITIONAL_MOOD (int): Conditional + IMPERATIVE (int): Imperative + INDICATIVE (int): Indicative + INTERROGATIVE (int): Interrogative + JUSSIVE (int): Jussive + SUBJUNCTIVE (int): Subjunctive + """ + MOOD_UNKNOWN = 0 + CONDITIONAL_MOOD = 1 + IMPERATIVE = 2 + INDICATIVE = 3 + INTERROGATIVE = 4 + JUSSIVE = 5 + SUBJUNCTIVE = 6 + + class Number(object): + """ + Count distinctions. + + Attributes: + NUMBER_UNKNOWN (int): Number is not applicable in the analyzed language or is not predicted. + SINGULAR (int): Singular + PLURAL (int): Plural + DUAL (int): Dual + """ + NUMBER_UNKNOWN = 0 + SINGULAR = 1 + PLURAL = 2 + DUAL = 3 + + class Person(object): + """ + The distinction between the speaker, second person, third person, etc. + + Attributes: + PERSON_UNKNOWN (int): Person is not applicable in the analyzed language or is not predicted. + FIRST (int): First + SECOND (int): Second + THIRD (int): Third + REFLEXIVE_PERSON (int): Reflexive + """ + PERSON_UNKNOWN = 0 + FIRST = 1 + SECOND = 2 + THIRD = 3 + REFLEXIVE_PERSON = 4 + + class Proper(object): + """ + This category shows if the token is part of a proper name. + + Attributes: + PROPER_UNKNOWN (int): Proper is not applicable in the analyzed language or is not predicted. + PROPER (int): Proper + NOT_PROPER (int): Not proper + """ + PROPER_UNKNOWN = 0 + PROPER = 1 + NOT_PROPER = 2 + + class Reciprocity(object): + """ + Reciprocal features of a pronoun. + + Attributes: + RECIPROCITY_UNKNOWN (int): Reciprocity is not applicable in the analyzed language or is not + predicted. + RECIPROCAL (int): Reciprocal + NON_RECIPROCAL (int): Non-reciprocal + """ + RECIPROCITY_UNKNOWN = 0 + RECIPROCAL = 1 + NON_RECIPROCAL = 2 + + class Tense(object): + """ + Time reference. + + Attributes: + TENSE_UNKNOWN (int): Tense is not applicable in the analyzed language or is not predicted. + CONDITIONAL_TENSE (int): Conditional + FUTURE (int): Future + PAST (int): Past + PRESENT (int): Present + IMPERFECT (int): Imperfect + PLUPERFECT (int): Pluperfect + """ + TENSE_UNKNOWN = 0 + CONDITIONAL_TENSE = 1 + FUTURE = 2 + PAST = 3 + PRESENT = 4 + IMPERFECT = 5 + PLUPERFECT = 6 + + class Voice(object): + """ + The relationship between the action that a verb expresses and the + participants identified by its arguments. + + Attributes: + VOICE_UNKNOWN (int): Voice is not applicable in the analyzed language or is not predicted. + ACTIVE (int): Active + CAUSATIVE (int): Causative + PASSIVE (int): Passive + """ + VOICE_UNKNOWN = 0 + ACTIVE = 1 + CAUSATIVE = 2 + PASSIVE = 3 + class DependencyEdge(object): class Label(object): @@ -279,3 +499,18 @@ class Label(object): NUMC = 74 COP = 75 DISLOCATED = 76 + + +class EntityMention(object): + class Type(object): + """ + The supported types of mentions. + + Attributes: + TYPE_UNKNOWN (int): Unknown + PROPER (int): Proper name + COMMON (int): Common noun (or noun compound) + """ + TYPE_UNKNOWN = 0 + PROPER = 1 + COMMON = 2 diff --git a/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_api.py b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_api.py index d016543be..3a1819eb3 100644 --- a/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_api.py +++ b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_api.py @@ -14,13 +14,13 @@ # # EDITING INSTRUCTIONS # This file was generated from the file -# https://github.com/google/googleapis/blob/master/google/cloud/language/v1beta1/language_service.proto, +# https://github.com/google/googleapis/blob/master/google/cloud/language/v1/language_service.proto, # and updates to that file get reflected here through a refresh process. # For the short term, the refresh process will only be runnable by Google engineers. # # The only allowed edits are to method and file documentation. A 3-way # merge preserves those additions if the generated source changes. -"""Accesses the google.cloud.language.v1beta1 LanguageService API.""" +"""Accesses the google.cloud.language.v1 LanguageService API.""" import json import os @@ -32,8 +32,8 @@ from google.gax import path_template import google.gax -from google.cloud.gapic.language.v1beta1 import enums -from google.cloud.grpc.language.v1beta1 import language_service_pb2 +from google.cloud.gapic.language.v1 import enums +from google.cloud.grpc.language.v1 import language_service_pb2 class LanguageServiceApi(object): @@ -101,7 +101,7 @@ def __init__(self, pkg_resources.resource_string( __name__, 'language_service_client_config.json').decode()) defaults = api_callable.construct_settings( - 'google.cloud.language.v1beta1.LanguageService', + 'google.cloud.language.v1.LanguageService', default_client_config, client_config, config.STATUS_CODE_NAMES, @@ -121,37 +121,43 @@ def __init__(self, self._analyze_entities = api_callable.create_api_call( self.language_service_stub.AnalyzeEntities, settings=defaults['analyze_entities']) + self._analyze_syntax = api_callable.create_api_call( + self.language_service_stub.AnalyzeSyntax, + settings=defaults['analyze_syntax']) self._annotate_text = api_callable.create_api_call( self.language_service_stub.AnnotateText, settings=defaults['annotate_text']) # Service calls - def analyze_sentiment(self, document, options=None): + def analyze_sentiment(self, document, encoding_type=None, options=None): """ Analyzes the sentiment of the provided text. Example: - >>> from google.cloud.gapic.language.v1beta1 import language_service_api - >>> from google.cloud.grpc.language.v1beta1 import language_service_pb2 + >>> from google.cloud.gapic.language.v1 import language_service_api + >>> from google.cloud.grpc.language.v1 import language_service_pb2 >>> api = language_service_api.LanguageServiceApi() >>> document = language_service_pb2.Document() >>> response = api.analyze_sentiment(document) Args: - document (:class:`google.cloud.grpc.language.v1beta1.language_service_pb2.Document`): Input document. Currently, ``analyzeSentiment`` only supports English text + document (:class:`google.cloud.grpc.language.v1.language_service_pb2.Document`): Input document. Currently, ``analyzeSentiment`` only supports English text (``Document.language``=\"EN\"). + encoding_type (enum :class:`google.cloud.gapic.language.v1.enums.EncodingType`): The encoding type used by the API to calculate sentence offsets. options (:class:`google.gax.CallOptions`): Overrides the default settings for this call, e.g, timeout, retries etc. Returns: - A :class:`google.cloud.grpc.language.v1beta1.language_service_pb2.AnalyzeSentimentResponse` instance. + A :class:`google.cloud.grpc.language.v1.language_service_pb2.AnalyzeSentimentResponse` instance. Raises: :exc:`google.gax.errors.GaxError` if the RPC is aborted. :exc:`ValueError` if the parameters are invalid. """ + if encoding_type is None: + encoding_type = enums.EncodingType.NONE request = language_service_pb2.AnalyzeSentimentRequest( - document=document) + document=document, encoding_type=encoding_type) return self._analyze_sentiment(request, options) def analyze_entities(self, document, encoding_type, options=None): @@ -160,22 +166,22 @@ def analyze_entities(self, document, encoding_type, options=None): entity types, salience, mentions for each entity, and other properties. Example: - >>> from google.cloud.gapic.language.v1beta1 import language_service_api - >>> from google.cloud.gapic.language.v1beta1 import enums - >>> from google.cloud.grpc.language.v1beta1 import language_service_pb2 + >>> from google.cloud.gapic.language.v1 import language_service_api + >>> from google.cloud.gapic.language.v1 import enums + >>> from google.cloud.grpc.language.v1 import language_service_pb2 >>> api = language_service_api.LanguageServiceApi() >>> document = language_service_pb2.Document() >>> encoding_type = enums.EncodingType.NONE >>> response = api.analyze_entities(document, encoding_type) Args: - document (:class:`google.cloud.grpc.language.v1beta1.language_service_pb2.Document`): Input document. - encoding_type (enum :class:`google.cloud.gapic.language.v1beta1.enums.EncodingType`): The encoding type used by the API to calculate offsets. + document (:class:`google.cloud.grpc.language.v1.language_service_pb2.Document`): Input document. + encoding_type (enum :class:`google.cloud.gapic.language.v1.enums.EncodingType`): The encoding type used by the API to calculate offsets. options (:class:`google.gax.CallOptions`): Overrides the default settings for this call, e.g, timeout, retries etc. Returns: - A :class:`google.cloud.grpc.language.v1beta1.language_service_pb2.AnalyzeEntitiesResponse` instance. + A :class:`google.cloud.grpc.language.v1.language_service_pb2.AnalyzeEntitiesResponse` instance. Raises: :exc:`google.gax.errors.GaxError` if the RPC is aborted. @@ -185,17 +191,47 @@ def analyze_entities(self, document, encoding_type, options=None): document=document, encoding_type=encoding_type) return self._analyze_entities(request, options) + def analyze_syntax(self, document, encoding_type, options=None): + """ + Analyzes the syntax of the text and provides sentence boundaries and + tokenization along with part of speech tags, dependency trees, and other + properties. + + Example: + >>> from google.cloud.gapic.language.v1 import language_service_api + >>> from google.cloud.gapic.language.v1 import enums + >>> from google.cloud.grpc.language.v1 import language_service_pb2 + >>> api = language_service_api.LanguageServiceApi() + >>> document = language_service_pb2.Document() + >>> encoding_type = enums.EncodingType.NONE + >>> response = api.analyze_syntax(document, encoding_type) + + Args: + document (:class:`google.cloud.grpc.language.v1.language_service_pb2.Document`): Input document. + encoding_type (enum :class:`google.cloud.gapic.language.v1.enums.EncodingType`): The encoding type used by the API to calculate offsets. + options (:class:`google.gax.CallOptions`): Overrides the default + settings for this call, e.g, timeout, retries etc. + + Returns: + A :class:`google.cloud.grpc.language.v1.language_service_pb2.AnalyzeSyntaxResponse` instance. + + Raises: + :exc:`google.gax.errors.GaxError` if the RPC is aborted. + :exc:`ValueError` if the parameters are invalid. + """ + request = language_service_pb2.AnalyzeSyntaxRequest( + document=document, encoding_type=encoding_type) + return self._analyze_syntax(request, options) + def annotate_text(self, document, features, encoding_type, options=None): """ - Advanced API that analyzes the document and provides a full set of text - annotations, including semantic, syntactic, and sentiment information. This - API is intended for users who are familiar with machine learning and need - in-depth text features to build upon. + A convenience method that provides all the features that analyzeSentiment, + analyzeEntities, and analyzeSyntax provide in one call. Example: - >>> from google.cloud.gapic.language.v1beta1 import language_service_api - >>> from google.cloud.gapic.language.v1beta1 import enums - >>> from google.cloud.grpc.language.v1beta1 import language_service_pb2 + >>> from google.cloud.gapic.language.v1 import language_service_api + >>> from google.cloud.gapic.language.v1 import enums + >>> from google.cloud.grpc.language.v1 import language_service_pb2 >>> api = language_service_api.LanguageServiceApi() >>> document = language_service_pb2.Document() >>> features = language_service_pb2.AnnotateTextRequest.Features() @@ -203,14 +239,14 @@ def annotate_text(self, document, features, encoding_type, options=None): >>> response = api.annotate_text(document, features, encoding_type) Args: - document (:class:`google.cloud.grpc.language.v1beta1.language_service_pb2.Document`): Input document. - features (:class:`google.cloud.grpc.language.v1beta1.language_service_pb2.AnnotateTextRequest.Features`): The enabled features. - encoding_type (enum :class:`google.cloud.gapic.language.v1beta1.enums.EncodingType`): The encoding type used by the API to calculate offsets. + document (:class:`google.cloud.grpc.language.v1.language_service_pb2.Document`): Input document. + features (:class:`google.cloud.grpc.language.v1.language_service_pb2.AnnotateTextRequest.Features`): The enabled features. + encoding_type (enum :class:`google.cloud.gapic.language.v1.enums.EncodingType`): The encoding type used by the API to calculate offsets. options (:class:`google.gax.CallOptions`): Overrides the default settings for this call, e.g, timeout, retries etc. Returns: - A :class:`google.cloud.grpc.language.v1beta1.language_service_pb2.AnnotateTextResponse` instance. + A :class:`google.cloud.grpc.language.v1.language_service_pb2.AnnotateTextResponse` instance. Raises: :exc:`google.gax.errors.GaxError` if the RPC is aborted. diff --git a/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_client_config.json b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_client_config.json index 6ac3a7004..5c946b6bc 100644 --- a/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_client_config.json +++ b/generated/python/gapic-google-cloud-language-v1/google/cloud/gapic/language/v1/language_service_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.language.v1beta1.LanguageService": { + "google.cloud.language.v1.LanguageService": { "retry_codes": { "retry_codes_def": { "idempotent": [ @@ -32,6 +32,11 @@ "retry_codes_name": "idempotent", "retry_params_name": "default" }, + "AnalyzeSyntax": { + "timeout_millis": 30000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, "AnnotateText": { "timeout_millis": 30000, "retry_codes_name": "idempotent", diff --git a/generated/python/gapic-google-cloud-language-v1/requirements.txt b/generated/python/gapic-google-cloud-language-v1/requirements.txt index feb46996d..e688bc144 100644 --- a/generated/python/gapic-google-cloud-language-v1/requirements.txt +++ b/generated/python/gapic-google-cloud-language-v1/requirements.txt @@ -1,4 +1,4 @@ -googleapis-common-protos>=1.3.5, <2.0.0dev -google-gax>=0.14.1, <0.15.0dev -grpc-google-cloud-language-v1beta1>=0.11.1, <0.12.0dev -oauth2client>=2.0.0, <4.0.0dev +googleapis-common-protos>=1.5.0, <2.0dev +google-gax>=0.14.1, <0.15dev +grpc-google-cloud-language-v1>=0.13.1, <0.14dev +oauth2client>=2.0.0, <4.0dev diff --git a/generated/python/gapic-google-cloud-language-v1/setup.py b/generated/python/gapic-google-cloud-language-v1/setup.py index 5c6a4d385..fd16c76ee 100644 --- a/generated/python/gapic-google-cloud-language-v1/setup.py +++ b/generated/python/gapic-google-cloud-language-v1/setup.py @@ -9,15 +9,15 @@ import sys install_requires = [ - 'googleapis-common-protos>=1.3.5, <2.0.0dev', - 'google-gax>=0.14.1, <0.15.0dev', - 'grpc-google-cloud-language-v1beta1>=0.11.1, <0.12.0dev', - 'oauth2client>=2.0.0, <4.0.0dev', + 'googleapis-common-protos>=1.5.0, <2.0dev', + 'google-gax>=0.14.1, <0.15dev', + 'grpc-google-cloud-language-v1>=0.13.1, <0.14dev', + 'oauth2client>=2.0.0, <4.0dev', ] setup( - name='gapic-google-cloud-language-v1beta1', - version='0.11.1', + name='gapic-google-cloud-language-v1', + version='0.13.1', author='Google Inc', author_email='googleapis-packages@google.com', classifiers=[