# Interface CitationAnchorOrBuilder (0.21.0)

0.21.0 (latest) 0.19.0 0.16.0 0.15.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface CitationAnchorOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAnchorTypeCase()

    public abstract CitationAnchor.AnchorTypeCase getAnchorTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1beta.CitationAnchor.AnchorTypeCase` |   |

### getTextMessageAnchor()

    public abstract CitationAnchor.TextMessageCitationAnchor getTextMessageAnchor()

Output only. Only set if the citation is for a TextMessage.

`
.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor` | The textMessageAnchor. |

### getTextMessageAnchorOrBuilder()

    public abstract CitationAnchor.TextMessageCitationAnchorOrBuilder getTextMessageAnchorOrBuilder()

Output only. Only set if the citation is for a TextMessage.

`
.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchorOrBuilder` |   |

### hasTextMessageAnchor()

    public abstract boolean hasTextMessageAnchor()

Output only. Only set if the citation is for a TextMessage.

`
.google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the textMessageAnchor field is set. |