@GoogleCloudBaseHook.catch_http_exception<EOL><INDENT>def analyze_entity_sentiment(self, document, encoding_type=None, retry=None, timeout=None, metadata=None):<DEDENT>
client = self.get_conn()<EOL>return client.analyze_entity_sentiment(<EOL>document=document, encoding_type=encoding_type, retry=retry, timeout=timeout, metadata=metadata<EOL>)<EOL>
Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each
entity and its mentions.

:param document: Input document.
    If a dict is provided, it must be of the same form as the protobuf message Document
:type document: dict or class google.cloud.language_v1.types.Document
:param encoding_type: The encoding type used by the API to calculate offsets.
:type encoding_type: google.cloud.language_v1.types.EncodingType
:param retry: A retry object used to retry requests. If None is specified, requests will not be
    retried.
:type retry: google.api_core.retry.Retry
:param timeout: The amount of time, in seconds, to wait for the request to complete. Note that if
    retry is specified, the timeout applies to each individual attempt.
:type timeout: float
:param metadata: Additional metadata that is provided to the method.
:type metadata: sequence[tuple[str, str]]]
:rtype: google.cloud.language_v1.types.AnalyzeEntitiesResponse