From 24feee3db3e26aa0cc698af846e59e29fcb4190a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 3 Aug 2019 16:00:39 -0700 Subject: [PATCH] fix: allow calls with no request, add JSON proto (#282) --- .../google-cloud-language/protos/protos.json | 1972 +++++++++++++++++ .../src/service_proto_list.json | 1 + .../src/v1/language_service_client.js | 6 + .../src/v1beta2/language_service_client.js | 6 + packages/google-cloud-language/synth.metadata | 10 +- 5 files changed, 1990 insertions(+), 5 deletions(-) create mode 100644 packages/google-cloud-language/protos/protos.json create mode 100644 packages/google-cloud-language/src/service_proto_list.json diff --git a/packages/google-cloud-language/protos/protos.json b/packages/google-cloud-language/protos/protos.json new file mode 100644 index 00000000000..a1afe81bf42 --- /dev/null +++ b/packages/google-cloud-language/protos/protos.json @@ -0,0 +1,1972 @@ +{ + "nested": { + "google": { + "nested": { + "cloud": { + "nested": { + "language": { + "nested": { + "v1beta2": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/cloud/language/v1beta2;language", + "java_multiple_files": true, + "java_outer_classname": "LanguageServiceProto", + "java_package": "com.google.cloud.language.v1beta2" + }, + "nested": { + "LanguageService": { + "methods": { + "AnalyzeSentiment": { + "requestType": "AnalyzeSentimentRequest", + "responseType": "AnalyzeSentimentResponse", + "options": { + "(google.api.http).post": "/v1beta2/documents:analyzeSentiment", + "(google.api.http).body": "*" + } + }, + "AnalyzeEntities": { + "requestType": "AnalyzeEntitiesRequest", + "responseType": "AnalyzeEntitiesResponse", + "options": { + "(google.api.http).post": "/v1beta2/documents:analyzeEntities", + "(google.api.http).body": "*" + } + }, + "AnalyzeEntitySentiment": { + "requestType": "AnalyzeEntitySentimentRequest", + "responseType": "AnalyzeEntitySentimentResponse", + "options": { + "(google.api.http).post": "/v1beta2/documents:analyzeEntitySentiment", + "(google.api.http).body": "*" + } + }, + "AnalyzeSyntax": { + "requestType": "AnalyzeSyntaxRequest", + "responseType": "AnalyzeSyntaxResponse", + "options": { + "(google.api.http).post": "/v1beta2/documents:analyzeSyntax", + "(google.api.http).body": "*" + } + }, + "ClassifyText": { + "requestType": "ClassifyTextRequest", + "responseType": "ClassifyTextResponse", + "options": { + "(google.api.http).post": "/v1beta2/documents:classifyText", + "(google.api.http).body": "*" + } + }, + "AnnotateText": { + "requestType": "AnnotateTextRequest", + "responseType": "AnnotateTextResponse", + "options": { + "(google.api.http).post": "/v1beta2/documents:annotateText", + "(google.api.http).body": "*" + } + } + } + }, + "Document": { + "oneofs": { + "source": { + "oneof": [ + "content", + "gcsContentUri" + ] + } + }, + "fields": { + "type": { + "type": "Type", + "id": 1 + }, + "content": { + "type": "string", + "id": 2 + }, + "gcsContentUri": { + "type": "string", + "id": 3 + }, + "language": { + "type": "string", + "id": 4 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_UNSPECIFIED": 0, + "PLAIN_TEXT": 1, + "HTML": 2 + } + } + } + }, + "Sentence": { + "fields": { + "text": { + "type": "TextSpan", + "id": 1 + }, + "sentiment": { + "type": "Sentiment", + "id": 2 + } + } + }, + "Entity": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "type": { + "type": "Type", + "id": 2 + }, + "metadata": { + "keyType": "string", + "type": "string", + "id": 3 + }, + "salience": { + "type": "float", + "id": 4 + }, + "mentions": { + "rule": "repeated", + "type": "EntityMention", + "id": 5 + }, + "sentiment": { + "type": "Sentiment", + "id": 6 + } + }, + "nested": { + "Type": { + "values": { + "UNKNOWN": 0, + "PERSON": 1, + "LOCATION": 2, + "ORGANIZATION": 3, + "EVENT": 4, + "WORK_OF_ART": 5, + "CONSUMER_GOOD": 6, + "OTHER": 7 + } + } + } + }, + "Token": { + "fields": { + "text": { + "type": "TextSpan", + "id": 1 + }, + "partOfSpeech": { + "type": "PartOfSpeech", + "id": 2 + }, + "dependencyEdge": { + "type": "DependencyEdge", + "id": 3 + }, + "lemma": { + "type": "string", + "id": 4 + } + } + }, + "Sentiment": { + "fields": { + "magnitude": { + "type": "float", + "id": 2 + }, + "score": { + "type": "float", + "id": 3 + } + } + }, + "PartOfSpeech": { + "fields": { + "tag": { + "type": "Tag", + "id": 1 + }, + "aspect": { + "type": "Aspect", + "id": 2 + }, + "case": { + "type": "Case", + "id": 3 + }, + "form": { + "type": "Form", + "id": 4 + }, + "gender": { + "type": "Gender", + "id": 5 + }, + "mood": { + "type": "Mood", + "id": 6 + }, + "number": { + "type": "Number", + "id": 7 + }, + "person": { + "type": "Person", + "id": 8 + }, + "proper": { + "type": "Proper", + "id": 9 + }, + "reciprocity": { + "type": "Reciprocity", + "id": 10 + }, + "tense": { + "type": "Tense", + "id": 11 + }, + "voice": { + "type": "Voice", + "id": 12 + } + }, + "nested": { + "Tag": { + "values": { + "UNKNOWN": 0, + "ADJ": 1, + "ADP": 2, + "ADV": 3, + "CONJ": 4, + "DET": 5, + "NOUN": 6, + "NUM": 7, + "PRON": 8, + "PRT": 9, + "PUNCT": 10, + "VERB": 11, + "X": 12, + "AFFIX": 13 + } + }, + "Aspect": { + "values": { + "ASPECT_UNKNOWN": 0, + "PERFECTIVE": 1, + "IMPERFECTIVE": 2, + "PROGRESSIVE": 3 + } + }, + "Case": { + "values": { + "CASE_UNKNOWN": 0, + "ACCUSATIVE": 1, + "ADVERBIAL": 2, + "COMPLEMENTIVE": 3, + "DATIVE": 4, + "GENITIVE": 5, + "INSTRUMENTAL": 6, + "LOCATIVE": 7, + "NOMINATIVE": 8, + "OBLIQUE": 9, + "PARTITIVE": 10, + "PREPOSITIONAL": 11, + "REFLEXIVE_CASE": 12, + "RELATIVE_CASE": 13, + "VOCATIVE": 14 + } + }, + "Form": { + "values": { + "FORM_UNKNOWN": 0, + "ADNOMIAL": 1, + "AUXILIARY": 2, + "COMPLEMENTIZER": 3, + "FINAL_ENDING": 4, + "GERUND": 5, + "REALIS": 6, + "IRREALIS": 7, + "SHORT": 8, + "LONG": 9, + "ORDER": 10, + "SPECIFIC": 11 + } + }, + "Gender": { + "values": { + "GENDER_UNKNOWN": 0, + "FEMININE": 1, + "MASCULINE": 2, + "NEUTER": 3 + } + }, + "Mood": { + "values": { + "MOOD_UNKNOWN": 0, + "CONDITIONAL_MOOD": 1, + "IMPERATIVE": 2, + "INDICATIVE": 3, + "INTERROGATIVE": 4, + "JUSSIVE": 5, + "SUBJUNCTIVE": 6 + } + }, + "Number": { + "values": { + "NUMBER_UNKNOWN": 0, + "SINGULAR": 1, + "PLURAL": 2, + "DUAL": 3 + } + }, + "Person": { + "values": { + "PERSON_UNKNOWN": 0, + "FIRST": 1, + "SECOND": 2, + "THIRD": 3, + "REFLEXIVE_PERSON": 4 + } + }, + "Proper": { + "values": { + "PROPER_UNKNOWN": 0, + "PROPER": 1, + "NOT_PROPER": 2 + } + }, + "Reciprocity": { + "values": { + "RECIPROCITY_UNKNOWN": 0, + "RECIPROCAL": 1, + "NON_RECIPROCAL": 2 + } + }, + "Tense": { + "values": { + "TENSE_UNKNOWN": 0, + "CONDITIONAL_TENSE": 1, + "FUTURE": 2, + "PAST": 3, + "PRESENT": 4, + "IMPERFECT": 5, + "PLUPERFECT": 6 + } + }, + "Voice": { + "values": { + "VOICE_UNKNOWN": 0, + "ACTIVE": 1, + "CAUSATIVE": 2, + "PASSIVE": 3 + } + } + } + }, + "DependencyEdge": { + "fields": { + "headTokenIndex": { + "type": "int32", + "id": 1 + }, + "label": { + "type": "Label", + "id": 2 + } + }, + "nested": { + "Label": { + "values": { + "UNKNOWN": 0, + "ABBREV": 1, + "ACOMP": 2, + "ADVCL": 3, + "ADVMOD": 4, + "AMOD": 5, + "APPOS": 6, + "ATTR": 7, + "AUX": 8, + "AUXPASS": 9, + "CC": 10, + "CCOMP": 11, + "CONJ": 12, + "CSUBJ": 13, + "CSUBJPASS": 14, + "DEP": 15, + "DET": 16, + "DISCOURSE": 17, + "DOBJ": 18, + "EXPL": 19, + "GOESWITH": 20, + "IOBJ": 21, + "MARK": 22, + "MWE": 23, + "MWV": 24, + "NEG": 25, + "NN": 26, + "NPADVMOD": 27, + "NSUBJ": 28, + "NSUBJPASS": 29, + "NUM": 30, + "NUMBER": 31, + "P": 32, + "PARATAXIS": 33, + "PARTMOD": 34, + "PCOMP": 35, + "POBJ": 36, + "POSS": 37, + "POSTNEG": 38, + "PRECOMP": 39, + "PRECONJ": 40, + "PREDET": 41, + "PREF": 42, + "PREP": 43, + "PRONL": 44, + "PRT": 45, + "PS": 46, + "QUANTMOD": 47, + "RCMOD": 48, + "RCMODREL": 49, + "RDROP": 50, + "REF": 51, + "REMNANT": 52, + "REPARANDUM": 53, + "ROOT": 54, + "SNUM": 55, + "SUFF": 56, + "TMOD": 57, + "TOPIC": 58, + "VMOD": 59, + "VOCATIVE": 60, + "XCOMP": 61, + "SUFFIX": 62, + "TITLE": 63, + "ADVPHMOD": 64, + "AUXCAUS": 65, + "AUXVV": 66, + "DTMOD": 67, + "FOREIGN": 68, + "KW": 69, + "LIST": 70, + "NOMC": 71, + "NOMCSUBJ": 72, + "NOMCSUBJPASS": 73, + "NUMC": 74, + "COP": 75, + "DISLOCATED": 76, + "ASP": 77, + "GMOD": 78, + "GOBJ": 79, + "INFMOD": 80, + "MES": 81, + "NCOMP": 82 + } + } + } + }, + "EntityMention": { + "fields": { + "text": { + "type": "TextSpan", + "id": 1 + }, + "type": { + "type": "Type", + "id": 2 + }, + "sentiment": { + "type": "Sentiment", + "id": 3 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_UNKNOWN": 0, + "PROPER": 1, + "COMMON": 2 + } + } + } + }, + "TextSpan": { + "fields": { + "content": { + "type": "string", + "id": 1 + }, + "beginOffset": { + "type": "int32", + "id": 2 + } + } + }, + "ClassificationCategory": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "confidence": { + "type": "float", + "id": 2 + } + } + }, + "AnalyzeSentimentRequest": { + "fields": { + "document": { + "type": "Document", + "id": 1 + }, + "encodingType": { + "type": "EncodingType", + "id": 2 + } + } + }, + "AnalyzeSentimentResponse": { + "fields": { + "documentSentiment": { + "type": "Sentiment", + "id": 1 + }, + "language": { + "type": "string", + "id": 2 + }, + "sentences": { + "rule": "repeated", + "type": "Sentence", + "id": 3 + } + } + }, + "AnalyzeEntitySentimentRequest": { + "fields": { + "document": { + "type": "Document", + "id": 1 + }, + "encodingType": { + "type": "EncodingType", + "id": 2 + } + } + }, + "AnalyzeEntitySentimentResponse": { + "fields": { + "entities": { + "rule": "repeated", + "type": "Entity", + "id": 1 + }, + "language": { + "type": "string", + "id": 2 + } + } + }, + "AnalyzeEntitiesRequest": { + "fields": { + "document": { + "type": "Document", + "id": 1 + }, + "encodingType": { + "type": "EncodingType", + "id": 2 + } + } + }, + "AnalyzeEntitiesResponse": { + "fields": { + "entities": { + "rule": "repeated", + "type": "Entity", + "id": 1 + }, + "language": { + "type": "string", + "id": 2 + } + } + }, + "AnalyzeSyntaxRequest": { + "fields": { + "document": { + "type": "Document", + "id": 1 + }, + "encodingType": { + "type": "EncodingType", + "id": 2 + } + } + }, + "AnalyzeSyntaxResponse": { + "fields": { + "sentences": { + "rule": "repeated", + "type": "Sentence", + "id": 1 + }, + "tokens": { + "rule": "repeated", + "type": "Token", + "id": 2 + }, + "language": { + "type": "string", + "id": 3 + } + } + }, + "ClassifyTextRequest": { + "fields": { + "document": { + "type": "Document", + "id": 1 + } + } + }, + "ClassifyTextResponse": { + "fields": { + "categories": { + "rule": "repeated", + "type": "ClassificationCategory", + "id": 1 + } + } + }, + "AnnotateTextRequest": { + "fields": { + "document": { + "type": "Document", + "id": 1 + }, + "features": { + "type": "Features", + "id": 2 + }, + "encodingType": { + "type": "EncodingType", + "id": 3 + } + }, + "nested": { + "Features": { + "fields": { + "extractSyntax": { + "type": "bool", + "id": 1 + }, + "extractEntities": { + "type": "bool", + "id": 2 + }, + "extractDocumentSentiment": { + "type": "bool", + "id": 3 + }, + "extractEntitySentiment": { + "type": "bool", + "id": 4 + }, + "classifyText": { + "type": "bool", + "id": 6 + } + } + } + } + }, + "AnnotateTextResponse": { + "fields": { + "sentences": { + "rule": "repeated", + "type": "Sentence", + "id": 1 + }, + "tokens": { + "rule": "repeated", + "type": "Token", + "id": 2 + }, + "entities": { + "rule": "repeated", + "type": "Entity", + "id": 3 + }, + "documentSentiment": { + "type": "Sentiment", + "id": 4 + }, + "language": { + "type": "string", + "id": 5 + }, + "categories": { + "rule": "repeated", + "type": "ClassificationCategory", + "id": 6 + } + } + }, + "EncodingType": { + "values": { + "NONE": 0, + "UTF8": 1, + "UTF16": 2, + "UTF32": 3 + } + } + } + } + } + } + } + }, + "api": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "java_multiple_files": true, + "java_outer_classname": "HttpProto", + "java_package": "com.google.api", + "objc_class_prefix": "GAPI", + "cc_enable_arenas": true + }, + "nested": { + "http": { + "type": "HttpRule", + "id": 72295728, + "extend": "google.protobuf.MethodOptions" + }, + "Http": { + "fields": { + "rules": { + "rule": "repeated", + "type": "HttpRule", + "id": 1 + }, + "fullyDecodeReservedExpansion": { + "type": "bool", + "id": 2 + } + } + }, + "HttpRule": { + "oneofs": { + "pattern": { + "oneof": [ + "get", + "put", + "post", + "delete", + "patch", + "custom" + ] + } + }, + "fields": { + "selector": { + "type": "string", + "id": 1 + }, + "get": { + "type": "string", + "id": 2 + }, + "put": { + "type": "string", + "id": 3 + }, + "post": { + "type": "string", + "id": 4 + }, + "delete": { + "type": "string", + "id": 5 + }, + "patch": { + "type": "string", + "id": 6 + }, + "custom": { + "type": "CustomHttpPattern", + "id": 8 + }, + "body": { + "type": "string", + "id": 7 + }, + "responseBody": { + "type": "string", + "id": 12 + }, + "additionalBindings": { + "rule": "repeated", + "type": "HttpRule", + "id": 11 + } + } + }, + "CustomHttpPattern": { + "fields": { + "kind": { + "type": "string", + "id": 1 + }, + "path": { + "type": "string", + "id": 2 + } + } + } + } + }, + "protobuf": { + "options": { + "go_package": "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor", + "java_package": "com.google.protobuf", + "java_outer_classname": "DescriptorProtos", + "csharp_namespace": "Google.Protobuf.Reflection", + "objc_class_prefix": "GPB", + "cc_enable_arenas": true, + "optimize_for": "SPEED" + }, + "nested": { + "FileDescriptorSet": { + "fields": { + "file": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 1 + } + } + }, + "FileDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "package": { + "type": "string", + "id": 2 + }, + "dependency": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "publicDependency": { + "rule": "repeated", + "type": "int32", + "id": 10, + "options": { + "packed": false + } + }, + "weakDependency": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "packed": false + } + }, + "messageType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 4 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 5 + }, + "service": { + "rule": "repeated", + "type": "ServiceDescriptorProto", + "id": 6 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 7 + }, + "options": { + "type": "FileOptions", + "id": 8 + }, + "sourceCodeInfo": { + "type": "SourceCodeInfo", + "id": 9 + }, + "syntax": { + "type": "string", + "id": 12 + } + } + }, + "DescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "field": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 2 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 6 + }, + "nestedType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 3 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 4 + }, + "extensionRange": { + "rule": "repeated", + "type": "ExtensionRange", + "id": 5 + }, + "oneofDecl": { + "rule": "repeated", + "type": "OneofDescriptorProto", + "id": 8 + }, + "options": { + "type": "MessageOptions", + "id": 7 + }, + "reservedRange": { + "rule": "repeated", + "type": "ReservedRange", + "id": 9 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 10 + } + }, + "nested": { + "ExtensionRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "ExtensionRangeOptions", + "id": 3 + } + } + }, + "ReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "ExtensionRangeOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "FieldDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 3 + }, + "label": { + "type": "Label", + "id": 4 + }, + "type": { + "type": "Type", + "id": 5 + }, + "typeName": { + "type": "string", + "id": 6 + }, + "extendee": { + "type": "string", + "id": 2 + }, + "defaultValue": { + "type": "string", + "id": 7 + }, + "oneofIndex": { + "type": "int32", + "id": 9 + }, + "jsonName": { + "type": "string", + "id": 10 + }, + "options": { + "type": "FieldOptions", + "id": 8 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18 + } + }, + "Label": { + "values": { + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3 + } + } + } + }, + "OneofDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "options": { + "type": "OneofOptions", + "id": 2 + } + } + }, + "EnumDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "value": { + "rule": "repeated", + "type": "EnumValueDescriptorProto", + "id": 2 + }, + "options": { + "type": "EnumOptions", + "id": 3 + }, + "reservedRange": { + "rule": "repeated", + "type": "EnumReservedRange", + "id": 4 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 5 + } + }, + "nested": { + "EnumReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "EnumValueDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "EnumValueOptions", + "id": 3 + } + } + }, + "ServiceDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "method": { + "rule": "repeated", + "type": "MethodDescriptorProto", + "id": 2 + }, + "options": { + "type": "ServiceOptions", + "id": 3 + } + } + }, + "MethodDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "inputType": { + "type": "string", + "id": 2 + }, + "outputType": { + "type": "string", + "id": 3 + }, + "options": { + "type": "MethodOptions", + "id": 4 + }, + "clientStreaming": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "serverStreaming": { + "type": "bool", + "id": 6, + "options": { + "default": false + } + } + } + }, + "FileOptions": { + "fields": { + "javaPackage": { + "type": "string", + "id": 1 + }, + "javaOuterClassname": { + "type": "string", + "id": 8 + }, + "javaMultipleFiles": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "javaGenerateEqualsAndHash": { + "type": "bool", + "id": 20, + "options": { + "deprecated": true + } + }, + "javaStringCheckUtf8": { + "type": "bool", + "id": 27, + "options": { + "default": false + } + }, + "optimizeFor": { + "type": "OptimizeMode", + "id": 9, + "options": { + "default": "SPEED" + } + }, + "goPackage": { + "type": "string", + "id": 11 + }, + "ccGenericServices": { + "type": "bool", + "id": 16, + "options": { + "default": false + } + }, + "javaGenericServices": { + "type": "bool", + "id": 17, + "options": { + "default": false + } + }, + "pyGenericServices": { + "type": "bool", + "id": 18, + "options": { + "default": false + } + }, + "phpGenericServices": { + "type": "bool", + "id": 42, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 23, + "options": { + "default": false + } + }, + "ccEnableArenas": { + "type": "bool", + "id": 31, + "options": { + "default": false + } + }, + "objcClassPrefix": { + "type": "string", + "id": 36 + }, + "csharpNamespace": { + "type": "string", + "id": 37 + }, + "swiftPrefix": { + "type": "string", + "id": 39 + }, + "phpClassPrefix": { + "type": "string", + "id": 40 + }, + "phpNamespace": { + "type": "string", + "id": 41 + }, + "phpMetadataNamespace": { + "type": "string", + "id": 44 + }, + "rubyPackage": { + "type": "string", + "id": 45 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 38, + 38 + ] + ], + "nested": { + "OptimizeMode": { + "values": { + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3 + } + } + } + }, + "MessageOptions": { + "fields": { + "messageSetWireFormat": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "noStandardDescriptorAccessor": { + "type": "bool", + "id": 2, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "mapEntry": { + "type": "bool", + "id": 7 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 8, + 8 + ], + [ + 9, + 9 + ] + ] + }, + "FieldOptions": { + "fields": { + "ctype": { + "type": "CType", + "id": 1, + "options": { + "default": "STRING" + } + }, + "packed": { + "type": "bool", + "id": 2 + }, + "jstype": { + "type": "JSType", + "id": 6, + "options": { + "default": "JS_NORMAL" + } + }, + "lazy": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "weak": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ] + ], + "nested": { + "CType": { + "values": { + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2 + } + }, + "JSType": { + "values": { + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2 + } + } + } + }, + "OneofOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "EnumOptions": { + "fields": { + "allowAlias": { + "type": "bool", + "id": 2 + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 5, + 5 + ] + ] + }, + "EnumValueOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "ServiceOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "MethodOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "idempotencyLevel": { + "type": "IdempotencyLevel", + "id": 34, + "options": { + "default": "IDEMPOTENCY_UNKNOWN" + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "nested": { + "IdempotencyLevel": { + "values": { + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2 + } + } + } + }, + "UninterpretedOption": { + "fields": { + "name": { + "rule": "repeated", + "type": "NamePart", + "id": 2 + }, + "identifierValue": { + "type": "string", + "id": 3 + }, + "positiveIntValue": { + "type": "uint64", + "id": 4 + }, + "negativeIntValue": { + "type": "int64", + "id": 5 + }, + "doubleValue": { + "type": "double", + "id": 6 + }, + "stringValue": { + "type": "bytes", + "id": 7 + }, + "aggregateValue": { + "type": "string", + "id": 8 + } + }, + "nested": { + "NamePart": { + "fields": { + "namePart": { + "rule": "required", + "type": "string", + "id": 1 + }, + "isExtension": { + "rule": "required", + "type": "bool", + "id": 2 + } + } + } + } + }, + "SourceCodeInfo": { + "fields": { + "location": { + "rule": "repeated", + "type": "Location", + "id": 1 + } + }, + "nested": { + "Location": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "span": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "leadingComments": { + "type": "string", + "id": 3 + }, + "trailingComments": { + "type": "string", + "id": 4 + }, + "leadingDetachedComments": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } + } + } + }, + "GeneratedCodeInfo": { + "fields": { + "annotation": { + "rule": "repeated", + "type": "Annotation", + "id": 1 + } + }, + "nested": { + "Annotation": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "sourceFile": { + "type": "string", + "id": 2 + }, + "begin": { + "type": "int32", + "id": 3 + }, + "end": { + "type": "int32", + "id": 4 + } + } + } + } + }, + "Any": { + "fields": { + "type_url": { + "type": "string", + "id": 1 + }, + "value": { + "type": "bytes", + "id": 2 + } + } + }, + "Duration": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, + "Empty": { + "fields": {} + }, + "Timestamp": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "longrunning": { + "options": { + "cc_enable_arenas": true, + "csharp_namespace": "Google.LongRunning", + "go_package": "google.golang.org/genproto/googleapis/longrunning;longrunning", + "java_multiple_files": true, + "java_outer_classname": "OperationsProto", + "java_package": "com.google.longrunning", + "php_namespace": "Google\\LongRunning" + }, + "nested": { + "operationInfo": { + "type": "google.longrunning.OperationInfo", + "id": 1049, + "extend": "google.protobuf.MethodOptions" + }, + "Operations": { + "methods": { + "ListOperations": { + "requestType": "ListOperationsRequest", + "responseType": "ListOperationsResponse", + "options": { + "(google.api.http).get": "/v1/{name=operations}" + } + }, + "GetOperation": { + "requestType": "GetOperationRequest", + "responseType": "Operation", + "options": { + "(google.api.http).get": "/v1/{name=operations/**}" + } + }, + "DeleteOperation": { + "requestType": "DeleteOperationRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1/{name=operations/**}" + } + }, + "CancelOperation": { + "requestType": "CancelOperationRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=operations/**}:cancel", + "(google.api.http).body": "*" + } + }, + "WaitOperation": { + "requestType": "WaitOperationRequest", + "responseType": "Operation" + } + } + }, + "Operation": { + "oneofs": { + "result": { + "oneof": [ + "error", + "response" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "metadata": { + "type": "google.protobuf.Any", + "id": 2 + }, + "done": { + "type": "bool", + "id": 3 + }, + "error": { + "type": "google.rpc.Status", + "id": 4 + }, + "response": { + "type": "google.protobuf.Any", + "id": 5 + } + } + }, + "GetOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "ListOperationsRequest": { + "fields": { + "name": { + "type": "string", + "id": 4 + }, + "filter": { + "type": "string", + "id": 1 + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListOperationsResponse": { + "fields": { + "operations": { + "rule": "repeated", + "type": "Operation", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CancelOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "DeleteOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, + "WaitOperationRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "timeout": { + "type": "google.protobuf.Duration", + "id": 2 + } + } + }, + "OperationInfo": { + "fields": { + "responseType": { + "type": "string", + "id": 1 + }, + "metadataType": { + "type": "string", + "id": 2 + } + } + } + } + }, + "rpc": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/rpc/status;status", + "java_multiple_files": true, + "java_outer_classname": "StatusProto", + "java_package": "com.google.rpc", + "objc_class_prefix": "RPC" + }, + "nested": { + "Status": { + "fields": { + "code": { + "type": "int32", + "id": 1 + }, + "message": { + "type": "string", + "id": 2 + }, + "details": { + "rule": "repeated", + "type": "google.protobuf.Any", + "id": 3 + } + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/packages/google-cloud-language/src/service_proto_list.json b/packages/google-cloud-language/src/service_proto_list.json new file mode 100644 index 00000000000..a94f8da1953 --- /dev/null +++ b/packages/google-cloud-language/src/service_proto_list.json @@ -0,0 +1 @@ +["../protos/google/cloud/language/v1beta2/language_service.proto"] \ No newline at end of file diff --git a/packages/google-cloud-language/src/v1/language_service_client.js b/packages/google-cloud-language/src/v1/language_service_client.js index f6776fc5a6a..5e91b74da2a 100644 --- a/packages/google-cloud-language/src/v1/language_service_client.js +++ b/packages/google-cloud-language/src/v1/language_service_client.js @@ -239,6 +239,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeSentiment(request, options, callback); @@ -293,6 +294,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeEntities(request, options, callback); @@ -346,6 +348,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeEntitySentiment( @@ -404,6 +407,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeSyntax(request, options, callback); @@ -452,6 +456,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.classifyText(request, options, callback); @@ -514,6 +519,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.annotateText(request, options, callback); diff --git a/packages/google-cloud-language/src/v1beta2/language_service_client.js b/packages/google-cloud-language/src/v1beta2/language_service_client.js index 0368b8f4eca..afb607d6e1f 100644 --- a/packages/google-cloud-language/src/v1beta2/language_service_client.js +++ b/packages/google-cloud-language/src/v1beta2/language_service_client.js @@ -237,6 +237,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeSentiment(request, options, callback); @@ -291,6 +292,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeEntities(request, options, callback); @@ -346,6 +348,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeEntitySentiment( @@ -404,6 +407,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.analyzeSyntax(request, options, callback); @@ -452,6 +456,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.classifyText(request, options, callback); @@ -514,6 +519,7 @@ class LanguageServiceClient { callback = options; options = {}; } + request = request || {}; options = options || {}; return this._innerApiCalls.annotateText(request, options, callback); diff --git a/packages/google-cloud-language/synth.metadata b/packages/google-cloud-language/synth.metadata index bfe070ca243..af456b91a3c 100644 --- a/packages/google-cloud-language/synth.metadata +++ b/packages/google-cloud-language/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-06-18T01:02:04.325447Z", + "updateTime": "2019-08-02T11:18:22.622909Z", "sources": [ { "generator": { "name": "artman", - "version": "0.26.0", - "dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15" + "version": "0.32.0", + "dockerImage": "googleapis/artman@sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "384aa843867c4d17756d14a01f047b6368494d32", - "internalRef": "253675319" + "sha": "3a40d3a5f5e5a33fd49888a8a33ed021f65c0ccf", + "internalRef": "261297518" } }, {