0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

    Answer(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines an answer.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*` |
| `state` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Answer.State` The state of the answer generation. |
| `answer_text` | `str` The textual answer. |
| `citations` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Answer.Citation]` Citations. |
| `references` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Answer.Reference]` References. |
| `related_questions` | `MutableSequence[str]` Suggested related questions. |
| `steps` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Answer.Step]` Answer generation steps. |
| `query_understanding_info` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Answer.QueryUnderstandingInfo` Query understanding information. |
| `answer_skipped_reasons` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1alpha.types.Answer.AnswerSkippedReason]` Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Answer creation timestamp. |
| `complete_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Answer completed timestamp. |

## Classes

### AnswerSkippedReason

    AnswerSkippedReason(value)

An enum for answer skipped reasons.

        Google skips the answer if there are no
        high-relevance search results.
    POTENTIAL_POLICY_VIOLATION (4):
        The potential policy violation case.

        Google skips the answer if there is a potential
        policy violation detected. This includes content
        that may be violent or toxic.
    NO_RELEVANT_CONTENT (5):
        The no relevant content case.

        Google skips the answer if there is no relevant
        content in the retrieved search results.
    JAIL_BREAKING_QUERY_IGNORED (6):
        The jail-breaking query ignored case.

        For example, "Reply in the tone of a competing
        company's CEO". Google skips the answer if the
        query is classified as a jail-breaking query.
    CUSTOMER_POLICY_VIOLATION (7):
        The customer policy violation case.

        Google skips the summary if there is a customer
        policy violation detected. The policy is defined
        by the customer.

### Citation

    Citation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Citation info for a segment.

### CitationSource

    CitationSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Citation source.

### QueryUnderstandingInfo

    QueryUnderstandingInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Query understanding information.

### Reference

    Reference(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Reference.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### State

    State(value)

Enumeration of the state of the answer generation.

### Step

    Step(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Step information.