# Interface ExamplesOverrideOrBuilder (1.48.0)

1.48.0 (latest) 1.47.0 1.45.0 1.43.0 1.42.0 1.40.0 1.38.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.30.0 1.28.0 1.27.0 1.24.0 1.23.0 1.22.0 1.20.1 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface ExamplesOverrideOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCrowdingCount()

    public abstract int getCrowdingCount()

The number of neighbors to return that have the same crowding tag.

`int32 crowding_count = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The crowdingCount. |

### getDataFormat()

    public abstract ExamplesOverride.DataFormat getDataFormat()

The format of the data being provided with each call.

`.google.cloud.vertexai.v1.ExamplesOverride.DataFormat data_format = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ExamplesOverride.DataFormat` | The dataFormat. |

### getDataFormatValue()

    public abstract int getDataFormatValue()

The format of the data being provided with each call.

`.google.cloud.vertexai.v1.ExamplesOverride.DataFormat data_format = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for dataFormat. |

### getNeighborCount()

    public abstract int getNeighborCount()

The number of neighbors to return.

`int32 neighbor_count = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The neighborCount. |

### getRestrictions(int index)

    public abstract ExamplesRestrictionsNamespace getRestrictions(int index)

Restrict the resulting nearest neighbors to respect these constraints.

`repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ExamplesRestrictionsNamespace` |   |

### getRestrictionsCount()

    public abstract int getRestrictionsCount()

Restrict the resulting nearest neighbors to respect these constraints.

`repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getRestrictionsList()

    public abstract List<ExamplesRestrictionsNamespace> getRestrictionsList()

Restrict the resulting nearest neighbors to respect these constraints.

`repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ExamplesRestrictionsNamespace>` |   |

### getRestrictionsOrBuilder(int index)

    public abstract ExamplesRestrictionsNamespaceOrBuilder getRestrictionsOrBuilder(int index)

Restrict the resulting nearest neighbors to respect these constraints.

`repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.ExamplesRestrictionsNamespaceOrBuilder` |   |

### getRestrictionsOrBuilderList()

    public abstract List<? extends ExamplesRestrictionsNamespaceOrBuilder> getRestrictionsOrBuilderList()

Restrict the resulting nearest neighbors to respect these constraints.

`repeated .google.cloud.vertexai.v1.ExamplesRestrictionsNamespace restrictions = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.vertexai.api.ExamplesRestrictionsNamespaceOrBuilder>` |   |

### getReturnEmbeddings()

    public abstract boolean getReturnEmbeddings()

If true, return the embeddings instead of neighbors.

`bool return_embeddings = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The returnEmbeddings. |