diff --git a/google/cloud/language_v1/gapic/enums.py b/google/cloud/language_v1/gapic/enums.py index b4d44ab5..6ec0f9fe 100644 --- a/google/cloud/language_v1/gapic/enums.py +++ b/google/cloud/language_v1/gapic/enums.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/google/cloud/language_v1/gapic/language_service_client.py b/google/cloud/language_v1/gapic/language_service_client.py index 407ef044..1520d84c 100644 --- a/google/cloud/language_v1/gapic/language_service_client.py +++ b/google/cloud/language_v1/gapic/language_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. 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 b8a13472..e4b4ffad 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 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/google/cloud/language_v1/proto/language_service_pb2.py b/google/cloud/language_v1/proto/language_service_pb2.py index b292a65e..f17ab045 100644 --- a/google/cloud/language_v1/proto/language_service_pb2.py +++ b/google/cloud/language_v1/proto/language_service_pb2.py @@ -2944,9 +2944,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: @@ -2988,7 +2988,8 @@ dict( 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: @@ -2999,7 +3000,7 @@ dependency_edge: Dependency tree parse for this token. lemma: - `Lemma + \ `Lemma `__ of the token. """, @@ -3014,8 +3015,8 @@ 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. + __doc__="""Represents the feeling associated with the entire text or + entities in the text. Attributes: @@ -3038,8 +3039,8 @@ 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 + __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 @@ -3080,8 +3081,8 @@ 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 + __doc__="""Represents dependency parse tree information for a token. + (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017 @@ -3106,8 +3107,8 @@ 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. + __doc__="""Represents a mention for an entity in the text. Currently, + proper noun mentions are supported. Attributes: @@ -3399,9 +3400,9 @@ 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. + __doc__="""All available features for sentiment, syntax, and semantic + analysis. Setting each one to true will enable that specific analysis + for the input. Attributes: @@ -3421,8 +3422,9 @@ ), 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: diff --git a/google/cloud/language_v1beta2/gapic/enums.py b/google/cloud/language_v1beta2/gapic/enums.py index 0d3cf1c5..6ed586f4 100644 --- a/google/cloud/language_v1beta2/gapic/enums.py +++ b/google/cloud/language_v1beta2/gapic/enums.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/google/cloud/language_v1beta2/gapic/language_service_client.py b/google/cloud/language_v1beta2/gapic/language_service_client.py index 1f248f6e..34beaaec 100644 --- a/google/cloud/language_v1beta2/gapic/language_service_client.py +++ b/google/cloud/language_v1beta2/gapic/language_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. 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 7cc7f5a1..d546c1ab 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 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/google/cloud/language_v1beta2/proto/language_service_pb2.py b/google/cloud/language_v1beta2/proto/language_service_pb2.py index 8c9068df..13d144ca 100644 --- a/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/google/cloud/language_v1beta2/proto/language_service_pb2.py @@ -2946,9 +2946,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: @@ -2990,7 +2990,8 @@ dict( 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: @@ -3001,7 +3002,7 @@ dependency_edge: Dependency tree parse for this token. lemma: - `Lemma + \ `Lemma `__ of the token. """, @@ -3016,8 +3017,8 @@ 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 + __doc__="""Represents the feeling associated with the entire text or + entities in the text. Next ID: 6 Attributes: @@ -3104,8 +3105,8 @@ 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. + __doc__="""Represents a mention for an entity in the text. Currently, + proper noun mentions are supported. Attributes: @@ -3401,9 +3402,9 @@ 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 + __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: @@ -3425,8 +3426,9 @@ ), 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: diff --git a/samples/v1/language_classify_gcs.py b/samples/v1/language_classify_gcs.py index db595801..941640b1 100644 --- a/samples/v1/language_classify_gcs.py +++ b/samples/v1/language_classify_gcs.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_classify_text.py b/samples/v1/language_classify_text.py index 2ecfd70b..52175f02 100644 --- a/samples/v1/language_classify_text.py +++ b/samples/v1/language_classify_text.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_entities_gcs.py b/samples/v1/language_entities_gcs.py index edd3238a..790592ca 100644 --- a/samples/v1/language_entities_gcs.py +++ b/samples/v1/language_entities_gcs.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_entities_text.py b/samples/v1/language_entities_text.py index 2948f44d..9ae849f2 100644 --- a/samples/v1/language_entities_text.py +++ b/samples/v1/language_entities_text.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_entity_sentiment_gcs.py b/samples/v1/language_entity_sentiment_gcs.py index 87fb74de..9fafa737 100644 --- a/samples/v1/language_entity_sentiment_gcs.py +++ b/samples/v1/language_entity_sentiment_gcs.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_entity_sentiment_text.py b/samples/v1/language_entity_sentiment_text.py index 6f914980..9b3d5b8a 100644 --- a/samples/v1/language_entity_sentiment_text.py +++ b/samples/v1/language_entity_sentiment_text.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_sentiment_gcs.py b/samples/v1/language_sentiment_gcs.py index 36600966..261f2f3e 100644 --- a/samples/v1/language_sentiment_gcs.py +++ b/samples/v1/language_sentiment_gcs.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_sentiment_text.py b/samples/v1/language_sentiment_text.py index c1325678..12f1e221 100644 --- a/samples/v1/language_sentiment_text.py +++ b/samples/v1/language_sentiment_text.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/samples/v1/language_syntax_gcs.py b/samples/v1/language_syntax_gcs.py index 732f77df..32bf2acb 100644 --- a/samples/v1/language_syntax_gcs.py +++ b/samples/v1/language_syntax_gcs.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. @@ -64,7 +64,7 @@ def sample_analyze_syntax(gcs_content_uri): u"Location of this token in overall document: {}".format(text.begin_offset) ) # Get the part of speech information for this token. - # Parts of speech are as defined in: + # Parts of spech are as defined in: # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf part_of_speech = token.part_of_speech # Get the tag, e.g. NOUN, ADJ for Adjective, et al. diff --git a/samples/v1/language_syntax_text.py b/samples/v1/language_syntax_text.py index d1c3104e..29041886 100644 --- a/samples/v1/language_syntax_text.py +++ b/samples/v1/language_syntax_text.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. @@ -63,7 +63,7 @@ def sample_analyze_syntax(text_content): u"Location of this token in overall document: {}".format(text.begin_offset) ) # Get the part of speech information for this token. - # Parts of speech are as defined in: + # Parts of spech are as defined in: # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf part_of_speech = token.part_of_speech # Get the tag, e.g. NOUN, ADJ for Adjective, et al. diff --git a/synth.metadata b/synth.metadata index 18a4b70b..94c812a3 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-12-10T13:18:39.049538Z", + "updateTime": "2020-01-30T00:27:56.902647Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6cc9499e225a4f6a5e34fe07e390f67055d7991c", - "internalRef": "284643689" + "remote": "git@github.com:googleapis/googleapis.git", + "sha": "341fd5690fae36f36cf626ef048fbcf4bbe7cee6", + "internalRef": "292221998" } }, { @@ -45,5 +45,139 @@ "config": "google/cloud/language/artman_language_v1.yaml" } } + ], + "newFiles": [ + { + "path": "MANIFEST.in" + }, + { + "path": ".flake8" + }, + { + "path": ".coveragerc" + }, + { + "path": "setup.cfg" + }, + { + "path": "docs/_static/custom.css" + }, + { + "path": "docs/_templates/layout.html" + }, + { + "path": "samples/v1/language_sentiment_text.py" + }, + { + "path": "samples/v1/language_entities_text.py" + }, + { + "path": "samples/v1/language_entity_sentiment_gcs.py" + }, + { + "path": "samples/v1/language_syntax_text.py" + }, + { + "path": "samples/v1/language_entity_sentiment_text.py" + }, + { + "path": "samples/v1/language_sentiment_gcs.py" + }, + { + "path": "samples/v1/language_classify_gcs.py" + }, + { + "path": "samples/v1/language_entities_gcs.py" + }, + { + "path": "samples/v1/language_classify_text.py" + }, + { + "path": "samples/v1/language_syntax_gcs.py" + }, + { + "path": "samples/v1/test/analyzing_sentiment.test.yaml" + }, + { + "path": "samples/v1/test/classifying_content.test.yaml" + }, + { + "path": "samples/v1/test/analyzing_entities.test.yaml" + }, + { + "path": "samples/v1/test/analyzing_syntax.test.yaml" + }, + { + "path": "samples/v1/test/analyzing_entity_sentiment.test.yaml" + }, + { + "path": "google/cloud/language_v1/gapic/__init__.py" + }, + { + "path": "google/cloud/language_v1/gapic/enums.py" + }, + { + "path": "google/cloud/language_v1/gapic/language_service_client.py" + }, + { + "path": "google/cloud/language_v1/gapic/language_service_client_config.py" + }, + { + "path": "google/cloud/language_v1/gapic/transports/__init__.py" + }, + { + "path": "google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py" + }, + { + "path": "google/cloud/language_v1/proto/__init__.py" + }, + { + "path": "google/cloud/language_v1/proto/language_service.proto" + }, + { + "path": "google/cloud/language_v1/proto/language_service_pb2.py" + }, + { + "path": "google/cloud/language_v1/proto/language_service_pb2_grpc.py" + }, + { + "path": "google/cloud/language_v1beta2/gapic/__init__.py" + }, + { + "path": "google/cloud/language_v1beta2/gapic/enums.py" + }, + { + "path": "google/cloud/language_v1beta2/gapic/language_service_client.py" + }, + { + "path": "google/cloud/language_v1beta2/gapic/language_service_client_config.py" + }, + { + "path": "google/cloud/language_v1beta2/gapic/transports/__init__.py" + }, + { + "path": "google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py" + }, + { + "path": "google/cloud/language_v1beta2/proto/__init__.py" + }, + { + "path": "google/cloud/language_v1beta2/proto/language_service.proto" + }, + { + "path": "google/cloud/language_v1beta2/proto/language_service_pb2.py" + }, + { + "path": "google/cloud/language_v1beta2/proto/language_service_pb2_grpc.py" + }, + { + "path": "tests/unit/gapic/v1/test_language_service_client_v1.py" + }, + { + "path": "tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py" + }, + { + "path": "tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py" + } ] } \ No newline at end of file diff --git a/synth.py b/synth.py index db33996a..5f3d6c49 100644 --- a/synth.py +++ b/synth.py @@ -47,6 +47,13 @@ templated_files = common.py_library(unit_cov_level=97, cov_level=100) s.move(templated_files, excludes=['noxfile.py']) +s.replace("google/cloud/**/language_service_pb2.py", +'''__doc__ = """################################################################ + # + + Represents the input to API methods.''', +'''__doc__="""Represents the input to API methods.''' +) s.replace( f"google/cloud/**/gapic/language_service_client.py", r"types\.EncodingType", diff --git a/tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py b/tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py index 24d18d09..6145cf2a 100644 --- a/tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py +++ b/tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/tests/unit/gapic/v1/test_language_service_client_v1.py b/tests/unit/gapic/v1/test_language_service_client_v1.py index 2c9bef7c..8d8362ab 100644 --- a/tests/unit/gapic/v1/test_language_service_client_v1.py +++ b/tests/unit/gapic/v1/test_language_service_client_v1.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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. diff --git a/tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py b/tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py index 159f57f9..548357be 100644 --- a/tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py +++ b/tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# 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.