diff --git a/language/google/cloud/language_v1/gapic/enums.py b/language/google/cloud/language_v1/gapic/enums.py index b4d44ab52067..6ec0f9fef0c7 100644 --- a/language/google/cloud/language_v1/gapic/enums.py +++ b/language/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/language/google/cloud/language_v1/gapic/language_service_client.py b/language/google/cloud/language_v1/gapic/language_service_client.py index 407ef04480ae..1520d84c0bc9 100644 --- a/language/google/cloud/language_v1/gapic/language_service_client.py +++ b/language/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/language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py b/language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py index b8a13472c0c2..e4b4ffad30c1 100644 --- a/language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py +++ b/language/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/language/google/cloud/language_v1/proto/language_service_pb2.py b/language/google/cloud/language_v1/proto/language_service_pb2.py index b292a65ee5f0..f17ab0455ed7 100644 --- a/language/google/cloud/language_v1/proto/language_service_pb2.py +++ b/language/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/language/google/cloud/language_v1beta2/gapic/enums.py b/language/google/cloud/language_v1beta2/gapic/enums.py index 0d3cf1c591ed..6ed586f46439 100644 --- a/language/google/cloud/language_v1beta2/gapic/enums.py +++ b/language/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/language/google/cloud/language_v1beta2/gapic/language_service_client.py b/language/google/cloud/language_v1beta2/gapic/language_service_client.py index 1f248f6ecef4..34beaaec6c69 100644 --- a/language/google/cloud/language_v1beta2/gapic/language_service_client.py +++ b/language/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/language/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py b/language/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py index 7cc7f5a1163a..d546c1ab6d80 100644 --- a/language/google/cloud/language_v1beta2/gapic/transports/language_service_grpc_transport.py +++ b/language/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/language/google/cloud/language_v1beta2/proto/language_service_pb2.py b/language/google/cloud/language_v1beta2/proto/language_service_pb2.py index 8c9068df2910..13d144ca0bec 100644 --- a/language/google/cloud/language_v1beta2/proto/language_service_pb2.py +++ b/language/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/language/samples/v1/language_classify_gcs.py b/language/samples/v1/language_classify_gcs.py index db5958011cfe..941640b10772 100644 --- a/language/samples/v1/language_classify_gcs.py +++ b/language/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/language/samples/v1/language_classify_text.py b/language/samples/v1/language_classify_text.py index 2ecfd70bd588..52175f02db7a 100644 --- a/language/samples/v1/language_classify_text.py +++ b/language/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/language/samples/v1/language_entities_gcs.py b/language/samples/v1/language_entities_gcs.py index edd3238ac88a..790592ca158e 100644 --- a/language/samples/v1/language_entities_gcs.py +++ b/language/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/language/samples/v1/language_entities_text.py b/language/samples/v1/language_entities_text.py index 2948f44d3500..9ae849f2d5f6 100644 --- a/language/samples/v1/language_entities_text.py +++ b/language/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/language/samples/v1/language_entity_sentiment_gcs.py b/language/samples/v1/language_entity_sentiment_gcs.py index 87fb74de789e..9fafa737e5a4 100644 --- a/language/samples/v1/language_entity_sentiment_gcs.py +++ b/language/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/language/samples/v1/language_entity_sentiment_text.py b/language/samples/v1/language_entity_sentiment_text.py index 6f914980a2e6..9b3d5b8a897f 100644 --- a/language/samples/v1/language_entity_sentiment_text.py +++ b/language/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/language/samples/v1/language_sentiment_gcs.py b/language/samples/v1/language_sentiment_gcs.py index 366009668ba3..261f2f3e6233 100644 --- a/language/samples/v1/language_sentiment_gcs.py +++ b/language/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/language/samples/v1/language_sentiment_text.py b/language/samples/v1/language_sentiment_text.py index c1325678bf39..12f1e22113c0 100644 --- a/language/samples/v1/language_sentiment_text.py +++ b/language/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/language/samples/v1/language_syntax_gcs.py b/language/samples/v1/language_syntax_gcs.py index 732f77df2a92..32bf2acb589e 100644 --- a/language/samples/v1/language_syntax_gcs.py +++ b/language/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/language/samples/v1/language_syntax_text.py b/language/samples/v1/language_syntax_text.py index d1c3104ea890..290418864675 100644 --- a/language/samples/v1/language_syntax_text.py +++ b/language/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/language/synth.metadata b/language/synth.metadata index 18a4b70b34ac..94c812a34ea2 100644 --- a/language/synth.metadata +++ b/language/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/language/synth.py b/language/synth.py index db33996ab084..5f3d6c495d48 100644 --- a/language/synth.py +++ b/language/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/language/tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py b/language/tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py index 24d18d098289..6145cf2a937d 100644 --- a/language/tests/system/gapic/v1beta2/test_system_language_service_v1beta2.py +++ b/language/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/language/tests/unit/gapic/v1/test_language_service_client_v1.py b/language/tests/unit/gapic/v1/test_language_service_client_v1.py index 2c9bef7c3c7b..8d8362abc7aa 100644 --- a/language/tests/unit/gapic/v1/test_language_service_client_v1.py +++ b/language/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/language/tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py b/language/tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py index 159f57f9bcce..548357be04ce 100644 --- a/language/tests/unit/gapic/v1beta2/test_language_service_client_v1beta2.py +++ b/language/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.