# Interface CitationSourceOrBuilder (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 CitationSourceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getExampleQuery()

    public abstract ExampleQuery getExampleQuery()

Output only. The example query used as the source.

`
.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.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.v1.ExampleQuery` | The exampleQuery. |

### getExampleQueryOrBuilder()

    public abstract ExampleQueryOrBuilder getExampleQueryOrBuilder()

Output only. The example query used as the source.

`
.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.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.v1.ExampleQueryOrBuilder` |   |

### getGlossaryTerm()

    public abstract GlossaryTerm getGlossaryTerm()

Output only. The glossary term used as the source.

`
.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.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.v1.GlossaryTerm` | The glossaryTerm. |

### getGlossaryTermOrBuilder()

    public abstract GlossaryTermOrBuilder getGlossaryTermOrBuilder()

Output only. The glossary term used as the source.

`
.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.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.v1.GlossaryTermOrBuilder` |   |

### getId()

    public abstract String getId()

Output only. Unique identifier of the source. This ID is service-generated
and is unique within the scope of a single `Citation` message.

`string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

Output only. Unique identifier of the source. This ID is service-generated
and is unique within the scope of a single `Citation` message.

`string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getSourceTypeCase()

    public abstract CitationSource.SourceTypeCase getSourceTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.CitationSource.SourceTypeCase` |   |

### getTitle()

    public abstract String getTitle()

Output only. The title of the source.

`string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The title. |

### getTitleBytes()

    public abstract ByteString getTitleBytes()

Output only. The title of the source.

`string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for title. |

### getUri()

    public abstract String getUri()

Output only. The uri used as the source, such as a web grounding URL.

`string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The uri. |

### getUriBytes()

    public abstract ByteString getUriBytes()

Output only. The uri used as the source, such as a web grounding URL.

`string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for uri. |

### hasExampleQuery()

    public abstract boolean hasExampleQuery()

Output only. The example query used as the source.

`
.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasGlossaryTerm()

    public abstract boolean hasGlossaryTerm()

Output only. The glossary term used as the source.

`
.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasUri()

    public abstract boolean hasUri()

Output only. The uri used as the source, such as a web grounding URL.

`string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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