From aa38fcd3ba0587475d568605e84db966894067cb Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:19:03 -0700 Subject: [PATCH 01/15] Integrate Python GAPIC Microgenerator in googleapis. This PR uses using documentai as an example. Depends on https://github.com/googleapis/gapic-generator-python/pull/402 PiperOrigin-RevId: 309824146 Source-Author: Google APIs Source-Date: Mon May 4 15:06:44 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: e0f9d9e1f9de890db765be46f45ca8490723e3eb Source-Link: https://github.com/googleapis/googleapis/commit/e0f9d9e1f9de890db765be46f45ca8490723e3eb --- google/cloud/language_v1/gapic/enums.py | 35 +- .../gapic/language_service_client.py | 4 +- .../language_service_grpc_transport.py | 4 +- .../language_v1/proto/language_service_pb2.py | 444 +++++++++-------- google/cloud/language_v1beta2/gapic/enums.py | 30 +- .../gapic/language_service_client.py | 4 +- .../language_service_grpc_transport.py | 4 +- .../proto/language_service_pb2.py | 447 ++++++++++-------- synth.metadata | 21 +- 9 files changed, 520 insertions(+), 473 deletions(-) diff --git a/google/cloud/language_v1/gapic/enums.py b/google/cloud/language_v1/gapic/enums.py index 6ec0f9fe..28fefea5 100644 --- a/google/cloud/language_v1/gapic/enums.py +++ b/google/cloud/language_v1/gapic/enums.py @@ -21,24 +21,24 @@ class EncodingType(enum.IntEnum): """ - Represents the text encoding that the caller uses to process the output. - Providing an ``EncodingType`` is recommended because the API provides - the beginning offsets for various outputs, such as tokens and mentions, - and languages that natively use different text encodings may access - offsets differently. + Represents the text encoding that the caller uses to process the + output. Providing an ``EncodingType`` is recommended because the API + provides the beginning offsets for various outputs, such as tokens and + mentions, and languages that natively use different text encodings may + access offsets differently. Attributes: NONE (int): If ``EncodingType`` is not specified, encoding-dependent information (such as ``begin_offset``) will be set at ``-1``. - UTF8 (int): Encoding-dependent information (such as ``begin_offset``) is calculated - based on the UTF-8 encoding of the input. C++ and Go are examples of - languages that use this encoding natively. - UTF16 (int): Encoding-dependent information (such as ``begin_offset``) is calculated - based on the UTF-16 encoding of the input. Java and JavaScript are + UTF8 (int): Encoding-dependent information (such as ``begin_offset``) is + calculated based on the UTF-8 encoding of the input. C++ and Go are examples of languages that use this encoding natively. - UTF32 (int): Encoding-dependent information (such as ``begin_offset``) is calculated - based on the UTF-32 encoding of the input. Python is an example of a - language that uses this encoding natively. + UTF16 (int): Encoding-dependent information (such as ``begin_offset``) is + calculated based on the UTF-16 encoding of the input. Java and + JavaScript are examples of languages that use this encoding natively. + UTF32 (int): Encoding-dependent information (such as ``begin_offset``) is + calculated based on the UTF-32 encoding of the input. Python is an + example of a language that uses this encoding natively. """ NONE = 0 @@ -242,8 +242,8 @@ class Type(enum.IntEnum): class Entity(object): class Type(enum.IntEnum): """ - The type of the entity. For most entity types, the associated metadata - is a Wikipedia URL (``wikipedia_url``) and Knowledge Graph MID + The type of the entity. For most entity types, the associated + metadata is a Wikipedia URL (``wikipedia_url``) and Knowledge Graph MID (``mid``). The table below lists the associated fields for entities that have different metadata. @@ -256,8 +256,9 @@ class Type(enum.IntEnum): WORK_OF_ART (int): Artwork CONSUMER_GOOD (int): Consumer product OTHER (int): Other types of entities - PHONE_NUMBER (int): Phone number The metadata lists the phone number, formatted according to - local convention, plus whichever additional elements appear in the text: + PHONE_NUMBER (int): Phone number The metadata lists the phone number, formatted + according to local convention, plus whichever additional elements appear + in the text: .. raw:: html diff --git a/google/cloud/language_v1/gapic/language_service_client.py b/google/cloud/language_v1/gapic/language_service_client.py index 1520d84c..4dba1b05 100644 --- a/google/cloud/language_v1/gapic/language_service_client.py +++ b/google/cloud/language_v1/gapic/language_service_client.py @@ -322,8 +322,8 @@ def analyze_entity_sentiment( metadata=None, ): """ - Finds entities, similar to ``AnalyzeEntities`` in the text and analyzes - sentiment associated with each entity and its mentions. + Finds entities, similar to ``AnalyzeEntities`` in the text and + analyzes sentiment associated with each entity and its mentions. Example: >>> from google.cloud import language_v1 diff --git a/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py b/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py index e4b4ffad..5784072c 100644 --- a/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py +++ b/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py @@ -144,8 +144,8 @@ def analyze_entities(self): def analyze_entity_sentiment(self): """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_entity_sentiment`. - Finds entities, similar to ``AnalyzeEntities`` in the text and analyzes - sentiment associated with each entity and its mentions. + Finds entities, similar to ``AnalyzeEntities`` in the text and + analyzes sentiment associated with each entity and its mentions. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/language_v1/proto/language_service_pb2.py b/google/cloud/language_v1/proto/language_service_pb2.py index 9c7ad493..4b7f3684 100644 --- a/google/cloud/language_v1/proto/language_service_pb2.py +++ b/google/cloud/language_v1/proto/language_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/language_v1/proto/language_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -25,12 +22,8 @@ name="google/cloud/language_v1/proto/language_service.proto", package="google.cloud.language.v1", syntax="proto3", - serialized_options=_b( - "\n\034com.google.cloud.language.v1B\024LanguageServiceProtoP\001Z@google.golang.org/genproto/googleapis/cloud/language/v1;language" - ), - serialized_pb=_b( - '\n5google/cloud/language_v1/proto/language_service.proto\x12\x18google.cloud.language.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto"\xc3\x01\n\x08\x44ocument\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32\'.google.cloud.language.v1.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"t\n\x08Sentence\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12\x36\n\tsentiment\x18\x02 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"\xff\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x04type\x18\x02 \x01(\x0e\x32%.google.cloud.language.v1.Entity.Type\x12@\n\x08metadata\x18\x03 \x03(\x0b\x32..google.cloud.language.v1.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12\x39\n\x08mentions\x18\x05 \x03(\x0b\x32\'.google.cloud.language.v1.EntityMention\x12\x36\n\tsentiment\x18\x06 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb9\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\x08\n\x04\x44\x41TE\x10\x0b\x12\n\n\x06NUMBER\x10\x0c\x12\t\n\x05PRICE\x10\r"\xcb\x01\n\x05Token\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12>\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"\x95\x08\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"\xa9\x07\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\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xe7\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\x12\x36\n\tsentiment\x18\x03 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x93\x01\n\x17\x41nalyzeSentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"\x99\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType"f\n\x1e\x41nalyzeEntitySentimentResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x92\x01\n\x16\x41nalyzeEntitiesRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"\x90\x01\n\x14\x41nalyzeSyntaxRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"P\n\x13\x43lassifyTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02"\\\n\x14\x43lassifyTextResponse\x12\x44\n\ncategories\x18\x01 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory"\xfa\x02\n\x13\x41nnotateTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\x12M\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32\x36.google.cloud.language.v1.AnnotateTextRequest.FeaturesB\x03\xe0\x41\x02\x12=\n\rencoding_type\x18\x03 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\x1a\x99\x01\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\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xcb\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\x12\x44\n\ncategories\x18\x06 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xb0\n\n\x0fLanguageService\x12\xc8\x01\n\x10\x41nalyzeSentiment\x12\x31.google.cloud.language.v1.AnalyzeSentimentRequest\x1a\x32.google.cloud.language.v1.AnalyzeSentimentResponse"M\x82\xd3\xe4\x93\x02#"\x1e/v1/documents:analyzeSentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xc4\x01\n\x0f\x41nalyzeEntities\x12\x30.google.cloud.language.v1.AnalyzeEntitiesRequest\x1a\x31.google.cloud.language.v1.AnalyzeEntitiesResponse"L\x82\xd3\xe4\x93\x02""\x1d/v1/documents:analyzeEntities:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xe0\x01\n\x16\x41nalyzeEntitySentiment\x12\x37.google.cloud.language.v1.AnalyzeEntitySentimentRequest\x1a\x38.google.cloud.language.v1.AnalyzeEntitySentimentResponse"S\x82\xd3\xe4\x93\x02)"$/v1/documents:analyzeEntitySentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xbc\x01\n\rAnalyzeSyntax\x12..google.cloud.language.v1.AnalyzeSyntaxRequest\x1a/.google.cloud.language.v1.AnalyzeSyntaxResponse"J\x82\xd3\xe4\x93\x02 "\x1b/v1/documents:analyzeSyntax:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\x9f\x01\n\x0c\x43lassifyText\x12-.google.cloud.language.v1.ClassifyTextRequest\x1a..google.cloud.language.v1.ClassifyTextResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1/documents:classifyText:\x01*\xda\x41\x08\x64ocument\x12\xca\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*\xda\x41\x1f\x64ocument,features,encoding_type\xda\x41\x11\x64ocument,features\x1az\xca\x41\x17language.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platformBx\n\x1c\x63om.google.cloud.language.v1B\x14LanguageServiceProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/language/v1;languageb\x06proto3' - ), + serialized_options=b"\n\034com.google.cloud.language.v1B\024LanguageServiceProtoP\001Z@google.golang.org/genproto/googleapis/cloud/language/v1;language", + serialized_pb=b'\n5google/cloud/language_v1/proto/language_service.proto\x12\x18google.cloud.language.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto"\xc3\x01\n\x08\x44ocument\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32\'.google.cloud.language.v1.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"t\n\x08Sentence\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12\x36\n\tsentiment\x18\x02 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"\xff\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x04type\x18\x02 \x01(\x0e\x32%.google.cloud.language.v1.Entity.Type\x12@\n\x08metadata\x18\x03 \x03(\x0b\x32..google.cloud.language.v1.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12\x39\n\x08mentions\x18\x05 \x03(\x0b\x32\'.google.cloud.language.v1.EntityMention\x12\x36\n\tsentiment\x18\x06 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb9\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\x08\n\x04\x44\x41TE\x10\x0b\x12\n\n\x06NUMBER\x10\x0c\x12\t\n\x05PRICE\x10\r"\xcb\x01\n\x05Token\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12>\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"\x95\x08\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"\xa9\x07\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\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xe7\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\x12\x36\n\tsentiment\x18\x03 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x93\x01\n\x17\x41nalyzeSentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"\x99\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType"f\n\x1e\x41nalyzeEntitySentimentResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x92\x01\n\x16\x41nalyzeEntitiesRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"\x90\x01\n\x14\x41nalyzeSyntaxRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"P\n\x13\x43lassifyTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02"\\\n\x14\x43lassifyTextResponse\x12\x44\n\ncategories\x18\x01 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory"\xfa\x02\n\x13\x41nnotateTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\x12M\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32\x36.google.cloud.language.v1.AnnotateTextRequest.FeaturesB\x03\xe0\x41\x02\x12=\n\rencoding_type\x18\x03 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\x1a\x99\x01\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\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xcb\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\x12\x44\n\ncategories\x18\x06 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xb0\n\n\x0fLanguageService\x12\xc8\x01\n\x10\x41nalyzeSentiment\x12\x31.google.cloud.language.v1.AnalyzeSentimentRequest\x1a\x32.google.cloud.language.v1.AnalyzeSentimentResponse"M\x82\xd3\xe4\x93\x02#"\x1e/v1/documents:analyzeSentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xc4\x01\n\x0f\x41nalyzeEntities\x12\x30.google.cloud.language.v1.AnalyzeEntitiesRequest\x1a\x31.google.cloud.language.v1.AnalyzeEntitiesResponse"L\x82\xd3\xe4\x93\x02""\x1d/v1/documents:analyzeEntities:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xe0\x01\n\x16\x41nalyzeEntitySentiment\x12\x37.google.cloud.language.v1.AnalyzeEntitySentimentRequest\x1a\x38.google.cloud.language.v1.AnalyzeEntitySentimentResponse"S\x82\xd3\xe4\x93\x02)"$/v1/documents:analyzeEntitySentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xbc\x01\n\rAnalyzeSyntax\x12..google.cloud.language.v1.AnalyzeSyntaxRequest\x1a/.google.cloud.language.v1.AnalyzeSyntaxResponse"J\x82\xd3\xe4\x93\x02 "\x1b/v1/documents:analyzeSyntax:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\x9f\x01\n\x0c\x43lassifyText\x12-.google.cloud.language.v1.ClassifyTextRequest\x1a..google.cloud.language.v1.ClassifyTextResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1/documents:classifyText:\x01*\xda\x41\x08\x64ocument\x12\xca\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*\xda\x41\x1f\x64ocument,features,encoding_type\xda\x41\x11\x64ocument,features\x1az\xca\x41\x17language.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platformBx\n\x1c\x63om.google.cloud.language.v1B\x14LanguageServiceProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/language/v1;languageb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -914,7 +907,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -932,7 +925,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -950,7 +943,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1054,7 +1047,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1072,7 +1065,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1085,7 +1078,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1110,7 +1103,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1293,7 +1286,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1771,7 +1764,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1828,7 +1821,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1891,7 +1884,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1960,7 +1953,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2023,7 +2016,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2092,7 +2085,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2137,7 +2130,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2206,7 +2199,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2251,7 +2244,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2338,7 +2331,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2383,7 +2376,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2571,7 +2564,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2589,7 +2582,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2712,7 +2705,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2868,11 +2861,15 @@ Document = _reflection.GeneratedProtocolMessageType( "Document", (_message.Message,), - dict( - DESCRIPTOR=_DOCUMENT, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""################################################################ # + { + "DESCRIPTOR": _DOCUMENT, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """################################################################ + # + Represents the input to API methods. + + Attributes: type: Required. If the type is not set or is ``TYPE_UNSPECIFIED``, @@ -2886,7 +2883,7 @@ gcs_content_uri: The Google Cloud Storage URI where the file content is located. This URI must be of the form: - gs://bucket\_name/object\_name. For more details, see + gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported. language: @@ -2900,50 +2897,54 @@ ``INVALID_ARGUMENT`` error is returned. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""Represents a sentence in the input document. + { + "DESCRIPTOR": _SENTENCE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents a sentence in the input document. + + Attributes: text: The sentence text. sentiment: For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.F - eatures.extract\_document\_sentiment][google.cloud.language.v1 - .AnnotateTextRequest.Features.extract\_document\_sentiment] is - set to true, this field will contain the sentiment for the + eatures.extract_document_sentiment][google.cloud.language.v1.A + nnotateTextRequest.Features.extract_document_sentiment] is set + to true, this field will contain the sentiment for the sentence. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentence) - ), + }, ) _sym_db.RegisterMessage(Sentence) Entity = _reflection.GeneratedProtocolMessageType( "Entity", (_message.Message,), - dict( - MetadataEntry=_reflection.GeneratedProtocolMessageType( + { + "MetadataEntry": _reflection.GeneratedProtocolMessageType( "MetadataEntry", (_message.Message,), - dict( - DESCRIPTOR=_ENTITY_METADATAENTRY, - __module__="google.cloud.language_v1.proto.language_service_pb2" + { + "DESCRIPTOR": _ENTITY_METADATAENTRY, + "__module__": "google.cloud.language_v1.proto.language_service_pb2" # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity.MetadataEntry) - ), - ), - DESCRIPTOR=_ENTITY, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""Represents a phrase in the text that is a known entity, such as a - person, an organization, or location. The API associates information, - such as salience and mentions, with entities. + }, + ), + "DESCRIPTOR": _ENTITY, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents a phrase in the text that is a known entity, + such as a person, an organization, or location. The API associates + information, such as salience and mentions, with entities. + + Attributes: name: The representative name for the entity. @@ -2966,13 +2967,13 @@ currently supports proper noun mentions. sentiment: For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq - uest.Features.extract\_entity\_sentiment][google.cloud.languag - e.v1.AnnotateTextRequest.Features.extract\_entity\_sentiment] - is set to true, this field will contain the aggregate - sentiment expressed for this entity in the provided document. + uest.Features.extract_entity_sentiment][google.cloud.language. + v1.AnnotateTextRequest.Features.extract_entity_sentiment] is + set to true, this field will contain the aggregate sentiment + expressed for this entity in the provided document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity) - ), + }, ) _sym_db.RegisterMessage(Entity) _sym_db.RegisterMessage(Entity.MetadataEntry) @@ -2980,10 +2981,13 @@ Token = _reflection.GeneratedProtocolMessageType( "Token", (_message.Message,), - dict( - DESCRIPTOR=_TOKEN, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""Represents the smallest syntactic building block of the text. + { + "DESCRIPTOR": _TOKEN, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents the smallest syntactic building block of the + text. + + Attributes: text: The token text. @@ -2997,18 +3001,20 @@ the token. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""Represents the feeling associated with the entire text or entities in - the text. + { + "DESCRIPTOR": _SENTIMENT, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents the feeling associated with the entire text or + entities in the text. + + Attributes: magnitude: A non-negative number in the [0, +inf) range, which represents @@ -3019,19 +3025,21 @@ (positive sentiment). """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""Represents part of speech information for a token. Parts of speech are - as defined in http://www.lrec- - conf.org/proceedings/lrec2012/pdf/274\_Paper.pdf + { + "DESCRIPTOR": _PARTOFSPEECH, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents part of speech information for a token. Parts + of speech are as defined in + http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf + + Attributes: tag: The part of speech tag. @@ -3059,19 +3067,21 @@ The grammatical voice. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""Represents dependency parse tree information for a token. (For more - information on dependency labels, see + { + "DESCRIPTOR": _DEPENDENCYEDGE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents dependency parse tree information for a token. + (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017 + + Attributes: head_token_index: Represents the head of this token in the dependency tree. This @@ -3083,18 +3093,20 @@ The parse label for the token. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""Represents a mention for an entity in the text. Currently, proper noun - mentions are supported. + { + "DESCRIPTOR": _ENTITYMENTION, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents a mention for an entity in the text. Currently, + proper noun mentions are supported. + + Attributes: text: The mention text. @@ -3102,24 +3114,25 @@ The type of the entity mention. sentiment: For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq - uest.Features.extract\_entity\_sentiment][google.cloud.languag - e.v1.AnnotateTextRequest.Features.extract\_entity\_sentiment] - is set to true, this field will contain the sentiment - expressed for this mention of the entity in the provided - document. + uest.Features.extract_entity_sentiment][google.cloud.language. + v1.AnnotateTextRequest.Features.extract_entity_sentiment] is + set to true, this field will contain the sentiment expressed + for this mention of the entity in the provided document. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""Represents an output piece of text. + { + "DESCRIPTOR": _TEXTSPAN, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents an output piece of text. + + Attributes: content: The content of the output text. @@ -3130,39 +3143,43 @@ specified in the API request. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.TextSpan) - ), + }, ) _sym_db.RegisterMessage(TextSpan) ClassificationCategory = _reflection.GeneratedProtocolMessageType( "ClassificationCategory", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFICATIONCATEGORY, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""Represents a category returned from the text classifier. + { + "DESCRIPTOR": _CLASSIFICATIONCATEGORY, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """Represents a category returned from the text classifier. + + Attributes: name: The name of the category representing the document, from the `predefined taxonomy `__. confidence: - The classifier's confidence of the category. Number represents + The classifier’s confidence of the category. Number represents how certain the classifier is that this category represents the given text. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassificationCategory) - ), + }, ) _sym_db.RegisterMessage(ClassificationCategory) AnalyzeSentimentRequest = _reflection.GeneratedProtocolMessageType( "AnalyzeSentimentRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZESENTIMENTREQUEST, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The sentiment analysis request message. + { + "DESCRIPTOR": _ANALYZESENTIMENTREQUEST, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The sentiment analysis request message. + + Attributes: document: Input document. @@ -3171,17 +3188,19 @@ offsets. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""The sentiment analysis response message. + { + "DESCRIPTOR": _ANALYZESENTIMENTRESPONSE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The sentiment analysis response message. + + Attributes: document_sentiment: The overall sentiment of the input document. @@ -3194,17 +3213,19 @@ The sentiment for all the sentences in the document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSentimentResponse) - ), + }, ) _sym_db.RegisterMessage(AnalyzeSentimentResponse) AnalyzeEntitySentimentRequest = _reflection.GeneratedProtocolMessageType( "AnalyzeEntitySentimentRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZEENTITYSENTIMENTREQUEST, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The entity-level sentiment analysis request message. + { + "DESCRIPTOR": _ANALYZEENTITYSENTIMENTREQUEST, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The entity-level sentiment analysis request message. + + Attributes: document: Input document. @@ -3212,17 +3233,19 @@ The encoding type used by the API to calculate offsets. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitySentimentRequest) - ), + }, ) _sym_db.RegisterMessage(AnalyzeEntitySentimentRequest) AnalyzeEntitySentimentResponse = _reflection.GeneratedProtocolMessageType( "AnalyzeEntitySentimentResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZEENTITYSENTIMENTRESPONSE, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The entity-level sentiment analysis response message. + { + "DESCRIPTOR": _ANALYZEENTITYSENTIMENTRESPONSE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The entity-level sentiment analysis response message. + + Attributes: entities: The recognized entities in the input document with associated @@ -3234,17 +3257,19 @@ e.cloud.language.v1.Document.language] field for more details. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeEntitySentimentResponse) - ), + }, ) _sym_db.RegisterMessage(AnalyzeEntitySentimentResponse) AnalyzeEntitiesRequest = _reflection.GeneratedProtocolMessageType( "AnalyzeEntitiesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZEENTITIESREQUEST, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The entity analysis request message. + { + "DESCRIPTOR": _ANALYZEENTITIESREQUEST, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The entity analysis request message. + + Attributes: document: Input document. @@ -3252,17 +3277,19 @@ The encoding type used by the API to calculate offsets. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""The entity analysis response message. + { + "DESCRIPTOR": _ANALYZEENTITIESRESPONSE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The entity analysis response message. + + Attributes: entities: The recognized entities in the input document. @@ -3273,17 +3300,19 @@ e.cloud.language.v1.Document.language] field for more details. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""The syntax analysis request message. + { + "DESCRIPTOR": _ANALYZESYNTAXREQUEST, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The syntax analysis request message. + + Attributes: document: Input document. @@ -3291,17 +3320,19 @@ The encoding type used by the API to calculate offsets. """, # @@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.language_v1.proto.language_service_pb2", - __doc__="""The syntax analysis response message. + { + "DESCRIPTOR": _ANALYZESYNTAXRESPONSE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The syntax analysis response message. + + Attributes: sentences: Sentences in the input document. @@ -3315,55 +3346,61 @@ e.cloud.language.v1.Document.language] field for more details. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnalyzeSyntaxResponse) - ), + }, ) _sym_db.RegisterMessage(AnalyzeSyntaxResponse) ClassifyTextRequest = _reflection.GeneratedProtocolMessageType( "ClassifyTextRequest", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFYTEXTREQUEST, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The document classification request message. + { + "DESCRIPTOR": _CLASSIFYTEXTREQUEST, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The document classification request message. + + Attributes: document: Input document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassifyTextRequest) - ), + }, ) _sym_db.RegisterMessage(ClassifyTextRequest) ClassifyTextResponse = _reflection.GeneratedProtocolMessageType( "ClassifyTextResponse", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFYTEXTRESPONSE, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The document classification response message. + { + "DESCRIPTOR": _CLASSIFYTEXTRESPONSE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The document classification response message. + + Attributes: categories: Categories representing the input document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.ClassifyTextResponse) - ), + }, ) _sym_db.RegisterMessage(ClassifyTextResponse) AnnotateTextRequest = _reflection.GeneratedProtocolMessageType( "AnnotateTextRequest", (_message.Message,), - dict( - Features=_reflection.GeneratedProtocolMessageType( + { + "Features": _reflection.GeneratedProtocolMessageType( "Features", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATETEXTREQUEST_FEATURES, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""All available features for sentiment, syntax, and semantic analysis. - Setting each one to true will enable that specific analysis for the - input. + { + "DESCRIPTOR": _ANNOTATETEXTREQUEST_FEATURES, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """All available features for sentiment, syntax, and semantic + analysis. Setting each one to true will enable that specific analysis + for the input. + + Attributes: extract_syntax: Extract syntax information. @@ -3377,12 +3414,15 @@ Classify the full document into categories. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest.Features) - ), - ), - DESCRIPTOR=_ANNOTATETEXTREQUEST, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The request message for the text annotation API, which can perform - multiple analysis types (sentiment, entities, and syntax) in one call. + }, + ), + "DESCRIPTOR": _ANNOTATETEXTREQUEST, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The request message for the text annotation API, which can + perform multiple analysis types (sentiment, entities, and syntax) in one + call. + + Attributes: document: Input document. @@ -3392,7 +3432,7 @@ The encoding type used by the API to calculate offsets. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateTextRequest) _sym_db.RegisterMessage(AnnotateTextRequest.Features) @@ -3400,30 +3440,32 @@ AnnotateTextResponse = _reflection.GeneratedProtocolMessageType( "AnnotateTextResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATETEXTRESPONSE, - __module__="google.cloud.language_v1.proto.language_service_pb2", - __doc__="""The text annotations response message. + { + "DESCRIPTOR": _ANNOTATETEXTRESPONSE, + "__module__": "google.cloud.language_v1.proto.language_service_pb2", + "__doc__": """The text annotations response message. + + Attributes: sentences: Sentences in the input document. Populated if the user enables - [AnnotateTextRequest.Features.extract\_syntax][google.cloud.la - nguage.v1.AnnotateTextRequest.Features.extract\_syntax]. + [AnnotateTextRequest.Features.extract_syntax][google.cloud.lan + guage.v1.AnnotateTextRequest.Features.extract_syntax]. tokens: Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.F - eatures.extract\_syntax][google.cloud.language.v1.AnnotateText - Request.Features.extract\_syntax]. + eatures.extract_syntax][google.cloud.language.v1.AnnotateTextR + equest.Features.extract_syntax]. entities: Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.F - eatures.extract\_entities][google.cloud.language.v1.AnnotateTe - xtRequest.Features.extract\_entities]. + eatures.extract_entities][google.cloud.language.v1.AnnotateTex + tRequest.Features.extract_entities]. document_sentiment: The overall sentiment for the document. Populated if the user - enables [AnnotateTextRequest.Features.extract\_document\_senti - ment][google.cloud.language.v1.AnnotateTextRequest.Features.ex - tract\_document\_sentiment]. + enables [AnnotateTextRequest.Features.extract_document_sentime + nt][google.cloud.language.v1.AnnotateTextRequest.Features.extr + act_document_sentiment]. language: The language of the text, which will be the same as the language specified in the request or, if not specified, the @@ -3433,7 +3475,7 @@ Categories identified in the input document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.AnnotateTextResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateTextResponse) @@ -3453,9 +3495,7 @@ full_name="google.cloud.language.v1.LanguageService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\027language.googleapis.com\322A]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platform" - ), + serialized_options=b"\312A\027language.googleapis.com\322A]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platform", serialized_start=6801, serialized_end=8129, methods=[ @@ -3466,9 +3506,7 @@ containing_service=None, input_type=_ANALYZESENTIMENTREQUEST, output_type=_ANALYZESENTIMENTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002#"\036/v1/documents:analyzeSentiment:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002#"\036/v1/documents:analyzeSentiment:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="AnalyzeEntities", @@ -3477,9 +3515,7 @@ containing_service=None, input_type=_ANALYZEENTITIESREQUEST, output_type=_ANALYZEENTITIESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002""\035/v1/documents:analyzeEntities:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002""\035/v1/documents:analyzeEntities:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="AnalyzeEntitySentiment", @@ -3488,9 +3524,7 @@ containing_service=None, input_type=_ANALYZEENTITYSENTIMENTREQUEST, output_type=_ANALYZEENTITYSENTIMENTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002)"$/v1/documents:analyzeEntitySentiment:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002)"$/v1/documents:analyzeEntitySentiment:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="AnalyzeSyntax", @@ -3499,9 +3533,7 @@ containing_service=None, input_type=_ANALYZESYNTAXREQUEST, output_type=_ANALYZESYNTAXRESPONSE, - serialized_options=_b( - '\202\323\344\223\002 "\033/v1/documents:analyzeSyntax:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002 "\033/v1/documents:analyzeSyntax:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="ClassifyText", @@ -3510,9 +3542,7 @@ containing_service=None, input_type=_CLASSIFYTEXTREQUEST, output_type=_CLASSIFYTEXTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\037"\032/v1/documents:classifyText:\001*\332A\010document' - ), + serialized_options=b'\202\323\344\223\002\037"\032/v1/documents:classifyText:\001*\332A\010document', ), _descriptor.MethodDescriptor( name="AnnotateText", @@ -3521,9 +3551,7 @@ containing_service=None, input_type=_ANNOTATETEXTREQUEST, output_type=_ANNOTATETEXTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\037"\032/v1/documents:annotateText:\001*\332A\037document,features,encoding_type\332A\021document,features' - ), + serialized_options=b'\202\323\344\223\002\037"\032/v1/documents:annotateText:\001*\332A\037document,features,encoding_type\332A\021document,features', ), ], ) diff --git a/google/cloud/language_v1beta2/gapic/enums.py b/google/cloud/language_v1beta2/gapic/enums.py index 6ed586f4..f6a7be9e 100644 --- a/google/cloud/language_v1beta2/gapic/enums.py +++ b/google/cloud/language_v1beta2/gapic/enums.py @@ -21,24 +21,24 @@ class EncodingType(enum.IntEnum): """ - Represents the text encoding that the caller uses to process the output. - Providing an ``EncodingType`` is recommended because the API provides - the beginning offsets for various outputs, such as tokens and mentions, - and languages that natively use different text encodings may access - offsets differently. + Represents the text encoding that the caller uses to process the + output. Providing an ``EncodingType`` is recommended because the API + provides the beginning offsets for various outputs, such as tokens and + mentions, and languages that natively use different text encodings may + access offsets differently. Attributes: NONE (int): If ``EncodingType`` is not specified, encoding-dependent information (such as ``begin_offset``) will be set at ``-1``. - UTF8 (int): Encoding-dependent information (such as ``begin_offset``) is calculated - based on the UTF-8 encoding of the input. C++ and Go are examples of - languages that use this encoding natively. - UTF16 (int): Encoding-dependent information (such as ``begin_offset``) is calculated - based on the UTF-16 encoding of the input. Java and JavaScript are + UTF8 (int): Encoding-dependent information (such as ``begin_offset``) is + calculated based on the UTF-8 encoding of the input. C++ and Go are examples of languages that use this encoding natively. - UTF32 (int): Encoding-dependent information (such as ``begin_offset``) is calculated - based on the UTF-32 encoding of the input. Python is an example of a - language that uses this encoding natively. + UTF16 (int): Encoding-dependent information (such as ``begin_offset``) is + calculated based on the UTF-16 encoding of the input. Java and + JavaScript are examples of languages that use this encoding natively. + UTF32 (int): Encoding-dependent information (such as ``begin_offset``) is + calculated based on the UTF-32 encoding of the input. Python is an + example of a language that uses this encoding natively. """ NONE = 0 @@ -242,8 +242,8 @@ class Type(enum.IntEnum): class Entity(object): class Type(enum.IntEnum): """ - The type of the entity. For most entity types, the associated metadata - is a Wikipedia URL (``wikipedia_url``) and Knowledge Graph MID + The type of the entity. For most entity types, the associated + metadata is a Wikipedia URL (``wikipedia_url``) and Knowledge Graph MID (``mid``). The table below lists the associated fields for entities that have different metadata. diff --git a/google/cloud/language_v1beta2/gapic/language_service_client.py b/google/cloud/language_v1beta2/gapic/language_service_client.py index 34beaaec..8d3f9557 100644 --- a/google/cloud/language_v1beta2/gapic/language_service_client.py +++ b/google/cloud/language_v1beta2/gapic/language_service_client.py @@ -325,8 +325,8 @@ def analyze_entity_sentiment( metadata=None, ): """ - Finds entities, similar to ``AnalyzeEntities`` in the text and analyzes - sentiment associated with each entity and its mentions. + Finds entities, similar to ``AnalyzeEntities`` in the text and + analyzes sentiment associated with each entity and its mentions. Example: >>> from google.cloud import language_v1beta2 diff --git a/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py b/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py index a4f42bdf..1fd3fba2 100644 --- a/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py +++ b/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py @@ -144,8 +144,8 @@ def analyze_entities(self): def analyze_entity_sentiment(self): """Return the gRPC stub for :meth:`LanguageServiceClient.analyze_entity_sentiment`. - Finds entities, similar to ``AnalyzeEntities`` in the text and analyzes - sentiment associated with each entity and its mentions. + Finds entities, similar to ``AnalyzeEntities`` in the text and + analyzes sentiment associated with each entity and its mentions. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/language_v1beta2/proto/language_service_pb2.py b/google/cloud/language_v1beta2/proto/language_service_pb2.py index 7dacee38..d2d85549 100644 --- a/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/google/cloud/language_v1beta2/proto/language_service_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/language_v1beta2/proto/language_service.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -26,12 +23,8 @@ name="google/cloud/language_v1beta2/proto/language_service.proto", package="google.cloud.language.v1beta2", syntax="proto3", - serialized_options=_b( - "\n!com.google.cloud.language.v1beta2B\024LanguageServiceProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;language" - ), - serialized_pb=_b( - '\n:google/cloud/language_v1beta2/proto/language_service.proto\x12\x1dgoogle.cloud.language.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc8\x01\n\x08\x44ocument\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.cloud.language.v1beta2.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"~\n\x08Sentence\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12;\n\tsentiment\x18\x02 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"\x93\x04\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.language.v1beta2.Entity.Type\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.google.cloud.language.v1beta2.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12>\n\x08mentions\x18\x05 \x03(\x0b\x32,.google.cloud.language.v1beta2.EntityMention\x12;\n\tsentiment\x18\x06 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb9\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\x08\n\x04\x44\x41TE\x10\x0b\x12\n\n\x06NUMBER\x10\x0c\x12\t\n\x05PRICE\x10\r"\xda\x01\n\x05Token\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12\x43\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32+.google.cloud.language.v1beta2.PartOfSpeech\x12\x46\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32-.google.cloud.language.v1beta2.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"\xdf\x10\n\x0cPartOfSpeech\x12<\n\x03tag\x18\x01 \x01(\x0e\x32/.google.cloud.language.v1beta2.PartOfSpeech.Tag\x12\x42\n\x06\x61spect\x18\x02 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Aspect\x12>\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Case\x12>\n\x04\x66orm\x18\x04 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Form\x12\x42\n\x06gender\x18\x05 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Gender\x12>\n\x04mood\x18\x06 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Mood\x12\x42\n\x06number\x18\x07 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Number\x12\x42\n\x06person\x18\x08 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Person\x12\x42\n\x06proper\x18\t \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Proper\x12L\n\x0breciprocity\x18\n \x01(\x0e\x32\x37.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity\x12@\n\x05tense\x18\x0b \x01(\x0e\x32\x31.google.cloud.language.v1beta2.PartOfSpeech.Tense\x12@\n\x05voice\x18\x0c \x01(\x0e\x32\x31.google.cloud.language.v1beta2.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"\x9a\x08\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.v1beta2.DependencyEdge.Label"\xa9\x07\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\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xf6\x01\n\rEntityMention\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12?\n\x04type\x18\x02 \x01(\x0e\x32\x31.google.cloud.language.v1beta2.EntityMention.Type\x12;\n\tsentiment\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x9d\x01\n\x17\x41nalyzeSentimentRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\xae\x01\n\x18\x41nalyzeSentimentResponse\x12\x44\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12:\n\tsentences\x18\x03 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence"\xa3\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"k\n\x1e\x41nalyzeEntitySentimentResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x9c\x01\n\x16\x41nalyzeEntitiesRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"d\n\x17\x41nalyzeEntitiesResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x9a\x01\n\x14\x41nalyzeSyntaxRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\x9b\x01\n\x15\x41nalyzeSyntaxResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x10\n\x08language\x18\x03 \x01(\t"U\n\x13\x43lassifyTextRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02"a\n\x14\x43lassifyTextResponse\x12I\n\ncategories\x18\x01 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory"\x89\x03\n\x13\x41nnotateTextRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12R\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32;.google.cloud.language.v1beta2.AnnotateTextRequest.FeaturesB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\x1a\x99\x01\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\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xe4\x02\n\x14\x41nnotateTextResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x37\n\x08\x65ntities\x18\x03 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x44\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t\x12I\n\ncategories\x18\x06 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory*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\x8a\x0b\n\x0fLanguageService\x12\xd7\x01\n\x10\x41nalyzeSentiment\x12\x36.google.cloud.language.v1beta2.AnalyzeSentimentRequest\x1a\x37.google.cloud.language.v1beta2.AnalyzeSentimentResponse"R\x82\xd3\xe4\x93\x02("#/v1beta2/documents:analyzeSentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xd3\x01\n\x0f\x41nalyzeEntities\x12\x35.google.cloud.language.v1beta2.AnalyzeEntitiesRequest\x1a\x36.google.cloud.language.v1beta2.AnalyzeEntitiesResponse"Q\x82\xd3\xe4\x93\x02\'""/v1beta2/documents:analyzeEntities:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xef\x01\n\x16\x41nalyzeEntitySentiment\x12<.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest\x1a=.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse"X\x82\xd3\xe4\x93\x02.")/v1beta2/documents:analyzeEntitySentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xcb\x01\n\rAnalyzeSyntax\x12\x33.google.cloud.language.v1beta2.AnalyzeSyntaxRequest\x1a\x34.google.cloud.language.v1beta2.AnalyzeSyntaxResponse"O\x82\xd3\xe4\x93\x02%" /v1beta2/documents:analyzeSyntax:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xae\x01\n\x0c\x43lassifyText\x12\x32.google.cloud.language.v1beta2.ClassifyTextRequest\x1a\x33.google.cloud.language.v1beta2.ClassifyTextResponse"5\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:classifyText:\x01*\xda\x41\x08\x64ocument\x12\xd9\x01\n\x0c\x41nnotateText\x12\x32.google.cloud.language.v1beta2.AnnotateTextRequest\x1a\x33.google.cloud.language.v1beta2.AnnotateTextResponse"`\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:annotateText:\x01*\xda\x41\x1f\x64ocument,features,encoding_type\xda\x41\x11\x64ocument,features\x1az\xca\x41\x17language.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platformB\x82\x01\n!com.google.cloud.language.v1beta2B\x14LanguageServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;languageb\x06proto3' - ), + serialized_options=b"\n!com.google.cloud.language.v1beta2B\024LanguageServiceProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;language", + serialized_pb=b'\n:google/cloud/language_v1beta2/proto/language_service.proto\x12\x1dgoogle.cloud.language.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc8\x01\n\x08\x44ocument\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.cloud.language.v1beta2.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"~\n\x08Sentence\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12;\n\tsentiment\x18\x02 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"\x93\x04\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.language.v1beta2.Entity.Type\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.google.cloud.language.v1beta2.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12>\n\x08mentions\x18\x05 \x03(\x0b\x32,.google.cloud.language.v1beta2.EntityMention\x12;\n\tsentiment\x18\x06 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb9\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\x08\n\x04\x44\x41TE\x10\x0b\x12\n\n\x06NUMBER\x10\x0c\x12\t\n\x05PRICE\x10\r"\xda\x01\n\x05Token\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12\x43\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32+.google.cloud.language.v1beta2.PartOfSpeech\x12\x46\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32-.google.cloud.language.v1beta2.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"\xdf\x10\n\x0cPartOfSpeech\x12<\n\x03tag\x18\x01 \x01(\x0e\x32/.google.cloud.language.v1beta2.PartOfSpeech.Tag\x12\x42\n\x06\x61spect\x18\x02 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Aspect\x12>\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Case\x12>\n\x04\x66orm\x18\x04 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Form\x12\x42\n\x06gender\x18\x05 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Gender\x12>\n\x04mood\x18\x06 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Mood\x12\x42\n\x06number\x18\x07 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Number\x12\x42\n\x06person\x18\x08 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Person\x12\x42\n\x06proper\x18\t \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Proper\x12L\n\x0breciprocity\x18\n \x01(\x0e\x32\x37.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity\x12@\n\x05tense\x18\x0b \x01(\x0e\x32\x31.google.cloud.language.v1beta2.PartOfSpeech.Tense\x12@\n\x05voice\x18\x0c \x01(\x0e\x32\x31.google.cloud.language.v1beta2.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"\x9a\x08\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.v1beta2.DependencyEdge.Label"\xa9\x07\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\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xf6\x01\n\rEntityMention\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12?\n\x04type\x18\x02 \x01(\x0e\x32\x31.google.cloud.language.v1beta2.EntityMention.Type\x12;\n\tsentiment\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x9d\x01\n\x17\x41nalyzeSentimentRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\xae\x01\n\x18\x41nalyzeSentimentResponse\x12\x44\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12:\n\tsentences\x18\x03 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence"\xa3\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"k\n\x1e\x41nalyzeEntitySentimentResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x9c\x01\n\x16\x41nalyzeEntitiesRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"d\n\x17\x41nalyzeEntitiesResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x9a\x01\n\x14\x41nalyzeSyntaxRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\x9b\x01\n\x15\x41nalyzeSyntaxResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x10\n\x08language\x18\x03 \x01(\t"U\n\x13\x43lassifyTextRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02"a\n\x14\x43lassifyTextResponse\x12I\n\ncategories\x18\x01 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory"\x89\x03\n\x13\x41nnotateTextRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12R\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32;.google.cloud.language.v1beta2.AnnotateTextRequest.FeaturesB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\x1a\x99\x01\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\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xe4\x02\n\x14\x41nnotateTextResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x37\n\x08\x65ntities\x18\x03 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x44\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t\x12I\n\ncategories\x18\x06 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory*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\x8a\x0b\n\x0fLanguageService\x12\xd7\x01\n\x10\x41nalyzeSentiment\x12\x36.google.cloud.language.v1beta2.AnalyzeSentimentRequest\x1a\x37.google.cloud.language.v1beta2.AnalyzeSentimentResponse"R\x82\xd3\xe4\x93\x02("#/v1beta2/documents:analyzeSentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xd3\x01\n\x0f\x41nalyzeEntities\x12\x35.google.cloud.language.v1beta2.AnalyzeEntitiesRequest\x1a\x36.google.cloud.language.v1beta2.AnalyzeEntitiesResponse"Q\x82\xd3\xe4\x93\x02\'""/v1beta2/documents:analyzeEntities:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xef\x01\n\x16\x41nalyzeEntitySentiment\x12<.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest\x1a=.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse"X\x82\xd3\xe4\x93\x02.")/v1beta2/documents:analyzeEntitySentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xcb\x01\n\rAnalyzeSyntax\x12\x33.google.cloud.language.v1beta2.AnalyzeSyntaxRequest\x1a\x34.google.cloud.language.v1beta2.AnalyzeSyntaxResponse"O\x82\xd3\xe4\x93\x02%" /v1beta2/documents:analyzeSyntax:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xae\x01\n\x0c\x43lassifyText\x12\x32.google.cloud.language.v1beta2.ClassifyTextRequest\x1a\x33.google.cloud.language.v1beta2.ClassifyTextResponse"5\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:classifyText:\x01*\xda\x41\x08\x64ocument\x12\xd9\x01\n\x0c\x41nnotateText\x12\x32.google.cloud.language.v1beta2.AnnotateTextRequest\x1a\x33.google.cloud.language.v1beta2.AnnotateTextResponse"`\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:annotateText:\x01*\xda\x41\x1f\x64ocument,features,encoding_type\xda\x41\x11\x64ocument,features\x1az\xca\x41\x17language.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platformB\x82\x01\n!com.google.cloud.language.v1beta2B\x14LanguageServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;languageb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -916,7 +909,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -934,7 +927,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -952,7 +945,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1056,7 +1049,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1074,7 +1067,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1087,7 +1080,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1112,7 +1105,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1295,7 +1288,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1773,7 +1766,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1830,7 +1823,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1893,7 +1886,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1962,7 +1955,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2025,7 +2018,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2094,7 +2087,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2139,7 +2132,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2208,7 +2201,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2253,7 +2246,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2340,7 +2333,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2385,7 +2378,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ) ], @@ -2573,7 +2566,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2591,7 +2584,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2714,7 +2707,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2870,11 +2863,12 @@ Document = _reflection.GeneratedProtocolMessageType( "Document", (_message.Message,), - dict( - DESCRIPTOR=_DOCUMENT, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""################################################################ # - Represents the input to API methods. + { + "DESCRIPTOR": _DOCUMENT, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents the input to API methods. + + Attributes: type: Required. If the type is not set or is ``TYPE_UNSPECIFIED``, @@ -2888,7 +2882,7 @@ gcs_content_uri: The Google Cloud Storage URI where the file content is located. This URI must be of the form: - gs://bucket\_name/object\_name. For more details, see + gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported. language: @@ -2902,50 +2896,54 @@ ``INVALID_ARGUMENT`` error is returned. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Document) - ), + }, ) _sym_db.RegisterMessage(Document) Sentence = _reflection.GeneratedProtocolMessageType( "Sentence", (_message.Message,), - dict( - DESCRIPTOR=_SENTENCE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents a sentence in the input document. + { + "DESCRIPTOR": _SENTENCE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents a sentence in the input document. + + Attributes: text: The sentence text. sentiment: - For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.F - eatures.extract\_document\_sentiment][google.cloud.language.v1 - beta2.AnnotateTextRequest.Features.extract\_document\_sentimen - t] is set to true, this field will contain the sentiment for - the sentence. + For calls to [AnalyzeSentiment]` <#section>`__ or if [Annotate + TextRequest.Features.extract_document_sentiment][google.cloud. + language.v1beta2.AnnotateTextRequest.Features.extract_document + _sentiment] is set to true, this field will contain the + sentiment for the sentence. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Sentence) - ), + }, ) _sym_db.RegisterMessage(Sentence) Entity = _reflection.GeneratedProtocolMessageType( "Entity", (_message.Message,), - dict( - MetadataEntry=_reflection.GeneratedProtocolMessageType( + { + "MetadataEntry": _reflection.GeneratedProtocolMessageType( "MetadataEntry", (_message.Message,), - dict( - DESCRIPTOR=_ENTITY_METADATAENTRY, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2" + { + "DESCRIPTOR": _ENTITY_METADATAENTRY, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2" # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Entity.MetadataEntry) - ), - ), - DESCRIPTOR=_ENTITY, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents a phrase in the text that is a known entity, such as a - person, an organization, or location. The API associates information, - such as salience and mentions, with entities. + }, + ), + "DESCRIPTOR": _ENTITY, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents a phrase in the text that is a known entity, + such as a person, an organization, or location. The API associates + information, such as salience and mentions, with entities. + + Attributes: name: The representative name for the entity. @@ -2967,14 +2965,15 @@ The mentions of this entity in the input document. The API currently supports proper noun mentions. sentiment: - For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq - uest.Features.extract\_entity\_sentiment][google.cloud.languag - e.v1beta2.AnnotateTextRequest.Features.extract\_entity\_sentim - ent] is set to true, this field will contain the aggregate - sentiment expressed for this entity in the provided document. + For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An + notateTextRequest.Features.extract_entity_sentiment][google.cl + oud.language.v1beta2.AnnotateTextRequest.Features.extract_enti + ty_sentiment] is set to true, this field will contain the + aggregate sentiment expressed for this entity in the provided + document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Entity) - ), + }, ) _sym_db.RegisterMessage(Entity) _sym_db.RegisterMessage(Entity.MetadataEntry) @@ -2982,10 +2981,13 @@ Token = _reflection.GeneratedProtocolMessageType( "Token", (_message.Message,), - dict( - DESCRIPTOR=_TOKEN, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents the smallest syntactic building block of the text. + { + "DESCRIPTOR": _TOKEN, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents the smallest syntactic building block of the + text. + + Attributes: text: The token text. @@ -2999,18 +3001,20 @@ the token. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Token) - ), + }, ) _sym_db.RegisterMessage(Token) Sentiment = _reflection.GeneratedProtocolMessageType( "Sentiment", (_message.Message,), - dict( - DESCRIPTOR=_SENTIMENT, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents the feeling associated with the entire text or entities in - the text. Next ID: 6 + { + "DESCRIPTOR": _SENTIMENT, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents the feeling associated with the entire text or + entities in the text. Next ID: 6 + + Attributes: magnitude: A non-negative number in the [0, +inf) range, which represents @@ -3021,17 +3025,19 @@ (positive sentiment). """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Sentiment) - ), + }, ) _sym_db.RegisterMessage(Sentiment) PartOfSpeech = _reflection.GeneratedProtocolMessageType( "PartOfSpeech", (_message.Message,), - dict( - DESCRIPTOR=_PARTOFSPEECH, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents part of speech information for a token. + { + "DESCRIPTOR": _PARTOFSPEECH, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents part of speech information for a token. + + Attributes: tag: The part of speech tag. @@ -3059,17 +3065,19 @@ The grammatical voice. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.PartOfSpeech) - ), + }, ) _sym_db.RegisterMessage(PartOfSpeech) DependencyEdge = _reflection.GeneratedProtocolMessageType( "DependencyEdge", (_message.Message,), - dict( - DESCRIPTOR=_DEPENDENCYEDGE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents dependency parse tree information for a token. + { + "DESCRIPTOR": _DEPENDENCYEDGE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents dependency parse tree information for a token. + + Attributes: head_token_index: Represents the head of this token in the dependency tree. This @@ -3081,43 +3089,47 @@ The parse label for the token. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.DependencyEdge) - ), + }, ) _sym_db.RegisterMessage(DependencyEdge) EntityMention = _reflection.GeneratedProtocolMessageType( "EntityMention", (_message.Message,), - dict( - DESCRIPTOR=_ENTITYMENTION, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents a mention for an entity in the text. Currently, proper noun - mentions are supported. + { + "DESCRIPTOR": _ENTITYMENTION, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents a mention for an entity in the text. Currently, + proper noun mentions are supported. + + Attributes: text: The mention text. type: The type of the entity mention. sentiment: - For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq - uest.Features.extract\_entity\_sentiment][google.cloud.languag - e.v1beta2.AnnotateTextRequest.Features.extract\_entity\_sentim - ent] is set to true, this field will contain the sentiment - expressed for this mention of the entity in the provided - document. + For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An + notateTextRequest.Features.extract_entity_sentiment][google.cl + oud.language.v1beta2.AnnotateTextRequest.Features.extract_enti + ty_sentiment] is set to true, this field will contain the + sentiment expressed for this mention of the entity in the + provided document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.EntityMention) - ), + }, ) _sym_db.RegisterMessage(EntityMention) TextSpan = _reflection.GeneratedProtocolMessageType( "TextSpan", (_message.Message,), - dict( - DESCRIPTOR=_TEXTSPAN, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents an output piece of text. + { + "DESCRIPTOR": _TEXTSPAN, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents an output piece of text. + + Attributes: content: The content of the output text. @@ -3128,39 +3140,43 @@ specified in the API request. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.TextSpan) - ), + }, ) _sym_db.RegisterMessage(TextSpan) ClassificationCategory = _reflection.GeneratedProtocolMessageType( "ClassificationCategory", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFICATIONCATEGORY, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""Represents a category returned from the text classifier. + { + "DESCRIPTOR": _CLASSIFICATIONCATEGORY, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """Represents a category returned from the text classifier. + + Attributes: name: The name of the category representing the document, from the `predefined taxonomy `__. confidence: - The classifier's confidence of the category. Number represents + The classifier’s confidence of the category. Number represents how certain the classifier is that this category represents the given text. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassificationCategory) - ), + }, ) _sym_db.RegisterMessage(ClassificationCategory) AnalyzeSentimentRequest = _reflection.GeneratedProtocolMessageType( "AnalyzeSentimentRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZESENTIMENTREQUEST, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The sentiment analysis request message. + { + "DESCRIPTOR": _ANALYZESENTIMENTREQUEST, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The sentiment analysis request message. + + Attributes: document: Required. Input document. @@ -3169,17 +3185,19 @@ offsets for the sentence sentiment. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSentimentRequest) - ), + }, ) _sym_db.RegisterMessage(AnalyzeSentimentRequest) AnalyzeSentimentResponse = _reflection.GeneratedProtocolMessageType( "AnalyzeSentimentResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZESENTIMENTRESPONSE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The sentiment analysis response message. + { + "DESCRIPTOR": _ANALYZESENTIMENTRESPONSE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The sentiment analysis response message. + + Attributes: document_sentiment: The overall sentiment of the input document. @@ -3193,17 +3211,19 @@ The sentiment for all the sentences in the document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSentimentResponse) - ), + }, ) _sym_db.RegisterMessage(AnalyzeSentimentResponse) AnalyzeEntitySentimentRequest = _reflection.GeneratedProtocolMessageType( "AnalyzeEntitySentimentRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZEENTITYSENTIMENTREQUEST, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The entity-level sentiment analysis request message. + { + "DESCRIPTOR": _ANALYZEENTITYSENTIMENTREQUEST, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The entity-level sentiment analysis request message. + + Attributes: document: Required. Input document. @@ -3211,17 +3231,19 @@ The encoding type used by the API to calculate offsets. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest) - ), + }, ) _sym_db.RegisterMessage(AnalyzeEntitySentimentRequest) AnalyzeEntitySentimentResponse = _reflection.GeneratedProtocolMessageType( "AnalyzeEntitySentimentResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZEENTITYSENTIMENTRESPONSE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The entity-level sentiment analysis response message. + { + "DESCRIPTOR": _ANALYZEENTITYSENTIMENTRESPONSE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The entity-level sentiment analysis response message. + + Attributes: entities: The recognized entities in the input document with associated @@ -3234,17 +3256,19 @@ details. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse) - ), + }, ) _sym_db.RegisterMessage(AnalyzeEntitySentimentResponse) AnalyzeEntitiesRequest = _reflection.GeneratedProtocolMessageType( "AnalyzeEntitiesRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZEENTITIESREQUEST, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The entity analysis request message. + { + "DESCRIPTOR": _ANALYZEENTITIESREQUEST, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The entity analysis request message. + + Attributes: document: Required. Input document. @@ -3252,17 +3276,19 @@ The encoding type used by the API to calculate offsets. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitiesRequest) - ), + }, ) _sym_db.RegisterMessage(AnalyzeEntitiesRequest) AnalyzeEntitiesResponse = _reflection.GeneratedProtocolMessageType( "AnalyzeEntitiesResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZEENTITIESRESPONSE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The entity analysis response message. + { + "DESCRIPTOR": _ANALYZEENTITIESRESPONSE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The entity analysis response message. + + Attributes: entities: The recognized entities in the input document. @@ -3274,17 +3300,19 @@ details. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeEntitiesResponse) - ), + }, ) _sym_db.RegisterMessage(AnalyzeEntitiesResponse) AnalyzeSyntaxRequest = _reflection.GeneratedProtocolMessageType( "AnalyzeSyntaxRequest", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZESYNTAXREQUEST, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The syntax analysis request message. + { + "DESCRIPTOR": _ANALYZESYNTAXREQUEST, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The syntax analysis request message. + + Attributes: document: Required. Input document. @@ -3292,17 +3320,19 @@ The encoding type used by the API to calculate offsets. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSyntaxRequest) - ), + }, ) _sym_db.RegisterMessage(AnalyzeSyntaxRequest) AnalyzeSyntaxResponse = _reflection.GeneratedProtocolMessageType( "AnalyzeSyntaxResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANALYZESYNTAXRESPONSE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The syntax analysis response message. + { + "DESCRIPTOR": _ANALYZESYNTAXRESPONSE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The syntax analysis response message. + + Attributes: sentences: Sentences in the input document. @@ -3317,55 +3347,61 @@ details. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnalyzeSyntaxResponse) - ), + }, ) _sym_db.RegisterMessage(AnalyzeSyntaxResponse) ClassifyTextRequest = _reflection.GeneratedProtocolMessageType( "ClassifyTextRequest", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFYTEXTREQUEST, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The document classification request message. + { + "DESCRIPTOR": _CLASSIFYTEXTREQUEST, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The document classification request message. + + Attributes: document: Required. Input document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassifyTextRequest) - ), + }, ) _sym_db.RegisterMessage(ClassifyTextRequest) ClassifyTextResponse = _reflection.GeneratedProtocolMessageType( "ClassifyTextResponse", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFYTEXTRESPONSE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The document classification response message. + { + "DESCRIPTOR": _CLASSIFYTEXTRESPONSE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The document classification response message. + + Attributes: categories: Categories representing the input document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.ClassifyTextResponse) - ), + }, ) _sym_db.RegisterMessage(ClassifyTextResponse) AnnotateTextRequest = _reflection.GeneratedProtocolMessageType( "AnnotateTextRequest", (_message.Message,), - dict( - Features=_reflection.GeneratedProtocolMessageType( + { + "Features": _reflection.GeneratedProtocolMessageType( "Features", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATETEXTREQUEST_FEATURES, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""All available features for sentiment, syntax, and semantic analysis. - Setting each one to true will enable that specific analysis for the - input. Next ID: 10 + { + "DESCRIPTOR": _ANNOTATETEXTREQUEST_FEATURES, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """All available features for sentiment, syntax, and semantic + analysis. Setting each one to true will enable that specific analysis + for the input. Next ID: 10 + + Attributes: extract_syntax: Extract syntax information. @@ -3382,12 +3418,15 @@ language/docs/categories>`__. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextRequest.Features) - ), - ), - DESCRIPTOR=_ANNOTATETEXTREQUEST, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The request message for the text annotation API, which can perform - multiple analysis types (sentiment, entities, and syntax) in one call. + }, + ), + "DESCRIPTOR": _ANNOTATETEXTREQUEST, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The request message for the text annotation API, which can + perform multiple analysis types (sentiment, entities, and syntax) in one + call. + + Attributes: document: Required. Input document. @@ -3397,7 +3436,7 @@ The encoding type used by the API to calculate offsets. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextRequest) - ), + }, ) _sym_db.RegisterMessage(AnnotateTextRequest) _sym_db.RegisterMessage(AnnotateTextRequest.Features) @@ -3405,30 +3444,32 @@ AnnotateTextResponse = _reflection.GeneratedProtocolMessageType( "AnnotateTextResponse", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATETEXTRESPONSE, - __module__="google.cloud.language_v1beta2.proto.language_service_pb2", - __doc__="""The text annotations response message. + { + "DESCRIPTOR": _ANNOTATETEXTRESPONSE, + "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", + "__doc__": """The text annotations response message. + + Attributes: sentences: Sentences in the input document. Populated if the user enables - [AnnotateTextRequest.Features.extract\_syntax][google.cloud.la - nguage.v1beta2.AnnotateTextRequest.Features.extract\_syntax]. + [AnnotateTextRequest.Features.extract_syntax][google.cloud.lan + guage.v1beta2.AnnotateTextRequest.Features.extract_syntax]. tokens: Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.F - eatures.extract\_syntax][google.cloud.language.v1beta2.Annotat - eTextRequest.Features.extract\_syntax]. + eatures.extract_syntax][google.cloud.language.v1beta2.Annotate + TextRequest.Features.extract_syntax]. entities: Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.F - eatures.extract\_entities][google.cloud.language.v1beta2.Annot - ateTextRequest.Features.extract\_entities]. + eatures.extract_entities][google.cloud.language.v1beta2.Annota + teTextRequest.Features.extract_entities]. document_sentiment: The overall sentiment for the document. Populated if the user - enables [AnnotateTextRequest.Features.extract\_document\_senti - ment][google.cloud.language.v1beta2.AnnotateTextRequest.Featur - es.extract\_document\_sentiment]. + enables [AnnotateTextRequest.Features.extract_document_sentime + nt][google.cloud.language.v1beta2.AnnotateTextRequest.Features + .extract_document_sentiment]. language: The language of the text, which will be the same as the language specified in the request or, if not specified, the @@ -3439,7 +3480,7 @@ Categories identified in the input document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.AnnotateTextResponse) - ), + }, ) _sym_db.RegisterMessage(AnnotateTextResponse) @@ -3459,9 +3500,7 @@ full_name="google.cloud.language.v1beta2.LanguageService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\027language.googleapis.com\322A]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platform" - ), + serialized_options=b"\312A\027language.googleapis.com\322A]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platform", serialized_start=7094, serialized_end=8512, methods=[ @@ -3472,9 +3511,7 @@ containing_service=None, input_type=_ANALYZESENTIMENTREQUEST, output_type=_ANALYZESENTIMENTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002("#/v1beta2/documents:analyzeSentiment:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002("#/v1beta2/documents:analyzeSentiment:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="AnalyzeEntities", @@ -3483,9 +3520,7 @@ containing_service=None, input_type=_ANALYZEENTITIESREQUEST, output_type=_ANALYZEENTITIESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002\'""/v1beta2/documents:analyzeEntities:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002\'""/v1beta2/documents:analyzeEntities:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="AnalyzeEntitySentiment", @@ -3494,9 +3529,7 @@ containing_service=None, input_type=_ANALYZEENTITYSENTIMENTREQUEST, output_type=_ANALYZEENTITYSENTIMENTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002.")/v1beta2/documents:analyzeEntitySentiment:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002.")/v1beta2/documents:analyzeEntitySentiment:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="AnalyzeSyntax", @@ -3505,9 +3538,7 @@ containing_service=None, input_type=_ANALYZESYNTAXREQUEST, output_type=_ANALYZESYNTAXRESPONSE, - serialized_options=_b( - '\202\323\344\223\002%" /v1beta2/documents:analyzeSyntax:\001*\332A\026document,encoding_type\332A\010document' - ), + serialized_options=b'\202\323\344\223\002%" /v1beta2/documents:analyzeSyntax:\001*\332A\026document,encoding_type\332A\010document', ), _descriptor.MethodDescriptor( name="ClassifyText", @@ -3516,9 +3547,7 @@ containing_service=None, input_type=_CLASSIFYTEXTREQUEST, output_type=_CLASSIFYTEXTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002$"\037/v1beta2/documents:classifyText:\001*\332A\010document' - ), + serialized_options=b'\202\323\344\223\002$"\037/v1beta2/documents:classifyText:\001*\332A\010document', ), _descriptor.MethodDescriptor( name="AnnotateText", @@ -3527,9 +3556,7 @@ containing_service=None, input_type=_ANNOTATETEXTREQUEST, output_type=_ANNOTATETEXTRESPONSE, - serialized_options=_b( - '\202\323\344\223\002$"\037/v1beta2/documents:annotateText:\001*\332A\037document,features,encoding_type\332A\021document,features' - ), + serialized_options=b'\202\323\344\223\002$"\037/v1beta2/documents:annotateText:\001*\332A\037document,features,encoding_type\332A\021document,features', ), ], ) diff --git a/synth.metadata b/synth.metadata index 2da14990..71498ea2 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,32 +1,25 @@ { "sources": [ - { - "generator": { - "name": "artman", - "version": "2.0.0", - "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" - } - }, { "git": { "name": ".", "remote": "https://github.com/googleapis/python-language.git", - "sha": "c39138189a0c93512c1cdbb7cd00047c73a80402" + "sha": "7dff809b94b5a1d001aeb1e7763dbbe624865600" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab", - "internalRef": "307114445" + "sha": "e0f9d9e1f9de890db765be46f45ca8490723e3eb", + "internalRef": "309824146" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f5e4c17dc78a966dbf29961dd01f9bbd63e20a04" + "sha": "04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256" } } ], @@ -37,8 +30,7 @@ "apiName": "language", "apiVersion": "v1beta2", "language": "python", - "generator": "gapic", - "config": "google/cloud/language/artman_language_v1beta2.yaml" + "generator": "bazel" } }, { @@ -47,8 +39,7 @@ "apiName": "language", "apiVersion": "v1", "language": "python", - "generator": "gapic", - "config": "google/cloud/language/artman_language_v1.yaml" + "generator": "bazel" } } ] From 28b52b8e2bbdc7a07b4d5176bb2df85ae3048863 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:19:49 -0700 Subject: [PATCH 02/15] chore(python): create thread_safety doc This will be included in index.rst files. See https://github.com/googleapis/python-bigtable/pull/26/files Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue May 5 10:06:52 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 09c48461232ce929c34386259eb59018ad2d8eef Source-Link: https://github.com/googleapis/synthtool/commit/09c48461232ce929c34386259eb59018ad2d8eef --- docs/multiprocessing.rst | 7 +++++++ synth.metadata | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 docs/multiprocessing.rst diff --git a/docs/multiprocessing.rst b/docs/multiprocessing.rst new file mode 100644 index 00000000..1cb29d4c --- /dev/null +++ b/docs/multiprocessing.rst @@ -0,0 +1,7 @@ +.. note:: + + Because this client uses :mod:`grpcio` library, it is safe to + share instances across threads. In multiprocessing scenarios, the best + practice is to create client instances *after* the invocation of + :func:`os.fork` by :class:`multiprocessing.Pool` or + :class:`multiprocessing.Process`. diff --git a/synth.metadata b/synth.metadata index 71498ea2..18825012 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e0f9d9e1f9de890db765be46f45ca8490723e3eb", - "internalRef": "309824146" + "sha": "1b5a8d2bbb69c5a04db26bd546d2888e609c6bab", + "internalRef": "309845930" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256" + "sha": "09c48461232ce929c34386259eb59018ad2d8eef" } } ], From c420472f9700f05d6c079e3ab8558b95bcb38331 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:20:50 -0700 Subject: [PATCH 03/15] chore(python): remove extra #!/bin/bash Co-authored-by: Jeffrey Rennie Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue May 12 09:51:12 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 7482e79a82e353248769d819788adc1213e8c207 Source-Link: https://github.com/googleapis/synthtool/commit/7482e79a82e353248769d819788adc1213e8c207 --- .kokoro/publish-docs.sh | 2 -- synth.metadata | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.kokoro/publish-docs.sh b/.kokoro/publish-docs.sh index 84ab6380..becf302b 100755 --- a/.kokoro/publish-docs.sh +++ b/.kokoro/publish-docs.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Disable buffering, so that the logs stream through. diff --git a/synth.metadata b/synth.metadata index 18825012..3563541e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1b5a8d2bbb69c5a04db26bd546d2888e609c6bab", - "internalRef": "309845930" + "sha": "edd3b80fb770548d6ad780105f1782de6ff73ea0", + "internalRef": "311053644" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "09c48461232ce929c34386259eb59018ad2d8eef" + "sha": "7482e79a82e353248769d819788adc1213e8c207" } } ], From 201612ca0a593b3469493847d5c670fef9a1d585 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:22:17 -0700 Subject: [PATCH 04/15] fix: fix f-string usage in command debugger Fixes #546 Source-Author: Jeff Ching Source-Date: Wed May 13 09:15:01 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: f503622985e230a6792730bbc3b7746c11fce09e Source-Link: https://github.com/googleapis/synthtool/commit/f503622985e230a6792730bbc3b7746c11fce09e --- .../proto/language_service_pb2.py | 38 ++++++++++--------- synth.metadata | 6 +-- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/google/cloud/language_v1beta2/proto/language_service_pb2.py b/google/cloud/language_v1beta2/proto/language_service_pb2.py index d2d85549..c276ba2d 100644 --- a/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/google/cloud/language_v1beta2/proto/language_service_pb2.py @@ -2866,7 +2866,10 @@ { "DESCRIPTOR": _DOCUMENT, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """Represents the input to API methods. + "__doc__": """################################################################ + # + + Represents the input to API methods. Attributes: @@ -2913,11 +2916,11 @@ text: The sentence text. sentiment: - For calls to [AnalyzeSentiment]` <#section>`__ or if [Annotate - TextRequest.Features.extract_document_sentiment][google.cloud. - language.v1beta2.AnnotateTextRequest.Features.extract_document - _sentiment] is set to true, this field will contain the - sentiment for the sentence. + For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.F + eatures.extract_document_sentiment][google.cloud.language.v1be + ta2.AnnotateTextRequest.Features.extract_document_sentiment] + is set to true, this field will contain the sentiment for the + sentence. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Sentence) }, @@ -2965,12 +2968,11 @@ The mentions of this entity in the input document. The API currently supports proper noun mentions. sentiment: - For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An - notateTextRequest.Features.extract_entity_sentiment][google.cl - oud.language.v1beta2.AnnotateTextRequest.Features.extract_enti - ty_sentiment] is set to true, this field will contain the - aggregate sentiment expressed for this entity in the provided - document. + For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq + uest.Features.extract_entity_sentiment][google.cloud.language. + v1beta2.AnnotateTextRequest.Features.extract_entity_sentiment] + is set to true, this field will contain the aggregate + sentiment expressed for this entity in the provided document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.Entity) }, @@ -3109,12 +3111,12 @@ type: The type of the entity mention. sentiment: - For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An - notateTextRequest.Features.extract_entity_sentiment][google.cl - oud.language.v1beta2.AnnotateTextRequest.Features.extract_enti - ty_sentiment] is set to true, this field will contain the - sentiment expressed for this mention of the entity in the - provided document. + For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq + uest.Features.extract_entity_sentiment][google.cloud.language. + v1beta2.AnnotateTextRequest.Features.extract_entity_sentiment] + is set to true, this field will contain the sentiment + expressed for this mention of the entity in the provided + document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1beta2.EntityMention) }, diff --git a/synth.metadata b/synth.metadata index 3563541e..11779f06 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "edd3b80fb770548d6ad780105f1782de6ff73ea0", - "internalRef": "311053644" + "sha": "89e89786896d256c70f43e68a975470c4f4f220e", + "internalRef": "311239362" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7482e79a82e353248769d819788adc1213e8c207" + "sha": "f503622985e230a6792730bbc3b7746c11fce09e" } } ], From 75daa6d820e4430f2dbf8b399440b0e4ceb21a83 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:23:04 -0700 Subject: [PATCH 05/15] chore(python): remove one remaining extra bash line To avoid generating bogus PRs Co-authored-by: Jeffrey Rennie Source-Author: Carlos de la Guardia Source-Date: Tue May 19 11:57:19 2020 -0500 Source-Repo: googleapis/synthtool Source-Sha: d2364eb80b840a36136c8ce12f1c6efabcc9600e Source-Link: https://github.com/googleapis/synthtool/commit/d2364eb80b840a36136c8ce12f1c6efabcc9600e --- .kokoro/release.sh | 2 -- synth.metadata | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.kokoro/release.sh b/.kokoro/release.sh index 7d0a0d30..045cb037 100755 --- a/.kokoro/release.sh +++ b/.kokoro/release.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Start the releasetool reporter diff --git a/synth.metadata b/synth.metadata index 11779f06..275c831b 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "89e89786896d256c70f43e68a975470c4f4f220e", - "internalRef": "311239362" + "sha": "cd3ce2651c3921670217e664303976cdf76e9fe2", + "internalRef": "312123588" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f503622985e230a6792730bbc3b7746c11fce09e" + "sha": "d2364eb80b840a36136c8ce12f1c6efabcc9600e" } } ], From cda9ea512088c0f34b73fc0421471dba67441aae Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:23:50 -0700 Subject: [PATCH 06/15] Upgrade protoc-docs-plugin version to 0.7.0 to fix unstable docstrings. PiperOrigin-RevId: 312689208 Source-Author: Google APIs Source-Date: Thu May 21 10:00:47 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: dec3204175104cef49bf21d685d5517caaf0058f Source-Link: https://github.com/googleapis/googleapis/commit/dec3204175104cef49bf21d685d5517caaf0058f --- .../language_v1/proto/language_service_pb2.py | 88 ++++--------------- .../proto/language_service_pb2.py | 78 +++------------- synth.metadata | 6 +- 3 files changed, 36 insertions(+), 136 deletions(-) diff --git a/google/cloud/language_v1/proto/language_service_pb2.py b/google/cloud/language_v1/proto/language_service_pb2.py index 4b7f3684..699f9ea8 100644 --- a/google/cloud/language_v1/proto/language_service_pb2.py +++ b/google/cloud/language_v1/proto/language_service_pb2.py @@ -2864,12 +2864,8 @@ { "DESCRIPTOR": _DOCUMENT, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """################################################################ - # - + "__doc__": """################################################################ # Represents the input to API methods. - - Attributes: type: Required. If the type is not set or is ``TYPE_UNSPECIFIED``, @@ -2908,8 +2904,6 @@ "DESCRIPTOR": _SENTENCE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents a sentence in the input document. - - Attributes: text: The sentence text. @@ -2940,11 +2934,9 @@ ), "DESCRIPTOR": _ENTITY, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """Represents a phrase in the text that is a known entity, - such as a person, an organization, or location. The API associates - information, such as salience and mentions, with entities. - - + "__doc__": """Represents a phrase in the text that is a known entity, such as a + person, an organization, or location. The API associates information, + such as salience and mentions, with entities. Attributes: name: The representative name for the entity. @@ -2984,10 +2976,7 @@ { "DESCRIPTOR": _TOKEN, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """Represents the smallest syntactic building block of the - text. - - + "__doc__": """Represents the smallest syntactic building block of the text. Attributes: text: The token text. @@ -3011,10 +3000,8 @@ { "DESCRIPTOR": _SENTIMENT, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """Represents the feeling associated with the entire text or - entities in the text. - - + "__doc__": """Represents the feeling associated with the entire text or entities in + the text. Attributes: magnitude: A non-negative number in the [0, +inf) range, which represents @@ -3035,11 +3022,9 @@ { "DESCRIPTOR": _PARTOFSPEECH, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """Represents part of speech information for a token. Parts - of speech are as defined in - http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf - - + "__doc__": """Represents part of speech information for a token. Parts of speech are + as defined in http://www.lrec- + conf.org/proceedings/lrec2012/pdf/274_Paper.pdf Attributes: tag: The part of speech tag. @@ -3077,11 +3062,9 @@ { "DESCRIPTOR": _DEPENDENCYEDGE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """Represents dependency parse tree information for a token. - (For more information on dependency labels, see + "__doc__": """Represents dependency parse tree information for a token. (For more + information on dependency labels, see http://www.aclweb.org/anthology/P13-2017 - - Attributes: head_token_index: Represents the head of this token in the dependency tree. This @@ -3103,10 +3086,8 @@ { "DESCRIPTOR": _ENTITYMENTION, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """Represents a mention for an entity in the text. Currently, - proper noun mentions are supported. - - + "__doc__": """Represents a mention for an entity in the text. Currently, proper noun + mentions are supported. Attributes: text: The mention text. @@ -3131,8 +3112,6 @@ "DESCRIPTOR": _TEXTSPAN, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents an output piece of text. - - Attributes: content: The content of the output text. @@ -3154,8 +3133,6 @@ "DESCRIPTOR": _CLASSIFICATIONCATEGORY, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents a category returned from the text classifier. - - Attributes: name: The name of the category representing the document, from the @@ -3178,8 +3155,6 @@ "DESCRIPTOR": _ANALYZESENTIMENTREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The sentiment analysis request message. - - Attributes: document: Input document. @@ -3199,8 +3174,6 @@ "DESCRIPTOR": _ANALYZESENTIMENTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The sentiment analysis response message. - - Attributes: document_sentiment: The overall sentiment of the input document. @@ -3224,8 +3197,6 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis request message. - - Attributes: document: Input document. @@ -3244,8 +3215,6 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis response message. - - Attributes: entities: The recognized entities in the input document with associated @@ -3268,8 +3237,6 @@ "DESCRIPTOR": _ANALYZEENTITIESREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity analysis request message. - - Attributes: document: Input document. @@ -3288,8 +3255,6 @@ "DESCRIPTOR": _ANALYZEENTITIESRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity analysis response message. - - Attributes: entities: The recognized entities in the input document. @@ -3311,8 +3276,6 @@ "DESCRIPTOR": _ANALYZESYNTAXREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The syntax analysis request message. - - Attributes: document: Input document. @@ -3331,8 +3294,6 @@ "DESCRIPTOR": _ANALYZESYNTAXRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The syntax analysis response message. - - Attributes: sentences: Sentences in the input document. @@ -3357,8 +3318,6 @@ "DESCRIPTOR": _CLASSIFYTEXTREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The document classification request message. - - Attributes: document: Input document. @@ -3375,8 +3334,6 @@ "DESCRIPTOR": _CLASSIFYTEXTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The document classification response message. - - Attributes: categories: Categories representing the input document. @@ -3396,11 +3353,9 @@ { "DESCRIPTOR": _ANNOTATETEXTREQUEST_FEATURES, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """All available features for sentiment, syntax, and semantic - analysis. Setting each one to true will enable that specific analysis - for the input. - - + "__doc__": """All available features for sentiment, syntax, and semantic analysis. + Setting each one to true will enable that specific analysis for the + input. Attributes: extract_syntax: Extract syntax information. @@ -3418,11 +3373,8 @@ ), "DESCRIPTOR": _ANNOTATETEXTREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """The request message for the text annotation API, which can - perform multiple analysis types (sentiment, entities, and syntax) in one - call. - - + "__doc__": """The request message for the text annotation API, which can perform + multiple analysis types (sentiment, entities, and syntax) in one call. Attributes: document: Input document. @@ -3444,8 +3396,6 @@ "DESCRIPTOR": _ANNOTATETEXTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The text annotations response message. - - Attributes: sentences: Sentences in the input document. Populated if the user enables diff --git a/google/cloud/language_v1beta2/proto/language_service_pb2.py b/google/cloud/language_v1beta2/proto/language_service_pb2.py index c276ba2d..dca75858 100644 --- a/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/google/cloud/language_v1beta2/proto/language_service_pb2.py @@ -2866,12 +2866,8 @@ { "DESCRIPTOR": _DOCUMENT, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """################################################################ - # - + "__doc__": """################################################################ # Represents the input to API methods. - - Attributes: type: Required. If the type is not set or is ``TYPE_UNSPECIFIED``, @@ -2910,8 +2906,6 @@ "DESCRIPTOR": _SENTENCE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents a sentence in the input document. - - Attributes: text: The sentence text. @@ -2942,11 +2936,9 @@ ), "DESCRIPTOR": _ENTITY, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """Represents a phrase in the text that is a known entity, - such as a person, an organization, or location. The API associates - information, such as salience and mentions, with entities. - - + "__doc__": """Represents a phrase in the text that is a known entity, such as a + person, an organization, or location. The API associates information, + such as salience and mentions, with entities. Attributes: name: The representative name for the entity. @@ -2986,10 +2978,7 @@ { "DESCRIPTOR": _TOKEN, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """Represents the smallest syntactic building block of the - text. - - + "__doc__": """Represents the smallest syntactic building block of the text. Attributes: text: The token text. @@ -3013,10 +3002,8 @@ { "DESCRIPTOR": _SENTIMENT, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """Represents the feeling associated with the entire text or - entities in the text. Next ID: 6 - - + "__doc__": """Represents the feeling associated with the entire text or entities in + the text. Next ID: 6 Attributes: magnitude: A non-negative number in the [0, +inf) range, which represents @@ -3038,8 +3025,6 @@ "DESCRIPTOR": _PARTOFSPEECH, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents part of speech information for a token. - - Attributes: tag: The part of speech tag. @@ -3078,8 +3063,6 @@ "DESCRIPTOR": _DEPENDENCYEDGE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents dependency parse tree information for a token. - - Attributes: head_token_index: Represents the head of this token in the dependency tree. This @@ -3101,10 +3084,8 @@ { "DESCRIPTOR": _ENTITYMENTION, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """Represents a mention for an entity in the text. Currently, - proper noun mentions are supported. - - + "__doc__": """Represents a mention for an entity in the text. Currently, proper noun + mentions are supported. Attributes: text: The mention text. @@ -3130,8 +3111,6 @@ "DESCRIPTOR": _TEXTSPAN, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents an output piece of text. - - Attributes: content: The content of the output text. @@ -3153,8 +3132,6 @@ "DESCRIPTOR": _CLASSIFICATIONCATEGORY, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents a category returned from the text classifier. - - Attributes: name: The name of the category representing the document, from the @@ -3177,8 +3154,6 @@ "DESCRIPTOR": _ANALYZESENTIMENTREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The sentiment analysis request message. - - Attributes: document: Required. Input document. @@ -3198,8 +3173,6 @@ "DESCRIPTOR": _ANALYZESENTIMENTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The sentiment analysis response message. - - Attributes: document_sentiment: The overall sentiment of the input document. @@ -3224,8 +3197,6 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis request message. - - Attributes: document: Required. Input document. @@ -3244,8 +3215,6 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis response message. - - Attributes: entities: The recognized entities in the input document with associated @@ -3269,8 +3238,6 @@ "DESCRIPTOR": _ANALYZEENTITIESREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity analysis request message. - - Attributes: document: Required. Input document. @@ -3289,8 +3256,6 @@ "DESCRIPTOR": _ANALYZEENTITIESRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity analysis response message. - - Attributes: entities: The recognized entities in the input document. @@ -3313,8 +3278,6 @@ "DESCRIPTOR": _ANALYZESYNTAXREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The syntax analysis request message. - - Attributes: document: Required. Input document. @@ -3333,8 +3296,6 @@ "DESCRIPTOR": _ANALYZESYNTAXRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The syntax analysis response message. - - Attributes: sentences: Sentences in the input document. @@ -3360,8 +3321,6 @@ "DESCRIPTOR": _CLASSIFYTEXTREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The document classification request message. - - Attributes: document: Required. Input document. @@ -3378,8 +3337,6 @@ "DESCRIPTOR": _CLASSIFYTEXTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The document classification response message. - - Attributes: categories: Categories representing the input document. @@ -3399,11 +3356,9 @@ { "DESCRIPTOR": _ANNOTATETEXTREQUEST_FEATURES, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """All available features for sentiment, syntax, and semantic - analysis. Setting each one to true will enable that specific analysis - for the input. Next ID: 10 - - + "__doc__": """All available features for sentiment, syntax, and semantic analysis. + Setting each one to true will enable that specific analysis for the + input. Next ID: 10 Attributes: extract_syntax: Extract syntax information. @@ -3424,11 +3379,8 @@ ), "DESCRIPTOR": _ANNOTATETEXTREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", - "__doc__": """The request message for the text annotation API, which can - perform multiple analysis types (sentiment, entities, and syntax) in one - call. - - + "__doc__": """The request message for the text annotation API, which can perform + multiple analysis types (sentiment, entities, and syntax) in one call. Attributes: document: Required. Input document. @@ -3450,8 +3402,6 @@ "DESCRIPTOR": _ANNOTATETEXTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The text annotations response message. - - Attributes: sentences: Sentences in the input document. Populated if the user enables diff --git a/synth.metadata b/synth.metadata index 275c831b..58e0ea1e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "cd3ce2651c3921670217e664303976cdf76e9fe2", - "internalRef": "312123588" + "sha": "dec3204175104cef49bf21d685d5517caaf0058f", + "internalRef": "312689208" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d2364eb80b840a36136c8ce12f1c6efabcc9600e" + "sha": "7ee92820e64c0aea379781b82399d6b3f3c8655f" } } ], From 30464da486b105cb551ce7e17715239db93bb475 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:34:12 -0700 Subject: [PATCH 07/15] bazel: update protobuf, rules_go, gazelle, and gapic-generator-go versions - protobuf v3.12.1 - rules_go v0.23.0 - gazelle v0.21.0 - gapic-generator-go v0.14.1 PiperOrigin-RevId: 313460921 Source-Author: Google APIs Source-Date: Wed May 27 14:10:16 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: c4e37010d74071851ff24121f522e802231ac86e Source-Link: https://github.com/googleapis/googleapis/commit/c4e37010d74071851ff24121f522e802231ac86e --- .../language_v1/proto/language_service_pb2.py | 1393 ++++++++++++++--- .../proto/language_service_pb2.py | 1393 ++++++++++++++--- synth.metadata | 6 +- 3 files changed, 2429 insertions(+), 363 deletions(-) diff --git a/google/cloud/language_v1/proto/language_service_pb2.py b/google/cloud/language_v1/proto/language_service_pb2.py index 699f9ea8..6b611668 100644 --- a/google/cloud/language_v1/proto/language_service_pb2.py +++ b/google/cloud/language_v1/proto/language_service_pb2.py @@ -23,6 +23,7 @@ package="google.cloud.language.v1", syntax="proto3", serialized_options=b"\n\034com.google.cloud.language.v1B\024LanguageServiceProtoP\001Z@google.golang.org/genproto/googleapis/cloud/language/v1;language", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n5google/cloud/language_v1/proto/language_service.proto\x12\x18google.cloud.language.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto"\xc3\x01\n\x08\x44ocument\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32\'.google.cloud.language.v1.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"t\n\x08Sentence\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12\x36\n\tsentiment\x18\x02 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"\xff\x03\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x33\n\x04type\x18\x02 \x01(\x0e\x32%.google.cloud.language.v1.Entity.Type\x12@\n\x08metadata\x18\x03 \x03(\x0b\x32..google.cloud.language.v1.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12\x39\n\x08mentions\x18\x05 \x03(\x0b\x32\'.google.cloud.language.v1.EntityMention\x12\x36\n\tsentiment\x18\x06 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb9\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\x08\n\x04\x44\x41TE\x10\x0b\x12\n\n\x06NUMBER\x10\x0c\x12\t\n\x05PRICE\x10\r"\xcb\x01\n\x05Token\x12\x30\n\x04text\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.TextSpan\x12>\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"\x95\x08\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"\xa9\x07\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\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xe7\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\x12\x36\n\tsentiment\x18\x03 \x01(\x0b\x32#.google.cloud.language.v1.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x93\x01\n\x17\x41nalyzeSentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"\x99\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\x12=\n\rencoding_type\x18\x02 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType"f\n\x1e\x41nalyzeEntitySentimentResponse\x12\x32\n\x08\x65ntities\x18\x01 \x03(\x0b\x32 .google.cloud.language.v1.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x92\x01\n\x16\x41nalyzeEntitiesRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"\x90\x01\n\x14\x41nalyzeSyntaxRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\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"P\n\x13\x43lassifyTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02"\\\n\x14\x43lassifyTextResponse\x12\x44\n\ncategories\x18\x01 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory"\xfa\x02\n\x13\x41nnotateTextRequest\x12\x39\n\x08\x64ocument\x18\x01 \x01(\x0b\x32".google.cloud.language.v1.DocumentB\x03\xe0\x41\x02\x12M\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32\x36.google.cloud.language.v1.AnnotateTextRequest.FeaturesB\x03\xe0\x41\x02\x12=\n\rencoding_type\x18\x03 \x01(\x0e\x32&.google.cloud.language.v1.EncodingType\x1a\x99\x01\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\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xcb\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\x12\x44\n\ncategories\x18\x06 \x03(\x0b\x32\x30.google.cloud.language.v1.ClassificationCategory*8\n\x0c\x45ncodingType\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04UTF8\x10\x01\x12\t\n\x05UTF16\x10\x02\x12\t\n\x05UTF32\x10\x03\x32\xb0\n\n\x0fLanguageService\x12\xc8\x01\n\x10\x41nalyzeSentiment\x12\x31.google.cloud.language.v1.AnalyzeSentimentRequest\x1a\x32.google.cloud.language.v1.AnalyzeSentimentResponse"M\x82\xd3\xe4\x93\x02#"\x1e/v1/documents:analyzeSentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xc4\x01\n\x0f\x41nalyzeEntities\x12\x30.google.cloud.language.v1.AnalyzeEntitiesRequest\x1a\x31.google.cloud.language.v1.AnalyzeEntitiesResponse"L\x82\xd3\xe4\x93\x02""\x1d/v1/documents:analyzeEntities:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xe0\x01\n\x16\x41nalyzeEntitySentiment\x12\x37.google.cloud.language.v1.AnalyzeEntitySentimentRequest\x1a\x38.google.cloud.language.v1.AnalyzeEntitySentimentResponse"S\x82\xd3\xe4\x93\x02)"$/v1/documents:analyzeEntitySentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xbc\x01\n\rAnalyzeSyntax\x12..google.cloud.language.v1.AnalyzeSyntaxRequest\x1a/.google.cloud.language.v1.AnalyzeSyntaxResponse"J\x82\xd3\xe4\x93\x02 "\x1b/v1/documents:analyzeSyntax:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\x9f\x01\n\x0c\x43lassifyText\x12-.google.cloud.language.v1.ClassifyTextRequest\x1a..google.cloud.language.v1.ClassifyTextResponse"0\x82\xd3\xe4\x93\x02\x1f"\x1a/v1/documents:classifyText:\x01*\xda\x41\x08\x64ocument\x12\xca\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*\xda\x41\x1f\x64ocument,features,encoding_type\xda\x41\x11\x64ocument,features\x1az\xca\x41\x17language.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platformBx\n\x1c\x63om.google.cloud.language.v1B\x14LanguageServiceProtoP\x01Z@google.golang.org/genproto/googleapis/cloud/language/v1;languageb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -36,18 +37,39 @@ full_name="google.cloud.language.v1.EncodingType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="NONE", index=0, number=0, serialized_options=None, type=None + name="NONE", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UTF8", index=1, number=1, serialized_options=None, type=None + name="UTF8", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UTF16", index=2, number=2, serialized_options=None, type=None + name="UTF16", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UTF32", index=3, number=3, serialized_options=None, type=None + name="UTF32", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -69,6 +91,7 @@ full_name="google.cloud.language.v1.Document.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TYPE_UNSPECIFIED", @@ -76,12 +99,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PLAIN_TEXT", index=1, number=1, serialized_options=None, type=None + name="PLAIN_TEXT", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HTML", index=2, number=2, serialized_options=None, type=None + name="HTML", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -96,45 +130,111 @@ full_name="google.cloud.language.v1.Entity.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PERSON", index=1, number=1, serialized_options=None, type=None + name="PERSON", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOCATION", index=2, number=2, serialized_options=None, type=None + name="LOCATION", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ORGANIZATION", index=3, number=3, serialized_options=None, type=None + name="ORGANIZATION", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EVENT", index=4, number=4, serialized_options=None, type=None + name="EVENT", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="WORK_OF_ART", index=5, number=5, serialized_options=None, type=None + name="WORK_OF_ART", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONSUMER_GOOD", index=6, number=6, serialized_options=None, type=None + name="CONSUMER_GOOD", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OTHER", index=7, number=7, serialized_options=None, type=None + name="OTHER", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PHONE_NUMBER", index=8, number=9, serialized_options=None, type=None + name="PHONE_NUMBER", + index=8, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADDRESS", index=9, number=10, serialized_options=None, type=None + name="ADDRESS", + index=9, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DATE", index=10, number=11, serialized_options=None, type=None + name="DATE", + index=10, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUMBER", index=11, number=12, serialized_options=None, type=None + name="NUMBER", + index=11, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRICE", index=12, number=13, serialized_options=None, type=None + name="PRICE", + index=12, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -149,48 +249,119 @@ full_name="google.cloud.language.v1.PartOfSpeech.Tag", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADJ", index=1, number=1, serialized_options=None, type=None + name="ADJ", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADP", index=2, number=2, serialized_options=None, type=None + name="ADP", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADV", index=3, number=3, serialized_options=None, type=None + name="ADV", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONJ", index=4, number=4, serialized_options=None, type=None + name="CONJ", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DET", index=5, number=5, serialized_options=None, type=None + name="DET", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOUN", index=6, number=6, serialized_options=None, type=None + name="NOUN", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUM", index=7, number=7, serialized_options=None, type=None + name="NUM", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRON", index=8, number=8, serialized_options=None, type=None + name="PRON", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRT", index=9, number=9, serialized_options=None, type=None + name="PRT", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PUNCT", index=10, number=10, serialized_options=None, type=None + name="PUNCT", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERB", index=11, number=11, serialized_options=None, type=None + name="VERB", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="X", index=12, number=12, serialized_options=None, type=None + name="X", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AFFIX", index=13, number=13, serialized_options=None, type=None + name="AFFIX", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -205,18 +376,39 @@ full_name="google.cloud.language.v1.PartOfSpeech.Aspect", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="ASPECT_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="ASPECT_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PERFECTIVE", index=1, number=1, serialized_options=None, type=None + name="PERFECTIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPERFECTIVE", index=2, number=2, serialized_options=None, type=None + name="IMPERFECTIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROGRESSIVE", index=3, number=3, serialized_options=None, type=None + name="PROGRESSIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -231,39 +423,95 @@ full_name="google.cloud.language.v1.PartOfSpeech.Case", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="CASE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="CASE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACCUSATIVE", index=1, number=1, serialized_options=None, type=None + name="ACCUSATIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVERBIAL", index=2, number=2, serialized_options=None, type=None + name="ADVERBIAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMPLEMENTIVE", index=3, number=3, serialized_options=None, type=None + name="COMPLEMENTIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DATIVE", index=4, number=4, serialized_options=None, type=None + name="DATIVE", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GENITIVE", index=5, number=5, serialized_options=None, type=None + name="GENITIVE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INSTRUMENTAL", index=6, number=6, serialized_options=None, type=None + name="INSTRUMENTAL", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOCATIVE", index=7, number=7, serialized_options=None, type=None + name="LOCATIVE", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMINATIVE", index=8, number=8, serialized_options=None, type=None + name="NOMINATIVE", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OBLIQUE", index=9, number=9, serialized_options=None, type=None + name="OBLIQUE", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PARTITIVE", index=10, number=10, serialized_options=None, type=None + name="PARTITIVE", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PREPOSITIONAL", @@ -271,6 +519,7 @@ number=11, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="REFLEXIVE_CASE", @@ -278,6 +527,7 @@ number=12, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RELATIVE_CASE", @@ -285,9 +535,15 @@ number=13, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VOCATIVE", index=14, number=14, serialized_options=None, type=None + name="VOCATIVE", + index=14, + number=14, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -302,42 +558,103 @@ full_name="google.cloud.language.v1.PartOfSpeech.Form", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="FORM_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="FORM_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADNOMIAL", index=1, number=1, serialized_options=None, type=None + name="ADNOMIAL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXILIARY", index=2, number=2, serialized_options=None, type=None + name="AUXILIARY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMPLEMENTIZER", index=3, number=3, serialized_options=None, type=None + name="COMPLEMENTIZER", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FINAL_ENDING", index=4, number=4, serialized_options=None, type=None + name="FINAL_ENDING", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GERUND", index=5, number=5, serialized_options=None, type=None + name="GERUND", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REALIS", index=6, number=6, serialized_options=None, type=None + name="REALIS", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IRREALIS", index=7, number=7, serialized_options=None, type=None + name="IRREALIS", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SHORT", index=8, number=8, serialized_options=None, type=None + name="SHORT", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LONG", index=9, number=9, serialized_options=None, type=None + name="LONG", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ORDER", index=10, number=10, serialized_options=None, type=None + name="ORDER", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SPECIFIC", index=11, number=11, serialized_options=None, type=None + name="SPECIFIC", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -352,18 +669,39 @@ full_name="google.cloud.language.v1.PartOfSpeech.Gender", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="GENDER_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="GENDER_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FEMININE", index=1, number=1, serialized_options=None, type=None + name="FEMININE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MASCULINE", index=2, number=2, serialized_options=None, type=None + name="MASCULINE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEUTER", index=3, number=3, serialized_options=None, type=None + name="NEUTER", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -378,9 +716,15 @@ full_name="google.cloud.language.v1.PartOfSpeech.Mood", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="MOOD_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="MOOD_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CONDITIONAL_MOOD", @@ -388,21 +732,47 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPERATIVE", index=2, number=2, serialized_options=None, type=None + name="IMPERATIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INDICATIVE", index=3, number=3, serialized_options=None, type=None + name="INDICATIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INTERROGATIVE", index=4, number=4, serialized_options=None, type=None + name="INTERROGATIVE", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="JUSSIVE", index=5, number=5, serialized_options=None, type=None + name="JUSSIVE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUBJUNCTIVE", index=6, number=6, serialized_options=None, type=None + name="SUBJUNCTIVE", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -417,18 +787,39 @@ full_name="google.cloud.language.v1.PartOfSpeech.Number", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="NUMBER_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="NUMBER_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SINGULAR", index=1, number=1, serialized_options=None, type=None + name="SINGULAR", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PLURAL", index=2, number=2, serialized_options=None, type=None + name="PLURAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DUAL", index=3, number=3, serialized_options=None, type=None + name="DUAL", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -443,18 +834,39 @@ full_name="google.cloud.language.v1.PartOfSpeech.Person", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="PERSON_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="PERSON_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FIRST", index=1, number=1, serialized_options=None, type=None + name="FIRST", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SECOND", index=2, number=2, serialized_options=None, type=None + name="SECOND", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="THIRD", index=3, number=3, serialized_options=None, type=None + name="THIRD", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="REFLEXIVE_PERSON", @@ -462,6 +874,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -476,15 +889,31 @@ full_name="google.cloud.language.v1.PartOfSpeech.Proper", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="PROPER_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="PROPER_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROPER", index=1, number=1, serialized_options=None, type=None + name="PROPER", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOT_PROPER", index=2, number=2, serialized_options=None, type=None + name="NOT_PROPER", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -499,6 +928,7 @@ full_name="google.cloud.language.v1.PartOfSpeech.Reciprocity", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="RECIPROCITY_UNKNOWN", @@ -506,12 +936,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RECIPROCAL", index=1, number=1, serialized_options=None, type=None + name="RECIPROCAL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NON_RECIPROCAL", index=2, number=2, serialized_options=None, type=None + name="NON_RECIPROCAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -526,9 +967,15 @@ full_name="google.cloud.language.v1.PartOfSpeech.Tense", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="TENSE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="TENSE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CONDITIONAL_TENSE", @@ -536,21 +983,47 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FUTURE", index=2, number=2, serialized_options=None, type=None + name="FUTURE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PAST", index=3, number=3, serialized_options=None, type=None + name="PAST", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRESENT", index=4, number=4, serialized_options=None, type=None + name="PRESENT", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPERFECT", index=5, number=5, serialized_options=None, type=None + name="IMPERFECT", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PLUPERFECT", index=6, number=6, serialized_options=None, type=None + name="PLUPERFECT", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -565,18 +1038,39 @@ full_name="google.cloud.language.v1.PartOfSpeech.Voice", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="VOICE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="VOICE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACTIVE", index=1, number=1, serialized_options=None, type=None + name="ACTIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CAUSATIVE", index=2, number=2, serialized_options=None, type=None + name="CAUSATIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PASSIVE", index=3, number=3, serialized_options=None, type=None + name="PASSIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -591,255 +1085,671 @@ full_name="google.cloud.language.v1.DependencyEdge.Label", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ABBREV", index=1, number=1, serialized_options=None, type=None + name="ABBREV", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACOMP", index=2, number=2, serialized_options=None, type=None + name="ACOMP", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVCL", index=3, number=3, serialized_options=None, type=None + name="ADVCL", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVMOD", index=4, number=4, serialized_options=None, type=None + name="ADVMOD", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AMOD", index=5, number=5, serialized_options=None, type=None + name="AMOD", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="APPOS", index=6, number=6, serialized_options=None, type=None + name="APPOS", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ATTR", index=7, number=7, serialized_options=None, type=None + name="ATTR", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUX", index=8, number=8, serialized_options=None, type=None + name="AUX", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXPASS", index=9, number=9, serialized_options=None, type=None + name="AUXPASS", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CC", index=10, number=10, serialized_options=None, type=None + name="CC", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CCOMP", index=11, number=11, serialized_options=None, type=None + name="CCOMP", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONJ", index=12, number=12, serialized_options=None, type=None + name="CONJ", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CSUBJ", index=13, number=13, serialized_options=None, type=None + name="CSUBJ", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CSUBJPASS", index=14, number=14, serialized_options=None, type=None + name="CSUBJPASS", + index=14, + number=14, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DEP", index=15, number=15, serialized_options=None, type=None + name="DEP", + index=15, + number=15, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DET", index=16, number=16, serialized_options=None, type=None + name="DET", + index=16, + number=16, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DISCOURSE", index=17, number=17, serialized_options=None, type=None + name="DISCOURSE", + index=17, + number=17, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DOBJ", index=18, number=18, serialized_options=None, type=None + name="DOBJ", + index=18, + number=18, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EXPL", index=19, number=19, serialized_options=None, type=None + name="EXPL", + index=19, + number=19, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GOESWITH", index=20, number=20, serialized_options=None, type=None + name="GOESWITH", + index=20, + number=20, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IOBJ", index=21, number=21, serialized_options=None, type=None + name="IOBJ", + index=21, + number=21, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MARK", index=22, number=22, serialized_options=None, type=None + name="MARK", + index=22, + number=22, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MWE", index=23, number=23, serialized_options=None, type=None + name="MWE", + index=23, + number=23, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MWV", index=24, number=24, serialized_options=None, type=None + name="MWV", + index=24, + number=24, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEG", index=25, number=25, serialized_options=None, type=None + name="NEG", + index=25, + number=25, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NN", index=26, number=26, serialized_options=None, type=None + name="NN", + index=26, + number=26, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NPADVMOD", index=27, number=27, serialized_options=None, type=None + name="NPADVMOD", + index=27, + number=27, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NSUBJ", index=28, number=28, serialized_options=None, type=None + name="NSUBJ", + index=28, + number=28, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NSUBJPASS", index=29, number=29, serialized_options=None, type=None + name="NSUBJPASS", + index=29, + number=29, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUM", index=30, number=30, serialized_options=None, type=None + name="NUM", + index=30, + number=30, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUMBER", index=31, number=31, serialized_options=None, type=None + name="NUMBER", + index=31, + number=31, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="P", index=32, number=32, serialized_options=None, type=None + name="P", + index=32, + number=32, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PARATAXIS", index=33, number=33, serialized_options=None, type=None + name="PARATAXIS", + index=33, + number=33, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PARTMOD", index=34, number=34, serialized_options=None, type=None + name="PARTMOD", + index=34, + number=34, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PCOMP", index=35, number=35, serialized_options=None, type=None + name="PCOMP", + index=35, + number=35, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POBJ", index=36, number=36, serialized_options=None, type=None + name="POBJ", + index=36, + number=36, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSS", index=37, number=37, serialized_options=None, type=None + name="POSS", + index=37, + number=37, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSTNEG", index=38, number=38, serialized_options=None, type=None + name="POSTNEG", + index=38, + number=38, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRECOMP", index=39, number=39, serialized_options=None, type=None + name="PRECOMP", + index=39, + number=39, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRECONJ", index=40, number=40, serialized_options=None, type=None + name="PRECONJ", + index=40, + number=40, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PREDET", index=41, number=41, serialized_options=None, type=None + name="PREDET", + index=41, + number=41, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PREF", index=42, number=42, serialized_options=None, type=None + name="PREF", + index=42, + number=42, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PREP", index=43, number=43, serialized_options=None, type=None + name="PREP", + index=43, + number=43, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRONL", index=44, number=44, serialized_options=None, type=None + name="PRONL", + index=44, + number=44, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRT", index=45, number=45, serialized_options=None, type=None + name="PRT", + index=45, + number=45, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PS", index=46, number=46, serialized_options=None, type=None + name="PS", + index=46, + number=46, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="QUANTMOD", index=47, number=47, serialized_options=None, type=None + name="QUANTMOD", + index=47, + number=47, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RCMOD", index=48, number=48, serialized_options=None, type=None + name="RCMOD", + index=48, + number=48, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RCMODREL", index=49, number=49, serialized_options=None, type=None + name="RCMODREL", + index=49, + number=49, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RDROP", index=50, number=50, serialized_options=None, type=None + name="RDROP", + index=50, + number=50, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REF", index=51, number=51, serialized_options=None, type=None + name="REF", + index=51, + number=51, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REMNANT", index=52, number=52, serialized_options=None, type=None + name="REMNANT", + index=52, + number=52, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REPARANDUM", index=53, number=53, serialized_options=None, type=None + name="REPARANDUM", + index=53, + number=53, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ROOT", index=54, number=54, serialized_options=None, type=None + name="ROOT", + index=54, + number=54, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SNUM", index=55, number=55, serialized_options=None, type=None + name="SNUM", + index=55, + number=55, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUFF", index=56, number=56, serialized_options=None, type=None + name="SUFF", + index=56, + number=56, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TMOD", index=57, number=57, serialized_options=None, type=None + name="TMOD", + index=57, + number=57, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TOPIC", index=58, number=58, serialized_options=None, type=None + name="TOPIC", + index=58, + number=58, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VMOD", index=59, number=59, serialized_options=None, type=None + name="VMOD", + index=59, + number=59, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VOCATIVE", index=60, number=60, serialized_options=None, type=None + name="VOCATIVE", + index=60, + number=60, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="XCOMP", index=61, number=61, serialized_options=None, type=None + name="XCOMP", + index=61, + number=61, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUFFIX", index=62, number=62, serialized_options=None, type=None + name="SUFFIX", + index=62, + number=62, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TITLE", index=63, number=63, serialized_options=None, type=None + name="TITLE", + index=63, + number=63, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVPHMOD", index=64, number=64, serialized_options=None, type=None + name="ADVPHMOD", + index=64, + number=64, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXCAUS", index=65, number=65, serialized_options=None, type=None + name="AUXCAUS", + index=65, + number=65, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXVV", index=66, number=66, serialized_options=None, type=None + name="AUXVV", + index=66, + number=66, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DTMOD", index=67, number=67, serialized_options=None, type=None + name="DTMOD", + index=67, + number=67, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FOREIGN", index=68, number=68, serialized_options=None, type=None + name="FOREIGN", + index=68, + number=68, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="KW", index=69, number=69, serialized_options=None, type=None + name="KW", + index=69, + number=69, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LIST", index=70, number=70, serialized_options=None, type=None + name="LIST", + index=70, + number=70, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMC", index=71, number=71, serialized_options=None, type=None + name="NOMC", + index=71, + number=71, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMCSUBJ", index=72, number=72, serialized_options=None, type=None + name="NOMCSUBJ", + index=72, + number=72, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMCSUBJPASS", index=73, number=73, serialized_options=None, type=None + name="NOMCSUBJPASS", + index=73, + number=73, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUMC", index=74, number=74, serialized_options=None, type=None + name="NUMC", + index=74, + number=74, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COP", index=75, number=75, serialized_options=None, type=None + name="COP", + index=75, + number=75, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DISLOCATED", index=76, number=76, serialized_options=None, type=None + name="DISLOCATED", + index=76, + number=76, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ASP", index=77, number=77, serialized_options=None, type=None + name="ASP", + index=77, + number=77, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GMOD", index=78, number=78, serialized_options=None, type=None + name="GMOD", + index=78, + number=78, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GOBJ", index=79, number=79, serialized_options=None, type=None + name="GOBJ", + index=79, + number=79, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INFMOD", index=80, number=80, serialized_options=None, type=None + name="INFMOD", + index=80, + number=80, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MES", index=81, number=81, serialized_options=None, type=None + name="MES", + index=81, + number=81, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NCOMP", index=82, number=82, serialized_options=None, type=None + name="NCOMP", + index=82, + number=82, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -854,15 +1764,31 @@ full_name="google.cloud.language.v1.EntityMention.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="TYPE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="TYPE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROPER", index=1, number=1, serialized_options=None, type=None + name="PROPER", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMMON", index=2, number=2, serialized_options=None, type=None + name="COMMON", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -879,6 +1805,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -897,6 +1824,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", @@ -915,6 +1843,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gcs_content_uri", @@ -933,6 +1862,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -951,6 +1881,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -966,6 +1897,7 @@ full_name="google.cloud.language.v1.Document.source", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ) ], @@ -980,6 +1912,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text", @@ -998,6 +1931,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentiment", @@ -1016,6 +1950,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1037,6 +1972,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -1055,6 +1991,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1073,6 +2010,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1093,6 +2031,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1111,6 +2050,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -1129,6 +2069,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -1147,6 +2088,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="salience", @@ -1165,6 +2107,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mentions", @@ -1183,6 +2126,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentiment", @@ -1201,6 +2145,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1222,6 +2167,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text", @@ -1240,6 +2186,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="part_of_speech", @@ -1258,6 +2205,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="dependency_edge", @@ -1276,6 +2224,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="lemma", @@ -1294,6 +2243,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1315,6 +2265,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="magnitude", @@ -1333,6 +2284,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1351,6 +2303,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1372,6 +2325,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="tag", @@ -1390,6 +2344,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="aspect", @@ -1408,6 +2363,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="case", @@ -1426,6 +2382,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="form", @@ -1444,6 +2401,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gender", @@ -1462,6 +2420,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mood", @@ -1480,6 +2439,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="number", @@ -1498,6 +2458,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="person", @@ -1516,6 +2477,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="proper", @@ -1534,6 +2496,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reciprocity", @@ -1552,6 +2515,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tense", @@ -1570,6 +2534,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="voice", @@ -1588,6 +2553,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1622,6 +2588,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="head_token_index", @@ -1640,6 +2607,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label", @@ -1658,6 +2626,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1679,6 +2648,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text", @@ -1697,6 +2667,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -1715,6 +2686,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentiment", @@ -1733,6 +2705,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1754,6 +2727,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="content", @@ -1772,6 +2746,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="begin_offset", @@ -1790,6 +2765,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1811,6 +2787,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1829,6 +2806,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1847,6 +2825,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1868,6 +2847,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -1886,6 +2866,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -1904,6 +2885,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1925,6 +2907,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document_sentiment", @@ -1943,6 +2926,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -1961,6 +2945,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentences", @@ -1979,6 +2964,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2000,6 +2986,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2018,6 +3005,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2036,6 +3024,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2057,6 +3046,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entities", @@ -2075,6 +3065,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2093,6 +3084,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2114,6 +3106,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2132,6 +3125,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2150,6 +3144,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2171,6 +3166,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entities", @@ -2189,6 +3185,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2207,6 +3204,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2228,6 +3226,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2246,6 +3245,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2264,6 +3264,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2285,6 +3286,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="sentences", @@ -2303,6 +3305,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tokens", @@ -2321,6 +3324,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2339,6 +3343,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2360,6 +3365,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2378,6 +3384,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2399,6 +3406,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="categories", @@ -2417,6 +3425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2438,6 +3447,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="extract_syntax", @@ -2456,6 +3466,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="extract_entities", @@ -2474,6 +3485,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="extract_document_sentiment", @@ -2492,6 +3504,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="extract_entity_sentiment", @@ -2510,6 +3523,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="classify_text", @@ -2528,6 +3542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2548,6 +3563,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2566,6 +3582,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2584,6 +3601,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2602,6 +3620,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2623,6 +3642,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="sentences", @@ -2641,6 +3661,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tokens", @@ -2659,6 +3680,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="entities", @@ -2677,6 +3699,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="document_sentiment", @@ -2695,6 +3718,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2713,6 +3737,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="categories", @@ -2731,6 +3756,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3446,6 +4472,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\027language.googleapis.com\322A]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platform", + create_key=_descriptor._internal_create_key, serialized_start=6801, serialized_end=8129, methods=[ @@ -3457,6 +4484,7 @@ input_type=_ANALYZESENTIMENTREQUEST, output_type=_ANALYZESENTIMENTRESPONSE, serialized_options=b'\202\323\344\223\002#"\036/v1/documents:analyzeSentiment:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnalyzeEntities", @@ -3466,6 +4494,7 @@ input_type=_ANALYZEENTITIESREQUEST, output_type=_ANALYZEENTITIESRESPONSE, serialized_options=b'\202\323\344\223\002""\035/v1/documents:analyzeEntities:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnalyzeEntitySentiment", @@ -3475,6 +4504,7 @@ input_type=_ANALYZEENTITYSENTIMENTREQUEST, output_type=_ANALYZEENTITYSENTIMENTRESPONSE, serialized_options=b'\202\323\344\223\002)"$/v1/documents:analyzeEntitySentiment:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnalyzeSyntax", @@ -3484,6 +4514,7 @@ input_type=_ANALYZESYNTAXREQUEST, output_type=_ANALYZESYNTAXRESPONSE, serialized_options=b'\202\323\344\223\002 "\033/v1/documents:analyzeSyntax:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ClassifyText", @@ -3493,6 +4524,7 @@ input_type=_CLASSIFYTEXTREQUEST, output_type=_CLASSIFYTEXTRESPONSE, serialized_options=b'\202\323\344\223\002\037"\032/v1/documents:classifyText:\001*\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnnotateText", @@ -3502,6 +4534,7 @@ input_type=_ANNOTATETEXTREQUEST, output_type=_ANNOTATETEXTRESPONSE, serialized_options=b'\202\323\344\223\002\037"\032/v1/documents:annotateText:\001*\332A\037document,features,encoding_type\332A\021document,features', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/language_v1beta2/proto/language_service_pb2.py b/google/cloud/language_v1beta2/proto/language_service_pb2.py index dca75858..3a895bcf 100644 --- a/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/google/cloud/language_v1beta2/proto/language_service_pb2.py @@ -24,6 +24,7 @@ package="google.cloud.language.v1beta2", syntax="proto3", serialized_options=b"\n!com.google.cloud.language.v1beta2B\024LanguageServiceProtoP\001ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;language", + create_key=_descriptor._internal_create_key, serialized_pb=b'\n:google/cloud/language_v1beta2/proto/language_service.proto\x12\x1dgoogle.cloud.language.v1beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc8\x01\n\x08\x44ocument\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.cloud.language.v1beta2.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"~\n\x08Sentence\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12;\n\tsentiment\x18\x02 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"\x93\x04\n\x06\x45ntity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x04type\x18\x02 \x01(\x0e\x32*.google.cloud.language.v1beta2.Entity.Type\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.google.cloud.language.v1beta2.Entity.MetadataEntry\x12\x10\n\x08salience\x18\x04 \x01(\x02\x12>\n\x08mentions\x18\x05 \x03(\x0b\x32,.google.cloud.language.v1beta2.EntityMention\x12;\n\tsentiment\x18\x06 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb9\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06PERSON\x10\x01\x12\x0c\n\x08LOCATION\x10\x02\x12\x10\n\x0cORGANIZATION\x10\x03\x12\t\n\x05\x45VENT\x10\x04\x12\x0f\n\x0bWORK_OF_ART\x10\x05\x12\x11\n\rCONSUMER_GOOD\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x10\n\x0cPHONE_NUMBER\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\x08\n\x04\x44\x41TE\x10\x0b\x12\n\n\x06NUMBER\x10\x0c\x12\t\n\x05PRICE\x10\r"\xda\x01\n\x05Token\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12\x43\n\x0epart_of_speech\x18\x02 \x01(\x0b\x32+.google.cloud.language.v1beta2.PartOfSpeech\x12\x46\n\x0f\x64\x65pendency_edge\x18\x03 \x01(\x0b\x32-.google.cloud.language.v1beta2.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"\xdf\x10\n\x0cPartOfSpeech\x12<\n\x03tag\x18\x01 \x01(\x0e\x32/.google.cloud.language.v1beta2.PartOfSpeech.Tag\x12\x42\n\x06\x61spect\x18\x02 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Aspect\x12>\n\x04\x63\x61se\x18\x03 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Case\x12>\n\x04\x66orm\x18\x04 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Form\x12\x42\n\x06gender\x18\x05 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Gender\x12>\n\x04mood\x18\x06 \x01(\x0e\x32\x30.google.cloud.language.v1beta2.PartOfSpeech.Mood\x12\x42\n\x06number\x18\x07 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Number\x12\x42\n\x06person\x18\x08 \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Person\x12\x42\n\x06proper\x18\t \x01(\x0e\x32\x32.google.cloud.language.v1beta2.PartOfSpeech.Proper\x12L\n\x0breciprocity\x18\n \x01(\x0e\x32\x37.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity\x12@\n\x05tense\x18\x0b \x01(\x0e\x32\x31.google.cloud.language.v1beta2.PartOfSpeech.Tense\x12@\n\x05voice\x18\x0c \x01(\x0e\x32\x31.google.cloud.language.v1beta2.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"\x9a\x08\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.v1beta2.DependencyEdge.Label"\xa9\x07\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\x12\x07\n\x03\x41SP\x10M\x12\x08\n\x04GMOD\x10N\x12\x08\n\x04GOBJ\x10O\x12\n\n\x06INFMOD\x10P\x12\x07\n\x03MES\x10Q\x12\t\n\x05NCOMP\x10R"\xf6\x01\n\rEntityMention\x12\x35\n\x04text\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.TextSpan\x12?\n\x04type\x18\x02 \x01(\x0e\x32\x31.google.cloud.language.v1beta2.EntityMention.Type\x12;\n\tsentiment\x18\x03 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment"0\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\n\n\x06PROPER\x10\x01\x12\n\n\x06\x43OMMON\x10\x02"1\n\x08TextSpan\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x65gin_offset\x18\x02 \x01(\x05":\n\x16\x43lassificationCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nconfidence\x18\x02 \x01(\x02"\x9d\x01\n\x17\x41nalyzeSentimentRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\xae\x01\n\x18\x41nalyzeSentimentResponse\x12\x44\n\x12\x64ocument_sentiment\x18\x01 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x02 \x01(\t\x12:\n\tsentences\x18\x03 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence"\xa3\x01\n\x1d\x41nalyzeEntitySentimentRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"k\n\x1e\x41nalyzeEntitySentimentResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x9c\x01\n\x16\x41nalyzeEntitiesRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"d\n\x17\x41nalyzeEntitiesResponse\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x10\n\x08language\x18\x02 \x01(\t"\x9a\x01\n\x14\x41nalyzeSyntaxRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x02 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType"\x9b\x01\n\x15\x41nalyzeSyntaxResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x10\n\x08language\x18\x03 \x01(\t"U\n\x13\x43lassifyTextRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02"a\n\x14\x43lassifyTextResponse\x12I\n\ncategories\x18\x01 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory"\x89\x03\n\x13\x41nnotateTextRequest\x12>\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\'.google.cloud.language.v1beta2.DocumentB\x03\xe0\x41\x02\x12R\n\x08\x66\x65\x61tures\x18\x02 \x01(\x0b\x32;.google.cloud.language.v1beta2.AnnotateTextRequest.FeaturesB\x03\xe0\x41\x02\x12\x42\n\rencoding_type\x18\x03 \x01(\x0e\x32+.google.cloud.language.v1beta2.EncodingType\x1a\x99\x01\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\x12 \n\x18\x65xtract_entity_sentiment\x18\x04 \x01(\x08\x12\x15\n\rclassify_text\x18\x06 \x01(\x08"\xe4\x02\n\x14\x41nnotateTextResponse\x12:\n\tsentences\x18\x01 \x03(\x0b\x32\'.google.cloud.language.v1beta2.Sentence\x12\x34\n\x06tokens\x18\x02 \x03(\x0b\x32$.google.cloud.language.v1beta2.Token\x12\x37\n\x08\x65ntities\x18\x03 \x03(\x0b\x32%.google.cloud.language.v1beta2.Entity\x12\x44\n\x12\x64ocument_sentiment\x18\x04 \x01(\x0b\x32(.google.cloud.language.v1beta2.Sentiment\x12\x10\n\x08language\x18\x05 \x01(\t\x12I\n\ncategories\x18\x06 \x03(\x0b\x32\x35.google.cloud.language.v1beta2.ClassificationCategory*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\x8a\x0b\n\x0fLanguageService\x12\xd7\x01\n\x10\x41nalyzeSentiment\x12\x36.google.cloud.language.v1beta2.AnalyzeSentimentRequest\x1a\x37.google.cloud.language.v1beta2.AnalyzeSentimentResponse"R\x82\xd3\xe4\x93\x02("#/v1beta2/documents:analyzeSentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xd3\x01\n\x0f\x41nalyzeEntities\x12\x35.google.cloud.language.v1beta2.AnalyzeEntitiesRequest\x1a\x36.google.cloud.language.v1beta2.AnalyzeEntitiesResponse"Q\x82\xd3\xe4\x93\x02\'""/v1beta2/documents:analyzeEntities:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xef\x01\n\x16\x41nalyzeEntitySentiment\x12<.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest\x1a=.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse"X\x82\xd3\xe4\x93\x02.")/v1beta2/documents:analyzeEntitySentiment:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xcb\x01\n\rAnalyzeSyntax\x12\x33.google.cloud.language.v1beta2.AnalyzeSyntaxRequest\x1a\x34.google.cloud.language.v1beta2.AnalyzeSyntaxResponse"O\x82\xd3\xe4\x93\x02%" /v1beta2/documents:analyzeSyntax:\x01*\xda\x41\x16\x64ocument,encoding_type\xda\x41\x08\x64ocument\x12\xae\x01\n\x0c\x43lassifyText\x12\x32.google.cloud.language.v1beta2.ClassifyTextRequest\x1a\x33.google.cloud.language.v1beta2.ClassifyTextResponse"5\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:classifyText:\x01*\xda\x41\x08\x64ocument\x12\xd9\x01\n\x0c\x41nnotateText\x12\x32.google.cloud.language.v1beta2.AnnotateTextRequest\x1a\x33.google.cloud.language.v1beta2.AnnotateTextResponse"`\x82\xd3\xe4\x93\x02$"\x1f/v1beta2/documents:annotateText:\x01*\xda\x41\x1f\x64ocument,features,encoding_type\xda\x41\x11\x64ocument,features\x1az\xca\x41\x17language.googleapis.com\xd2\x41]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platformB\x82\x01\n!com.google.cloud.language.v1beta2B\x14LanguageServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/cloud/language/v1beta2;languageb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -38,18 +39,39 @@ full_name="google.cloud.language.v1beta2.EncodingType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="NONE", index=0, number=0, serialized_options=None, type=None + name="NONE", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UTF8", index=1, number=1, serialized_options=None, type=None + name="UTF8", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UTF16", index=2, number=2, serialized_options=None, type=None + name="UTF16", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UTF32", index=3, number=3, serialized_options=None, type=None + name="UTF32", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -71,6 +93,7 @@ full_name="google.cloud.language.v1beta2.Document.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TYPE_UNSPECIFIED", @@ -78,12 +101,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PLAIN_TEXT", index=1, number=1, serialized_options=None, type=None + name="PLAIN_TEXT", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HTML", index=2, number=2, serialized_options=None, type=None + name="HTML", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -98,45 +132,111 @@ full_name="google.cloud.language.v1beta2.Entity.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PERSON", index=1, number=1, serialized_options=None, type=None + name="PERSON", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOCATION", index=2, number=2, serialized_options=None, type=None + name="LOCATION", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ORGANIZATION", index=3, number=3, serialized_options=None, type=None + name="ORGANIZATION", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EVENT", index=4, number=4, serialized_options=None, type=None + name="EVENT", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="WORK_OF_ART", index=5, number=5, serialized_options=None, type=None + name="WORK_OF_ART", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONSUMER_GOOD", index=6, number=6, serialized_options=None, type=None + name="CONSUMER_GOOD", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OTHER", index=7, number=7, serialized_options=None, type=None + name="OTHER", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PHONE_NUMBER", index=8, number=9, serialized_options=None, type=None + name="PHONE_NUMBER", + index=8, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADDRESS", index=9, number=10, serialized_options=None, type=None + name="ADDRESS", + index=9, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DATE", index=10, number=11, serialized_options=None, type=None + name="DATE", + index=10, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUMBER", index=11, number=12, serialized_options=None, type=None + name="NUMBER", + index=11, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRICE", index=12, number=13, serialized_options=None, type=None + name="PRICE", + index=12, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -151,48 +251,119 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Tag", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADJ", index=1, number=1, serialized_options=None, type=None + name="ADJ", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADP", index=2, number=2, serialized_options=None, type=None + name="ADP", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADV", index=3, number=3, serialized_options=None, type=None + name="ADV", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONJ", index=4, number=4, serialized_options=None, type=None + name="CONJ", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DET", index=5, number=5, serialized_options=None, type=None + name="DET", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOUN", index=6, number=6, serialized_options=None, type=None + name="NOUN", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUM", index=7, number=7, serialized_options=None, type=None + name="NUM", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRON", index=8, number=8, serialized_options=None, type=None + name="PRON", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRT", index=9, number=9, serialized_options=None, type=None + name="PRT", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PUNCT", index=10, number=10, serialized_options=None, type=None + name="PUNCT", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERB", index=11, number=11, serialized_options=None, type=None + name="VERB", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="X", index=12, number=12, serialized_options=None, type=None + name="X", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AFFIX", index=13, number=13, serialized_options=None, type=None + name="AFFIX", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -207,18 +378,39 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Aspect", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="ASPECT_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="ASPECT_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PERFECTIVE", index=1, number=1, serialized_options=None, type=None + name="PERFECTIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPERFECTIVE", index=2, number=2, serialized_options=None, type=None + name="IMPERFECTIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROGRESSIVE", index=3, number=3, serialized_options=None, type=None + name="PROGRESSIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -233,39 +425,95 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Case", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="CASE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="CASE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACCUSATIVE", index=1, number=1, serialized_options=None, type=None + name="ACCUSATIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVERBIAL", index=2, number=2, serialized_options=None, type=None + name="ADVERBIAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMPLEMENTIVE", index=3, number=3, serialized_options=None, type=None + name="COMPLEMENTIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DATIVE", index=4, number=4, serialized_options=None, type=None + name="DATIVE", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GENITIVE", index=5, number=5, serialized_options=None, type=None + name="GENITIVE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INSTRUMENTAL", index=6, number=6, serialized_options=None, type=None + name="INSTRUMENTAL", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOCATIVE", index=7, number=7, serialized_options=None, type=None + name="LOCATIVE", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMINATIVE", index=8, number=8, serialized_options=None, type=None + name="NOMINATIVE", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OBLIQUE", index=9, number=9, serialized_options=None, type=None + name="OBLIQUE", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PARTITIVE", index=10, number=10, serialized_options=None, type=None + name="PARTITIVE", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PREPOSITIONAL", @@ -273,6 +521,7 @@ number=11, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="REFLEXIVE_CASE", @@ -280,6 +529,7 @@ number=12, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RELATIVE_CASE", @@ -287,9 +537,15 @@ number=13, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VOCATIVE", index=14, number=14, serialized_options=None, type=None + name="VOCATIVE", + index=14, + number=14, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -304,42 +560,103 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Form", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="FORM_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="FORM_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADNOMIAL", index=1, number=1, serialized_options=None, type=None + name="ADNOMIAL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXILIARY", index=2, number=2, serialized_options=None, type=None + name="AUXILIARY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMPLEMENTIZER", index=3, number=3, serialized_options=None, type=None + name="COMPLEMENTIZER", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FINAL_ENDING", index=4, number=4, serialized_options=None, type=None + name="FINAL_ENDING", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GERUND", index=5, number=5, serialized_options=None, type=None + name="GERUND", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REALIS", index=6, number=6, serialized_options=None, type=None + name="REALIS", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IRREALIS", index=7, number=7, serialized_options=None, type=None + name="IRREALIS", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SHORT", index=8, number=8, serialized_options=None, type=None + name="SHORT", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LONG", index=9, number=9, serialized_options=None, type=None + name="LONG", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ORDER", index=10, number=10, serialized_options=None, type=None + name="ORDER", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SPECIFIC", index=11, number=11, serialized_options=None, type=None + name="SPECIFIC", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -354,18 +671,39 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Gender", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="GENDER_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="GENDER_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FEMININE", index=1, number=1, serialized_options=None, type=None + name="FEMININE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MASCULINE", index=2, number=2, serialized_options=None, type=None + name="MASCULINE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEUTER", index=3, number=3, serialized_options=None, type=None + name="NEUTER", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -380,9 +718,15 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Mood", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="MOOD_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="MOOD_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CONDITIONAL_MOOD", @@ -390,21 +734,47 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPERATIVE", index=2, number=2, serialized_options=None, type=None + name="IMPERATIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INDICATIVE", index=3, number=3, serialized_options=None, type=None + name="INDICATIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INTERROGATIVE", index=4, number=4, serialized_options=None, type=None + name="INTERROGATIVE", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="JUSSIVE", index=5, number=5, serialized_options=None, type=None + name="JUSSIVE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUBJUNCTIVE", index=6, number=6, serialized_options=None, type=None + name="SUBJUNCTIVE", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -419,18 +789,39 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Number", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="NUMBER_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="NUMBER_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SINGULAR", index=1, number=1, serialized_options=None, type=None + name="SINGULAR", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PLURAL", index=2, number=2, serialized_options=None, type=None + name="PLURAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DUAL", index=3, number=3, serialized_options=None, type=None + name="DUAL", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -445,18 +836,39 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Person", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="PERSON_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="PERSON_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FIRST", index=1, number=1, serialized_options=None, type=None + name="FIRST", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SECOND", index=2, number=2, serialized_options=None, type=None + name="SECOND", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="THIRD", index=3, number=3, serialized_options=None, type=None + name="THIRD", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="REFLEXIVE_PERSON", @@ -464,6 +876,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -478,15 +891,31 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Proper", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="PROPER_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="PROPER_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROPER", index=1, number=1, serialized_options=None, type=None + name="PROPER", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOT_PROPER", index=2, number=2, serialized_options=None, type=None + name="NOT_PROPER", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -501,6 +930,7 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Reciprocity", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="RECIPROCITY_UNKNOWN", @@ -508,12 +938,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RECIPROCAL", index=1, number=1, serialized_options=None, type=None + name="RECIPROCAL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NON_RECIPROCAL", index=2, number=2, serialized_options=None, type=None + name="NON_RECIPROCAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -528,9 +969,15 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Tense", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="TENSE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="TENSE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CONDITIONAL_TENSE", @@ -538,21 +985,47 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FUTURE", index=2, number=2, serialized_options=None, type=None + name="FUTURE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PAST", index=3, number=3, serialized_options=None, type=None + name="PAST", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRESENT", index=4, number=4, serialized_options=None, type=None + name="PRESENT", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPERFECT", index=5, number=5, serialized_options=None, type=None + name="IMPERFECT", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PLUPERFECT", index=6, number=6, serialized_options=None, type=None + name="PLUPERFECT", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -567,18 +1040,39 @@ full_name="google.cloud.language.v1beta2.PartOfSpeech.Voice", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="VOICE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="VOICE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACTIVE", index=1, number=1, serialized_options=None, type=None + name="ACTIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CAUSATIVE", index=2, number=2, serialized_options=None, type=None + name="CAUSATIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PASSIVE", index=3, number=3, serialized_options=None, type=None + name="PASSIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -593,255 +1087,671 @@ full_name="google.cloud.language.v1beta2.DependencyEdge.Label", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ABBREV", index=1, number=1, serialized_options=None, type=None + name="ABBREV", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACOMP", index=2, number=2, serialized_options=None, type=None + name="ACOMP", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVCL", index=3, number=3, serialized_options=None, type=None + name="ADVCL", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVMOD", index=4, number=4, serialized_options=None, type=None + name="ADVMOD", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AMOD", index=5, number=5, serialized_options=None, type=None + name="AMOD", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="APPOS", index=6, number=6, serialized_options=None, type=None + name="APPOS", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ATTR", index=7, number=7, serialized_options=None, type=None + name="ATTR", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUX", index=8, number=8, serialized_options=None, type=None + name="AUX", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXPASS", index=9, number=9, serialized_options=None, type=None + name="AUXPASS", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CC", index=10, number=10, serialized_options=None, type=None + name="CC", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CCOMP", index=11, number=11, serialized_options=None, type=None + name="CCOMP", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONJ", index=12, number=12, serialized_options=None, type=None + name="CONJ", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CSUBJ", index=13, number=13, serialized_options=None, type=None + name="CSUBJ", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CSUBJPASS", index=14, number=14, serialized_options=None, type=None + name="CSUBJPASS", + index=14, + number=14, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DEP", index=15, number=15, serialized_options=None, type=None + name="DEP", + index=15, + number=15, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DET", index=16, number=16, serialized_options=None, type=None + name="DET", + index=16, + number=16, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DISCOURSE", index=17, number=17, serialized_options=None, type=None + name="DISCOURSE", + index=17, + number=17, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DOBJ", index=18, number=18, serialized_options=None, type=None + name="DOBJ", + index=18, + number=18, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EXPL", index=19, number=19, serialized_options=None, type=None + name="EXPL", + index=19, + number=19, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GOESWITH", index=20, number=20, serialized_options=None, type=None + name="GOESWITH", + index=20, + number=20, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IOBJ", index=21, number=21, serialized_options=None, type=None + name="IOBJ", + index=21, + number=21, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MARK", index=22, number=22, serialized_options=None, type=None + name="MARK", + index=22, + number=22, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MWE", index=23, number=23, serialized_options=None, type=None + name="MWE", + index=23, + number=23, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MWV", index=24, number=24, serialized_options=None, type=None + name="MWV", + index=24, + number=24, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEG", index=25, number=25, serialized_options=None, type=None + name="NEG", + index=25, + number=25, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NN", index=26, number=26, serialized_options=None, type=None + name="NN", + index=26, + number=26, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NPADVMOD", index=27, number=27, serialized_options=None, type=None + name="NPADVMOD", + index=27, + number=27, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NSUBJ", index=28, number=28, serialized_options=None, type=None + name="NSUBJ", + index=28, + number=28, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NSUBJPASS", index=29, number=29, serialized_options=None, type=None + name="NSUBJPASS", + index=29, + number=29, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUM", index=30, number=30, serialized_options=None, type=None + name="NUM", + index=30, + number=30, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUMBER", index=31, number=31, serialized_options=None, type=None + name="NUMBER", + index=31, + number=31, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="P", index=32, number=32, serialized_options=None, type=None + name="P", + index=32, + number=32, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PARATAXIS", index=33, number=33, serialized_options=None, type=None + name="PARATAXIS", + index=33, + number=33, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PARTMOD", index=34, number=34, serialized_options=None, type=None + name="PARTMOD", + index=34, + number=34, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PCOMP", index=35, number=35, serialized_options=None, type=None + name="PCOMP", + index=35, + number=35, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POBJ", index=36, number=36, serialized_options=None, type=None + name="POBJ", + index=36, + number=36, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSS", index=37, number=37, serialized_options=None, type=None + name="POSS", + index=37, + number=37, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSTNEG", index=38, number=38, serialized_options=None, type=None + name="POSTNEG", + index=38, + number=38, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRECOMP", index=39, number=39, serialized_options=None, type=None + name="PRECOMP", + index=39, + number=39, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRECONJ", index=40, number=40, serialized_options=None, type=None + name="PRECONJ", + index=40, + number=40, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PREDET", index=41, number=41, serialized_options=None, type=None + name="PREDET", + index=41, + number=41, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PREF", index=42, number=42, serialized_options=None, type=None + name="PREF", + index=42, + number=42, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PREP", index=43, number=43, serialized_options=None, type=None + name="PREP", + index=43, + number=43, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRONL", index=44, number=44, serialized_options=None, type=None + name="PRONL", + index=44, + number=44, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PRT", index=45, number=45, serialized_options=None, type=None + name="PRT", + index=45, + number=45, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PS", index=46, number=46, serialized_options=None, type=None + name="PS", + index=46, + number=46, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="QUANTMOD", index=47, number=47, serialized_options=None, type=None + name="QUANTMOD", + index=47, + number=47, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RCMOD", index=48, number=48, serialized_options=None, type=None + name="RCMOD", + index=48, + number=48, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RCMODREL", index=49, number=49, serialized_options=None, type=None + name="RCMODREL", + index=49, + number=49, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RDROP", index=50, number=50, serialized_options=None, type=None + name="RDROP", + index=50, + number=50, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REF", index=51, number=51, serialized_options=None, type=None + name="REF", + index=51, + number=51, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REMNANT", index=52, number=52, serialized_options=None, type=None + name="REMNANT", + index=52, + number=52, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REPARANDUM", index=53, number=53, serialized_options=None, type=None + name="REPARANDUM", + index=53, + number=53, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ROOT", index=54, number=54, serialized_options=None, type=None + name="ROOT", + index=54, + number=54, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SNUM", index=55, number=55, serialized_options=None, type=None + name="SNUM", + index=55, + number=55, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUFF", index=56, number=56, serialized_options=None, type=None + name="SUFF", + index=56, + number=56, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TMOD", index=57, number=57, serialized_options=None, type=None + name="TMOD", + index=57, + number=57, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TOPIC", index=58, number=58, serialized_options=None, type=None + name="TOPIC", + index=58, + number=58, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VMOD", index=59, number=59, serialized_options=None, type=None + name="VMOD", + index=59, + number=59, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VOCATIVE", index=60, number=60, serialized_options=None, type=None + name="VOCATIVE", + index=60, + number=60, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="XCOMP", index=61, number=61, serialized_options=None, type=None + name="XCOMP", + index=61, + number=61, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUFFIX", index=62, number=62, serialized_options=None, type=None + name="SUFFIX", + index=62, + number=62, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TITLE", index=63, number=63, serialized_options=None, type=None + name="TITLE", + index=63, + number=63, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVPHMOD", index=64, number=64, serialized_options=None, type=None + name="ADVPHMOD", + index=64, + number=64, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXCAUS", index=65, number=65, serialized_options=None, type=None + name="AUXCAUS", + index=65, + number=65, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AUXVV", index=66, number=66, serialized_options=None, type=None + name="AUXVV", + index=66, + number=66, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DTMOD", index=67, number=67, serialized_options=None, type=None + name="DTMOD", + index=67, + number=67, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FOREIGN", index=68, number=68, serialized_options=None, type=None + name="FOREIGN", + index=68, + number=68, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="KW", index=69, number=69, serialized_options=None, type=None + name="KW", + index=69, + number=69, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LIST", index=70, number=70, serialized_options=None, type=None + name="LIST", + index=70, + number=70, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMC", index=71, number=71, serialized_options=None, type=None + name="NOMC", + index=71, + number=71, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMCSUBJ", index=72, number=72, serialized_options=None, type=None + name="NOMCSUBJ", + index=72, + number=72, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOMCSUBJPASS", index=73, number=73, serialized_options=None, type=None + name="NOMCSUBJPASS", + index=73, + number=73, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NUMC", index=74, number=74, serialized_options=None, type=None + name="NUMC", + index=74, + number=74, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COP", index=75, number=75, serialized_options=None, type=None + name="COP", + index=75, + number=75, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DISLOCATED", index=76, number=76, serialized_options=None, type=None + name="DISLOCATED", + index=76, + number=76, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ASP", index=77, number=77, serialized_options=None, type=None + name="ASP", + index=77, + number=77, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GMOD", index=78, number=78, serialized_options=None, type=None + name="GMOD", + index=78, + number=78, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GOBJ", index=79, number=79, serialized_options=None, type=None + name="GOBJ", + index=79, + number=79, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INFMOD", index=80, number=80, serialized_options=None, type=None + name="INFMOD", + index=80, + number=80, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MES", index=81, number=81, serialized_options=None, type=None + name="MES", + index=81, + number=81, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NCOMP", index=82, number=82, serialized_options=None, type=None + name="NCOMP", + index=82, + number=82, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -856,15 +1766,31 @@ full_name="google.cloud.language.v1beta2.EntityMention.Type", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="TYPE_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="TYPE_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROPER", index=1, number=1, serialized_options=None, type=None + name="PROPER", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMMON", index=2, number=2, serialized_options=None, type=None + name="COMMON", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -881,6 +1807,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -899,6 +1826,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", @@ -917,6 +1845,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gcs_content_uri", @@ -935,6 +1864,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -953,6 +1883,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -968,6 +1899,7 @@ full_name="google.cloud.language.v1beta2.Document.source", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ) ], @@ -982,6 +1914,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text", @@ -1000,6 +1933,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentiment", @@ -1018,6 +1952,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1039,6 +1974,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -1057,6 +1993,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1075,6 +2012,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1095,6 +2033,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1113,6 +2052,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -1131,6 +2071,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -1149,6 +2090,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="salience", @@ -1167,6 +2109,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mentions", @@ -1185,6 +2128,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentiment", @@ -1203,6 +2147,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1224,6 +2169,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text", @@ -1242,6 +2188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="part_of_speech", @@ -1260,6 +2207,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="dependency_edge", @@ -1278,6 +2226,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="lemma", @@ -1296,6 +2245,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1317,6 +2267,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="magnitude", @@ -1335,6 +2286,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="score", @@ -1353,6 +2305,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1374,6 +2327,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="tag", @@ -1392,6 +2346,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="aspect", @@ -1410,6 +2365,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="case", @@ -1428,6 +2384,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="form", @@ -1446,6 +2403,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gender", @@ -1464,6 +2422,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mood", @@ -1482,6 +2441,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="number", @@ -1500,6 +2460,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="person", @@ -1518,6 +2479,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="proper", @@ -1536,6 +2498,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reciprocity", @@ -1554,6 +2517,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tense", @@ -1572,6 +2536,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="voice", @@ -1590,6 +2555,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1624,6 +2590,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="head_token_index", @@ -1642,6 +2609,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label", @@ -1660,6 +2628,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1681,6 +2650,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text", @@ -1699,6 +2669,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -1717,6 +2688,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentiment", @@ -1735,6 +2707,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1756,6 +2729,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="content", @@ -1774,6 +2748,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="begin_offset", @@ -1792,6 +2767,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1813,6 +2789,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1831,6 +2808,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence", @@ -1849,6 +2827,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1870,6 +2849,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -1888,6 +2868,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -1906,6 +2887,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1927,6 +2909,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document_sentiment", @@ -1945,6 +2928,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -1963,6 +2947,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentences", @@ -1981,6 +2966,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2002,6 +2988,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2020,6 +3007,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2038,6 +3026,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2059,6 +3048,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entities", @@ -2077,6 +3067,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2095,6 +3086,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2116,6 +3108,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2134,6 +3127,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2152,6 +3146,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2173,6 +3168,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entities", @@ -2191,6 +3187,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2209,6 +3206,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2230,6 +3228,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2248,6 +3247,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2266,6 +3266,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2287,6 +3288,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="sentences", @@ -2305,6 +3307,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tokens", @@ -2323,6 +3326,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2341,6 +3345,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2362,6 +3367,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2380,6 +3386,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2401,6 +3408,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="categories", @@ -2419,6 +3427,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ) ], extensions=[], @@ -2440,6 +3449,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="extract_syntax", @@ -2458,6 +3468,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="extract_entities", @@ -2476,6 +3487,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="extract_document_sentiment", @@ -2494,6 +3506,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="extract_entity_sentiment", @@ -2512,6 +3525,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="classify_text", @@ -2530,6 +3544,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2550,6 +3565,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="document", @@ -2568,6 +3584,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="features", @@ -2586,6 +3603,7 @@ extension_scope=None, serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="encoding_type", @@ -2604,6 +3622,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2625,6 +3644,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="sentences", @@ -2643,6 +3663,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tokens", @@ -2661,6 +3682,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="entities", @@ -2679,6 +3701,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="document_sentiment", @@ -2697,6 +3720,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language", @@ -2715,6 +3739,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="categories", @@ -2733,6 +3758,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3453,6 +4479,7 @@ file=DESCRIPTOR, index=0, serialized_options=b"\312A\027language.googleapis.com\322A]https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-platform", + create_key=_descriptor._internal_create_key, serialized_start=7094, serialized_end=8512, methods=[ @@ -3464,6 +4491,7 @@ input_type=_ANALYZESENTIMENTREQUEST, output_type=_ANALYZESENTIMENTRESPONSE, serialized_options=b'\202\323\344\223\002("#/v1beta2/documents:analyzeSentiment:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnalyzeEntities", @@ -3473,6 +4501,7 @@ input_type=_ANALYZEENTITIESREQUEST, output_type=_ANALYZEENTITIESRESPONSE, serialized_options=b'\202\323\344\223\002\'""/v1beta2/documents:analyzeEntities:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnalyzeEntitySentiment", @@ -3482,6 +4511,7 @@ input_type=_ANALYZEENTITYSENTIMENTREQUEST, output_type=_ANALYZEENTITYSENTIMENTRESPONSE, serialized_options=b'\202\323\344\223\002.")/v1beta2/documents:analyzeEntitySentiment:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnalyzeSyntax", @@ -3491,6 +4521,7 @@ input_type=_ANALYZESYNTAXREQUEST, output_type=_ANALYZESYNTAXRESPONSE, serialized_options=b'\202\323\344\223\002%" /v1beta2/documents:analyzeSyntax:\001*\332A\026document,encoding_type\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ClassifyText", @@ -3500,6 +4531,7 @@ input_type=_CLASSIFYTEXTREQUEST, output_type=_CLASSIFYTEXTRESPONSE, serialized_options=b'\202\323\344\223\002$"\037/v1beta2/documents:classifyText:\001*\332A\010document', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="AnnotateText", @@ -3509,6 +4541,7 @@ input_type=_ANNOTATETEXTREQUEST, output_type=_ANNOTATETEXTRESPONSE, serialized_options=b'\202\323\344\223\002$"\037/v1beta2/documents:annotateText:\001*\332A\037document,features,encoding_type\332A\021document,features', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/synth.metadata b/synth.metadata index 58e0ea1e..93076616 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dec3204175104cef49bf21d685d5517caaf0058f", - "internalRef": "312689208" + "sha": "c4e37010d74071851ff24121f522e802231ac86e", + "internalRef": "313460921" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7ee92820e64c0aea379781b82399d6b3f3c8655f" + "sha": "470789cee75ce93c41348ad6aa4c49363a80399b" } } ], From 19ae48283b8a64ecea42a10b0424f369b929f70d Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:34:27 -0700 Subject: [PATCH 08/15] docs: update python docs template * docs: update python docs template * sphinx change Source-Author: kolea2 <45548808+kolea2@users.noreply.github.com> Source-Date: Wed May 27 20:44:34 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 71b8a272549c06b5768d00fa48d3ae990e871bec Source-Link: https://github.com/googleapis/synthtool/commit/71b8a272549c06b5768d00fa48d3ae990e871bec --- docs/conf.py | 5 +---- synth.metadata | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 289e544f..3e4500ec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,6 +38,7 @@ "sphinx.ext.napoleon", "sphinx.ext.todo", "sphinx.ext.viewcode", + "recommonmark", ] # autodoc/autosummary flags @@ -49,10 +50,6 @@ # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] -# Allow markdown includes (so releases.md can include CHANGLEOG.md) -# http://www.sphinx-doc.org/en/master/markdown.html -source_parsers = {".md": "recommonmark.parser.CommonMarkParser"} - # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # source_suffix = ['.rst', '.md'] diff --git a/synth.metadata b/synth.metadata index 93076616..b37f8f41 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "c4e37010d74071851ff24121f522e802231ac86e", - "internalRef": "313460921" + "sha": "eafa840ceec23b44a5c21670288107c661252711", + "internalRef": "313488995" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "470789cee75ce93c41348ad6aa4c49363a80399b" + "sha": "71b8a272549c06b5768d00fa48d3ae990e871bec" } } ], From 2d34f178acfe4e47ad353b485a86eeb6c3c68d47 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:35:23 -0700 Subject: [PATCH 09/15] feat: add templates for python samples projects These templates will be used for templates in python-docs-samples and in Python client libraries. The README generation code is a modified version of https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/scripts/readme-gen. Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu May 28 14:39:58 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: ffe10407ee2f261c799fb0d01bf32a8abc67ed1e Source-Link: https://github.com/googleapis/synthtool/commit/ffe10407ee2f261c799fb0d01bf32a8abc67ed1e --- .kokoro/samples/lint/common.cfg | 34 ++++++ .kokoro/samples/lint/continuous.cfg | 6 + .kokoro/samples/lint/periodic.cfg | 6 + .kokoro/samples/lint/presubmit.cfg | 6 + .kokoro/samples/python3.6/common.cfg | 34 ++++++ .kokoro/samples/python3.6/continuous.cfg | 7 ++ .kokoro/samples/python3.6/periodic.cfg | 6 + .kokoro/samples/python3.6/presubmit.cfg | 6 + .kokoro/samples/python3.7/common.cfg | 34 ++++++ .kokoro/samples/python3.7/continuous.cfg | 6 + .kokoro/samples/python3.7/periodic.cfg | 6 + .kokoro/samples/python3.7/presubmit.cfg | 6 + .kokoro/samples/python3.8/common.cfg | 34 ++++++ .kokoro/samples/python3.8/continuous.cfg | 6 + .kokoro/samples/python3.8/periodic.cfg | 6 + .kokoro/samples/python3.8/presubmit.cfg | 6 + .kokoro/test-samples.sh | 104 ++++++++++++++++++ scripts/decrypt-secrets.sh | 33 ++++++ scripts/readme-gen/readme_gen.py | 66 +++++++++++ scripts/readme-gen/templates/README.tmpl.rst | 87 +++++++++++++++ scripts/readme-gen/templates/auth.tmpl.rst | 9 ++ .../templates/auth_api_key.tmpl.rst | 14 +++ .../templates/install_deps.tmpl.rst | 29 +++++ .../templates/install_portaudio.tmpl.rst | 35 ++++++ synth.metadata | 2 +- testing/.gitignore | 3 + 26 files changed, 590 insertions(+), 1 deletion(-) create mode 100644 .kokoro/samples/lint/common.cfg create mode 100644 .kokoro/samples/lint/continuous.cfg create mode 100644 .kokoro/samples/lint/periodic.cfg create mode 100644 .kokoro/samples/lint/presubmit.cfg create mode 100644 .kokoro/samples/python3.6/common.cfg create mode 100644 .kokoro/samples/python3.6/continuous.cfg create mode 100644 .kokoro/samples/python3.6/periodic.cfg create mode 100644 .kokoro/samples/python3.6/presubmit.cfg create mode 100644 .kokoro/samples/python3.7/common.cfg create mode 100644 .kokoro/samples/python3.7/continuous.cfg create mode 100644 .kokoro/samples/python3.7/periodic.cfg create mode 100644 .kokoro/samples/python3.7/presubmit.cfg create mode 100644 .kokoro/samples/python3.8/common.cfg create mode 100644 .kokoro/samples/python3.8/continuous.cfg create mode 100644 .kokoro/samples/python3.8/periodic.cfg create mode 100644 .kokoro/samples/python3.8/presubmit.cfg create mode 100755 .kokoro/test-samples.sh create mode 100755 scripts/decrypt-secrets.sh create mode 100644 scripts/readme-gen/readme_gen.py create mode 100644 scripts/readme-gen/templates/README.tmpl.rst create mode 100644 scripts/readme-gen/templates/auth.tmpl.rst create mode 100644 scripts/readme-gen/templates/auth_api_key.tmpl.rst create mode 100644 scripts/readme-gen/templates/install_deps.tmpl.rst create mode 100644 scripts/readme-gen/templates/install_portaudio.tmpl.rst create mode 100644 testing/.gitignore diff --git a/.kokoro/samples/lint/common.cfg b/.kokoro/samples/lint/common.cfg new file mode 100644 index 00000000..f3f92a93 --- /dev/null +++ b/.kokoro/samples/lint/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "lint" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-language/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-language/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/lint/continuous.cfg b/.kokoro/samples/lint/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/lint/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/lint/periodic.cfg b/.kokoro/samples/lint/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/lint/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/lint/presubmit.cfg b/.kokoro/samples/lint/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/lint/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.6/common.cfg b/.kokoro/samples/python3.6/common.cfg new file mode 100644 index 00000000..e70b6034 --- /dev/null +++ b/.kokoro/samples/python3.6/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.6" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-language/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-language/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.6/continuous.cfg b/.kokoro/samples/python3.6/continuous.cfg new file mode 100644 index 00000000..7218af14 --- /dev/null +++ b/.kokoro/samples/python3.6/continuous.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} + diff --git a/.kokoro/samples/python3.6/periodic.cfg b/.kokoro/samples/python3.6/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/python3.6/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.6/presubmit.cfg b/.kokoro/samples/python3.6/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.6/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.7/common.cfg b/.kokoro/samples/python3.7/common.cfg new file mode 100644 index 00000000..4d745031 --- /dev/null +++ b/.kokoro/samples/python3.7/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.7" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-language/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-language/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.7/continuous.cfg b/.kokoro/samples/python3.7/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.7/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.7/periodic.cfg b/.kokoro/samples/python3.7/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/python3.7/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.7/presubmit.cfg b/.kokoro/samples/python3.7/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.7/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.8/common.cfg b/.kokoro/samples/python3.8/common.cfg new file mode 100644 index 00000000..bf242e12 --- /dev/null +++ b/.kokoro/samples/python3.8/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-language/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-language/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.8/continuous.cfg b/.kokoro/samples/python3.8/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.8/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.8/periodic.cfg b/.kokoro/samples/python3.8/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.kokoro/samples/python3.8/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/.kokoro/samples/python3.8/presubmit.cfg b/.kokoro/samples/python3.8/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.kokoro/samples/python3.8/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/.kokoro/test-samples.sh b/.kokoro/test-samples.sh new file mode 100755 index 00000000..6576035c --- /dev/null +++ b/.kokoro/test-samples.sh @@ -0,0 +1,104 @@ +#!/bin/bash +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +# `-e` enables the script to automatically fail when a command fails +# `-o pipefail` sets the exit code to the rightmost comment to exit with a non-zero +set -eo pipefail +# Enables `**` to include files nested inside sub-folders +shopt -s globstar + +cd github/python-language + +# Run periodic samples tests at latest release +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + LATEST_RELEASE=$(git describe --abbrev=0 --tags) + git checkout $LATEST_RELEASE +fi + +# Disable buffering, so that the logs stream through. +export PYTHONUNBUFFERED=1 + +# Debug: show build environment +env | grep KOKORO + +# Install nox +python3.6 -m pip install --upgrade --quiet nox + +# Use secrets acessor service account to get secrets +if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then + gcloud auth activate-service-account \ + --key-file="${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" \ + --project="cloud-devrel-kokoro-resources" +fi + +# This script will create 3 files: +# - testing/test-env.sh +# - testing/service-account.json +# - testing/client-secrets.json +./scripts/decrypt-secrets.sh + +source ./testing/test-env.sh +export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/testing/service-account.json + +# For cloud-run session, we activate the service account for gcloud sdk. +gcloud auth activate-service-account \ + --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" + +export GOOGLE_CLIENT_SECRETS=$(pwd)/testing/client-secrets.json + +echo -e "\n******************** TESTING PROJECTS ********************" + +# Switch to 'fail at end' to allow all tests to complete before exiting. +set +e +# Use RTN to return a non-zero value if the test fails. +RTN=0 +ROOT=$(pwd) +# Find all requirements.txt in the samples directory (may break on whitespace). +for file in samples/**/requirements.txt; do + cd "$ROOT" + # Navigate to the project folder. + file=$(dirname "$file") + cd "$file" + + echo "------------------------------------------------------------" + echo "- testing $file" + echo "------------------------------------------------------------" + + # Use nox to execute the tests for the project. + python3.6 -m nox -s "$RUN_TESTS_SESSION" + EXIT=$? + + # If this is a periodic build, send the test log to the Build Cop Bot. + # See https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop. + if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop + $KOKORO_GFILE_DIR/linux_amd64/buildcop + fi + + if [[ $EXIT -ne 0 ]]; then + RTN=1 + echo -e "\n Testing failed: Nox returned a non-zero exit code. \n" + else + echo -e "\n Testing completed.\n" + fi + +done +cd "$ROOT" + +# Workaround for Kokoro permissions issue: delete secrets +rm testing/{test-env.sh,client-secrets.json,service-account.json} + +exit "$RTN" \ No newline at end of file diff --git a/scripts/decrypt-secrets.sh b/scripts/decrypt-secrets.sh new file mode 100755 index 00000000..ff599eb2 --- /dev/null +++ b/scripts/decrypt-secrets.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Copyright 2015 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +ROOT=$( dirname "$DIR" ) + +# Work from the project root. +cd $ROOT + +# Use SECRET_MANAGER_PROJECT if set, fallback to cloud-devrel-kokoro-resources. +PROJECT_ID="${SECRET_MANAGER_PROJECT:-cloud-devrel-kokoro-resources}" + +gcloud secrets versions access latest --secret="python-docs-samples-test-env" \ + > testing/test-env.sh +gcloud secrets versions access latest \ + --secret="python-docs-samples-service-account" \ + > testing/service-account.json +gcloud secrets versions access latest \ + --secret="python-docs-samples-client-secrets" \ + > testing/client-secrets.json \ No newline at end of file diff --git a/scripts/readme-gen/readme_gen.py b/scripts/readme-gen/readme_gen.py new file mode 100644 index 00000000..d309d6e9 --- /dev/null +++ b/scripts/readme-gen/readme_gen.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python + +# Copyright 2016 Google Inc +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Generates READMEs using configuration defined in yaml.""" + +import argparse +import io +import os +import subprocess + +import jinja2 +import yaml + + +jinja_env = jinja2.Environment( + trim_blocks=True, + loader=jinja2.FileSystemLoader( + os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')))) + +README_TMPL = jinja_env.get_template('README.tmpl.rst') + + +def get_help(file): + return subprocess.check_output(['python', file, '--help']).decode() + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('source') + parser.add_argument('--destination', default='README.rst') + + args = parser.parse_args() + + source = os.path.abspath(args.source) + root = os.path.dirname(source) + destination = os.path.join(root, args.destination) + + jinja_env.globals['get_help'] = get_help + + with io.open(source, 'r') as f: + config = yaml.load(f) + + # This allows get_help to execute in the right directory. + os.chdir(root) + + output = README_TMPL.render(config) + + with io.open(destination, 'w') as f: + f.write(output) + + +if __name__ == '__main__': + main() diff --git a/scripts/readme-gen/templates/README.tmpl.rst b/scripts/readme-gen/templates/README.tmpl.rst new file mode 100644 index 00000000..4fd23976 --- /dev/null +++ b/scripts/readme-gen/templates/README.tmpl.rst @@ -0,0 +1,87 @@ +{# The following line is a lie. BUT! Once jinja2 is done with it, it will + become truth! #} +.. This file is automatically generated. Do not edit this file directly. + +{{product.name}} Python Samples +=============================================================================== + +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/README.rst + + +This directory contains samples for {{product.name}}. {{product.description}} + +{{description}} + +.. _{{product.name}}: {{product.url}} + +{% if required_api_url %} +To run the sample, you need to enable the API at: {{required_api_url}} +{% endif %} + +{% if required_role %} +To run the sample, you need to have `{{required_role}}` role. +{% endif %} + +{{other_required_steps}} + +{% if setup %} +Setup +------------------------------------------------------------------------------- + +{% for section in setup %} + +{% include section + '.tmpl.rst' %} + +{% endfor %} +{% endif %} + +{% if samples %} +Samples +------------------------------------------------------------------------------- + +{% for sample in samples %} +{{sample.name}} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +{% if not sample.hide_cloudshell_button %} +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst +{% endif %} + + +{{sample.description}} + +To run this sample: + +.. code-block:: bash + + $ python {{sample.file}} +{% if sample.show_help %} + + {{get_help(sample.file)|indent}} +{% endif %} + + +{% endfor %} +{% endif %} + +{% if cloud_client_library %} + +The client library +------------------------------------------------------------------------------- + +This sample uses the `Google Cloud Client Library for Python`_. +You can read the documentation for more details on API usage and use GitHub +to `browse the source`_ and `report issues`_. + +.. _Google Cloud Client Library for Python: + https://googlecloudplatform.github.io/google-cloud-python/ +.. _browse the source: + https://github.com/GoogleCloudPlatform/google-cloud-python +.. _report issues: + https://github.com/GoogleCloudPlatform/google-cloud-python/issues + +{% endif %} + +.. _Google Cloud SDK: https://cloud.google.com/sdk/ \ No newline at end of file diff --git a/scripts/readme-gen/templates/auth.tmpl.rst b/scripts/readme-gen/templates/auth.tmpl.rst new file mode 100644 index 00000000..1446b94a --- /dev/null +++ b/scripts/readme-gen/templates/auth.tmpl.rst @@ -0,0 +1,9 @@ +Authentication +++++++++++++++ + +This sample requires you to have authentication setup. Refer to the +`Authentication Getting Started Guide`_ for instructions on setting up +credentials for applications. + +.. _Authentication Getting Started Guide: + https://cloud.google.com/docs/authentication/getting-started diff --git a/scripts/readme-gen/templates/auth_api_key.tmpl.rst b/scripts/readme-gen/templates/auth_api_key.tmpl.rst new file mode 100644 index 00000000..11957ce2 --- /dev/null +++ b/scripts/readme-gen/templates/auth_api_key.tmpl.rst @@ -0,0 +1,14 @@ +Authentication +++++++++++++++ + +Authentication for this service is done via an `API Key`_. To obtain an API +Key: + +1. Open the `Cloud Platform Console`_ +2. Make sure that billing is enabled for your project. +3. From the **Credentials** page, create a new **API Key** or use an existing + one for your project. + +.. _API Key: + https://developers.google.com/api-client-library/python/guide/aaa_apikeys +.. _Cloud Console: https://console.cloud.google.com/project?_ diff --git a/scripts/readme-gen/templates/install_deps.tmpl.rst b/scripts/readme-gen/templates/install_deps.tmpl.rst new file mode 100644 index 00000000..a0406dba --- /dev/null +++ b/scripts/readme-gen/templates/install_deps.tmpl.rst @@ -0,0 +1,29 @@ +Install Dependencies +++++++++++++++++++++ + +#. Clone python-docs-samples and change directory to the sample directory you want to use. + + .. code-block:: bash + + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git + +#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. + + .. _Python Development Environment Setup Guide: + https://cloud.google.com/python/setup + +#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. + + .. code-block:: bash + + $ virtualenv env + $ source env/bin/activate + +#. Install the dependencies needed to run the samples. + + .. code-block:: bash + + $ pip install -r requirements.txt + +.. _pip: https://pip.pypa.io/ +.. _virtualenv: https://virtualenv.pypa.io/ diff --git a/scripts/readme-gen/templates/install_portaudio.tmpl.rst b/scripts/readme-gen/templates/install_portaudio.tmpl.rst new file mode 100644 index 00000000..5ea33d18 --- /dev/null +++ b/scripts/readme-gen/templates/install_portaudio.tmpl.rst @@ -0,0 +1,35 @@ +Install PortAudio ++++++++++++++++++ + +Install `PortAudio`_. This is required by the `PyAudio`_ library to stream +audio from your computer's microphone. PyAudio depends on PortAudio for cross-platform compatibility, and is installed differently depending on the +platform. + +* For Mac OS X, you can use `Homebrew`_:: + + brew install portaudio + + **Note**: if you encounter an error when running `pip install` that indicates + it can't find `portaudio.h`, try running `pip install` with the following + flags:: + + pip install --global-option='build_ext' \ + --global-option='-I/usr/local/include' \ + --global-option='-L/usr/local/lib' \ + pyaudio + +* For Debian / Ubuntu Linux:: + + apt-get install portaudio19-dev python-all-dev + +* Windows may work without having to install PortAudio explicitly (it will get + installed with PyAudio). + +For more details, see the `PyAudio installation`_ page. + + +.. _PyAudio: https://people.csail.mit.edu/hubert/pyaudio/ +.. _PortAudio: http://www.portaudio.com/ +.. _PyAudio installation: + https://people.csail.mit.edu/hubert/pyaudio/#downloads +.. _Homebrew: http://brew.sh diff --git a/synth.metadata b/synth.metadata index b37f8f41..2c65f65b 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "71b8a272549c06b5768d00fa48d3ae990e871bec" + "sha": "ffe10407ee2f261c799fb0d01bf32a8abc67ed1e" } } ], diff --git a/testing/.gitignore b/testing/.gitignore new file mode 100644 index 00000000..b05fbd63 --- /dev/null +++ b/testing/.gitignore @@ -0,0 +1,3 @@ +test-env.sh +service-account.json +client-secrets.json \ No newline at end of file From e309fcae17c0d93a47030518064dfb7f3853eacf Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:35:23 -0700 Subject: [PATCH 10/15] chore: update default ignores for Python libraries Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu May 28 14:43:37 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: e99975b6b49827b8720f0a885e218dbdb67849ca Source-Link: https://github.com/googleapis/synthtool/commit/e99975b6b49827b8720f0a885e218dbdb67849ca --- .flake8 | 2 ++ .gitignore | 2 ++ MANIFEST.in | 3 +++ synth.metadata | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index 20fe9bda..ed931638 100644 --- a/.flake8 +++ b/.flake8 @@ -21,6 +21,8 @@ exclude = # Exclude generated code. **/proto/** **/gapic/** + **/services/** + **/types/** *_pb2.py # Standard linting exemptions. diff --git a/.gitignore b/.gitignore index 3fb06e09..b87e1ed5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ dist build eggs +.eggs parts bin var @@ -49,6 +50,7 @@ bigquery/docs/generated # Virtual environment env/ coverage.xml +sponge_log.xml # System test environment variables. system_tests/local_test_setup diff --git a/MANIFEST.in b/MANIFEST.in index 68855abc..e9e29d12 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -20,3 +20,6 @@ recursive-include google *.json *.proto recursive-include tests * global-exclude *.py[co] global-exclude __pycache__ + +# Exclude scripts for samples readmegen +prune scripts/readme-gen \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 2c65f65b..0303a9be 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ffe10407ee2f261c799fb0d01bf32a8abc67ed1e" + "sha": "e99975b6b49827b8720f0a885e218dbdb67849ca" } } ], From 50ba0705c9d95e4389da39236328d73c7c91fce6 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:37:49 -0700 Subject: [PATCH 11/15] fix: use protoc-docs-plugin 0.8.0 Fixes issue with missing newline before 'Attributes' in Python docstrings. PiperOrigin-RevId: 316182409 Source-Author: Google APIs Source-Date: Fri Jun 12 14:52:11 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 184661793fbe3b89f2b485c303e7466cef9d21a1 Source-Link: https://github.com/googleapis/googleapis/commit/184661793fbe3b89f2b485c303e7466cef9d21a1 --- .../language_v1/proto/language_service_pb2.py | 23 +++++++++++++++++++ .../proto/language_service_pb2.py | 23 +++++++++++++++++++ synth.metadata | 6 ++--- 3 files changed, 49 insertions(+), 3 deletions(-) diff --git a/google/cloud/language_v1/proto/language_service_pb2.py b/google/cloud/language_v1/proto/language_service_pb2.py index 6b611668..675c5ad4 100644 --- a/google/cloud/language_v1/proto/language_service_pb2.py +++ b/google/cloud/language_v1/proto/language_service_pb2.py @@ -3892,6 +3892,7 @@ "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """################################################################ # Represents the input to API methods. + Attributes: type: Required. If the type is not set or is ``TYPE_UNSPECIFIED``, @@ -3930,6 +3931,7 @@ "DESCRIPTOR": _SENTENCE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents a sentence in the input document. + Attributes: text: The sentence text. @@ -3963,6 +3965,7 @@ "__doc__": """Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as salience and mentions, with entities. + Attributes: name: The representative name for the entity. @@ -4003,6 +4006,7 @@ "DESCRIPTOR": _TOKEN, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents the smallest syntactic building block of the text. + Attributes: text: The token text. @@ -4028,6 +4032,7 @@ "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents the feeling associated with the entire text or entities in the text. + Attributes: magnitude: A non-negative number in the [0, +inf) range, which represents @@ -4051,6 +4056,7 @@ "__doc__": """Represents part of speech information for a token. Parts of speech are as defined in http://www.lrec- conf.org/proceedings/lrec2012/pdf/274_Paper.pdf + Attributes: tag: The part of speech tag. @@ -4091,6 +4097,7 @@ "__doc__": """Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017 + Attributes: head_token_index: Represents the head of this token in the dependency tree. This @@ -4114,6 +4121,7 @@ "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents a mention for an entity in the text. Currently, proper noun mentions are supported. + Attributes: text: The mention text. @@ -4138,6 +4146,7 @@ "DESCRIPTOR": _TEXTSPAN, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents an output piece of text. + Attributes: content: The content of the output text. @@ -4159,6 +4168,7 @@ "DESCRIPTOR": _CLASSIFICATIONCATEGORY, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """Represents a category returned from the text classifier. + Attributes: name: The name of the category representing the document, from the @@ -4181,6 +4191,7 @@ "DESCRIPTOR": _ANALYZESENTIMENTREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The sentiment analysis request message. + Attributes: document: Input document. @@ -4200,6 +4211,7 @@ "DESCRIPTOR": _ANALYZESENTIMENTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The sentiment analysis response message. + Attributes: document_sentiment: The overall sentiment of the input document. @@ -4223,6 +4235,7 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis request message. + Attributes: document: Input document. @@ -4241,6 +4254,7 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis response message. + Attributes: entities: The recognized entities in the input document with associated @@ -4263,6 +4277,7 @@ "DESCRIPTOR": _ANALYZEENTITIESREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity analysis request message. + Attributes: document: Input document. @@ -4281,6 +4296,7 @@ "DESCRIPTOR": _ANALYZEENTITIESRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The entity analysis response message. + Attributes: entities: The recognized entities in the input document. @@ -4302,6 +4318,7 @@ "DESCRIPTOR": _ANALYZESYNTAXREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The syntax analysis request message. + Attributes: document: Input document. @@ -4320,6 +4337,7 @@ "DESCRIPTOR": _ANALYZESYNTAXRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The syntax analysis response message. + Attributes: sentences: Sentences in the input document. @@ -4344,6 +4362,7 @@ "DESCRIPTOR": _CLASSIFYTEXTREQUEST, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The document classification request message. + Attributes: document: Input document. @@ -4360,6 +4379,7 @@ "DESCRIPTOR": _CLASSIFYTEXTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The document classification response message. + Attributes: categories: Categories representing the input document. @@ -4382,6 +4402,7 @@ "__doc__": """All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. + Attributes: extract_syntax: Extract syntax information. @@ -4401,6 +4422,7 @@ "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call. + Attributes: document: Input document. @@ -4422,6 +4444,7 @@ "DESCRIPTOR": _ANNOTATETEXTRESPONSE, "__module__": "google.cloud.language_v1.proto.language_service_pb2", "__doc__": """The text annotations response message. + Attributes: sentences: Sentences in the input document. Populated if the user enables diff --git a/google/cloud/language_v1beta2/proto/language_service_pb2.py b/google/cloud/language_v1beta2/proto/language_service_pb2.py index 3a895bcf..ff31f8e6 100644 --- a/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/google/cloud/language_v1beta2/proto/language_service_pb2.py @@ -3894,6 +3894,7 @@ "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """################################################################ # Represents the input to API methods. + Attributes: type: Required. If the type is not set or is ``TYPE_UNSPECIFIED``, @@ -3932,6 +3933,7 @@ "DESCRIPTOR": _SENTENCE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents a sentence in the input document. + Attributes: text: The sentence text. @@ -3965,6 +3967,7 @@ "__doc__": """Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as salience and mentions, with entities. + Attributes: name: The representative name for the entity. @@ -4005,6 +4008,7 @@ "DESCRIPTOR": _TOKEN, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents the smallest syntactic building block of the text. + Attributes: text: The token text. @@ -4030,6 +4034,7 @@ "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents the feeling associated with the entire text or entities in the text. Next ID: 6 + Attributes: magnitude: A non-negative number in the [0, +inf) range, which represents @@ -4051,6 +4056,7 @@ "DESCRIPTOR": _PARTOFSPEECH, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents part of speech information for a token. + Attributes: tag: The part of speech tag. @@ -4089,6 +4095,7 @@ "DESCRIPTOR": _DEPENDENCYEDGE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents dependency parse tree information for a token. + Attributes: head_token_index: Represents the head of this token in the dependency tree. This @@ -4112,6 +4119,7 @@ "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents a mention for an entity in the text. Currently, proper noun mentions are supported. + Attributes: text: The mention text. @@ -4137,6 +4145,7 @@ "DESCRIPTOR": _TEXTSPAN, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents an output piece of text. + Attributes: content: The content of the output text. @@ -4158,6 +4167,7 @@ "DESCRIPTOR": _CLASSIFICATIONCATEGORY, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """Represents a category returned from the text classifier. + Attributes: name: The name of the category representing the document, from the @@ -4180,6 +4190,7 @@ "DESCRIPTOR": _ANALYZESENTIMENTREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The sentiment analysis request message. + Attributes: document: Required. Input document. @@ -4199,6 +4210,7 @@ "DESCRIPTOR": _ANALYZESENTIMENTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The sentiment analysis response message. + Attributes: document_sentiment: The overall sentiment of the input document. @@ -4223,6 +4235,7 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis request message. + Attributes: document: Required. Input document. @@ -4241,6 +4254,7 @@ "DESCRIPTOR": _ANALYZEENTITYSENTIMENTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity-level sentiment analysis response message. + Attributes: entities: The recognized entities in the input document with associated @@ -4264,6 +4278,7 @@ "DESCRIPTOR": _ANALYZEENTITIESREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity analysis request message. + Attributes: document: Required. Input document. @@ -4282,6 +4297,7 @@ "DESCRIPTOR": _ANALYZEENTITIESRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The entity analysis response message. + Attributes: entities: The recognized entities in the input document. @@ -4304,6 +4320,7 @@ "DESCRIPTOR": _ANALYZESYNTAXREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The syntax analysis request message. + Attributes: document: Required. Input document. @@ -4322,6 +4339,7 @@ "DESCRIPTOR": _ANALYZESYNTAXRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The syntax analysis response message. + Attributes: sentences: Sentences in the input document. @@ -4347,6 +4365,7 @@ "DESCRIPTOR": _CLASSIFYTEXTREQUEST, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The document classification request message. + Attributes: document: Required. Input document. @@ -4363,6 +4382,7 @@ "DESCRIPTOR": _CLASSIFYTEXTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The document classification response message. + Attributes: categories: Categories representing the input document. @@ -4385,6 +4405,7 @@ "__doc__": """All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. Next ID: 10 + Attributes: extract_syntax: Extract syntax information. @@ -4407,6 +4428,7 @@ "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call. + Attributes: document: Required. Input document. @@ -4428,6 +4450,7 @@ "DESCRIPTOR": _ANNOTATETEXTRESPONSE, "__module__": "google.cloud.language_v1beta2.proto.language_service_pb2", "__doc__": """The text annotations response message. + Attributes: sentences: Sentences in the input document. Populated if the user enables diff --git a/synth.metadata b/synth.metadata index 0303a9be..46853f63 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "eafa840ceec23b44a5c21670288107c661252711", - "internalRef": "313488995" + "sha": "184661793fbe3b89f2b485c303e7466cef9d21a1", + "internalRef": "316182409" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e99975b6b49827b8720f0a885e218dbdb67849ca" + "sha": "a0ee80e0492a03b9b2bfefb5cca7eaf17bf10438" } } ], From 470dea18d85471a4313316a4713bccd6af063307 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:38:06 -0700 Subject: [PATCH 12/15] fix: remove "com." prefix in config service names PiperOrigin-RevId: 316509011 Source-Author: Google APIs Source-Date: Mon Jun 15 11:33:59 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 864dfeafdd5429e20612d378169858d9fe08c9e8 Source-Link: https://github.com/googleapis/googleapis/commit/864dfeafdd5429e20612d378169858d9fe08c9e8 --- .../language_v1/proto/language_service_pb2.py | 34 +++++++++---------- synth.metadata | 4 +-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/google/cloud/language_v1/proto/language_service_pb2.py b/google/cloud/language_v1/proto/language_service_pb2.py index 675c5ad4..e4eb90c4 100644 --- a/google/cloud/language_v1/proto/language_service_pb2.py +++ b/google/cloud/language_v1/proto/language_service_pb2.py @@ -3890,8 +3890,7 @@ { "DESCRIPTOR": _DOCUMENT, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """################################################################ # - Represents the input to API methods. + "__doc__": """Represents the input to API methods. Attributes: type: @@ -3936,11 +3935,11 @@ text: The sentence text. sentiment: - For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.F - eatures.extract_document_sentiment][google.cloud.language.v1.A - nnotateTextRequest.Features.extract_document_sentiment] is set - to true, this field will contain the sentiment for the - sentence. + For calls to [AnalyzeSentiment]` <#section>`__ or if [Annotate + TextRequest.Features.extract_document_sentiment][google.cloud. + language.v1.AnnotateTextRequest.Features.extract_document_sent + iment] is set to true, this field will contain the sentiment + for the sentence. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentence) }, @@ -3987,11 +3986,11 @@ The mentions of this entity in the input document. The API currently supports proper noun mentions. sentiment: - For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq - uest.Features.extract_entity_sentiment][google.cloud.language. - v1.AnnotateTextRequest.Features.extract_entity_sentiment] is - set to true, this field will contain the aggregate sentiment - expressed for this entity in the provided document. + For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An + notateTextRequest.Features.extract_entity_sentiment][google.cl + oud.language.v1.AnnotateTextRequest.Features.extract_entity_se + ntiment] is set to true, this field will contain the aggregate + sentiment expressed for this entity in the provided document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity) }, @@ -4128,11 +4127,12 @@ type: The type of the entity mention. sentiment: - For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq - uest.Features.extract_entity_sentiment][google.cloud.language. - v1.AnnotateTextRequest.Features.extract_entity_sentiment] is - set to true, this field will contain the sentiment expressed - for this mention of the entity in the provided document. + For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An + notateTextRequest.Features.extract_entity_sentiment][google.cl + oud.language.v1.AnnotateTextRequest.Features.extract_entity_se + ntiment] is set to true, this field will contain the sentiment + expressed for this mention of the entity in the provided + document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.EntityMention) }, diff --git a/synth.metadata b/synth.metadata index 46853f63..c8cbdf9a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "184661793fbe3b89f2b485c303e7466cef9d21a1", - "internalRef": "316182409" + "sha": "864dfeafdd5429e20612d378169858d9fe08c9e8", + "internalRef": "316509011" } }, { From 937662462406132fe24ead9fa9f2cfe82754c758 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:39:28 -0700 Subject: [PATCH 13/15] ci(java): switch to secret manager from keystore * ci(java): switch to secret manager from keystore, use java-docs-samples user for samples tests * fix: we don't need to supply a service account Source-Author: Jeff Ching Source-Date: Mon Jun 15 11:45:21 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: d1addcdf80aa9ddef8c932c89c919024bbad7af3 Source-Link: https://github.com/googleapis/synthtool/commit/d1addcdf80aa9ddef8c932c89c919024bbad7af3 --- .../language_v1/proto/language_service_pb2.py | 34 +++++++++---------- synth.metadata | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google/cloud/language_v1/proto/language_service_pb2.py b/google/cloud/language_v1/proto/language_service_pb2.py index e4eb90c4..675c5ad4 100644 --- a/google/cloud/language_v1/proto/language_service_pb2.py +++ b/google/cloud/language_v1/proto/language_service_pb2.py @@ -3890,7 +3890,8 @@ { "DESCRIPTOR": _DOCUMENT, "__module__": "google.cloud.language_v1.proto.language_service_pb2", - "__doc__": """Represents the input to API methods. + "__doc__": """################################################################ # + Represents the input to API methods. Attributes: type: @@ -3935,11 +3936,11 @@ text: The sentence text. sentiment: - For calls to [AnalyzeSentiment]` <#section>`__ or if [Annotate - TextRequest.Features.extract_document_sentiment][google.cloud. - language.v1.AnnotateTextRequest.Features.extract_document_sent - iment] is set to true, this field will contain the sentiment - for the sentence. + For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.F + eatures.extract_document_sentiment][google.cloud.language.v1.A + nnotateTextRequest.Features.extract_document_sentiment] is set + to true, this field will contain the sentiment for the + sentence. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Sentence) }, @@ -3986,11 +3987,11 @@ The mentions of this entity in the input document. The API currently supports proper noun mentions. sentiment: - For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An - notateTextRequest.Features.extract_entity_sentiment][google.cl - oud.language.v1.AnnotateTextRequest.Features.extract_entity_se - ntiment] is set to true, this field will contain the aggregate - sentiment expressed for this entity in the provided document. + For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq + uest.Features.extract_entity_sentiment][google.cloud.language. + v1.AnnotateTextRequest.Features.extract_entity_sentiment] is + set to true, this field will contain the aggregate sentiment + expressed for this entity in the provided document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.Entity) }, @@ -4127,12 +4128,11 @@ type: The type of the entity mention. sentiment: - For calls to [AnalyzeEntitySentiment]` <#section>`__ or if [An - notateTextRequest.Features.extract_entity_sentiment][google.cl - oud.language.v1.AnnotateTextRequest.Features.extract_entity_se - ntiment] is set to true, this field will contain the sentiment - expressed for this mention of the entity in the provided - document. + For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq + uest.Features.extract_entity_sentiment][google.cloud.language. + v1.AnnotateTextRequest.Features.extract_entity_sentiment] is + set to true, this field will contain the sentiment expressed + for this mention of the entity in the provided document. """, # @@protoc_insertion_point(class_scope:google.cloud.language.v1.EntityMention) }, diff --git a/synth.metadata b/synth.metadata index c8cbdf9a..586b528a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a0ee80e0492a03b9b2bfefb5cca7eaf17bf10438" + "sha": "d1addcdf80aa9ddef8c932c89c919024bbad7af3" } } ], From 4e9423a9e4efb2e7d10895cc0cde8adafd88f8d0 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 23 Jun 2020 12:40:22 -0700 Subject: [PATCH 14/15] fix(python): change autodoc_default_flags to autodoc_default_options Source-Author: HemangChothani <50404902+HemangChothani@users.noreply.github.com> Source-Date: Thu Jun 18 22:50:02 2020 +0530 Source-Repo: googleapis/synthtool Source-Sha: cd522c3b4dde821766d95c80ae5aeb43d7a41170 Source-Link: https://github.com/googleapis/synthtool/commit/cd522c3b4dde821766d95c80ae5aeb43d7a41170 --- docs/conf.py | 2 +- synth.metadata | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 3e4500ec..1fdbd3b5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,7 +43,7 @@ # autodoc/autosummary flags autoclass_content = "both" -autodoc_default_flags = ["members"] +autodoc_default_options = {"members": True} autosummary_generate = True diff --git a/synth.metadata b/synth.metadata index 586b528a..463eb8a9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,15 +11,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "864dfeafdd5429e20612d378169858d9fe08c9e8", - "internalRef": "316509011" + "sha": "fa4d2ecd0804eb92f27a65fe65ce2a554a361b93", + "internalRef": "317110673" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d1addcdf80aa9ddef8c932c89c919024bbad7af3" + "sha": "cd522c3b4dde821766d95c80ae5aeb43d7a41170" } } ], From da8ce8aaf5ecf6d6fc1d98f43d99d6fcd8c6bf42 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Thu, 25 Jun 2020 18:05:40 +0000 Subject: [PATCH 15/15] docs: add multiprocessing note --- docs/index.rst | 2 ++ synth.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index 1df32e07..368f811d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,7 @@ .. include:: README.rst +.. include:: multiprocessing.rst + .. toctree:: :maxdepth: 2 diff --git a/synth.py b/synth.py index 5bf28084..e77efc01 100644 --- a/synth.py +++ b/synth.py @@ -58,4 +58,7 @@ "enums.EncodingType", ) +# TODO(busunkim): Use latest sphinx after microgenerator transition +s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"') + s.shell.run(["nox", "-s", "blacken"], hide_output=False)