# Interface ProductTextGenerationMetadataOrBuilder (0.33.0)

0.33.0 (latest) 0.31.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.20.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

    public interface ProductTextGenerationMetadataOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getMetadata()

    public abstract Struct getMetadata()

Metadata is a pretty loose concept. The data is modeled as a map here to
indicate that there is no guaranteed structure to the output past a simple
K:V association.
The first use-case is to track words added/removed/changed in generations.

`.google.protobuf.Struct metadata = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Struct.html` | The metadata. |

### getMetadataOrBuilder()

    public abstract StructOrBuilder getMetadataOrBuilder()

Metadata is a pretty loose concept. The data is modeled as a map here to
indicate that there is no guaranteed structure to the output past a simple
K:V association.
The first use-case is to track words added/removed/changed in generations.

`.google.protobuf.Struct metadata = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder.html` |   |

### hasMetadata()

    public abstract boolean hasMetadata()

Metadata is a pretty loose concept. The data is modeled as a map here to
indicate that there is no guaranteed structure to the output past a simple
K:V association.
The first use-case is to track words added/removed/changed in generations.

`.google.protobuf.Struct metadata = 1;`

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