# Interface OutputFieldsOrBuilder (0.15.0)

0.15.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.1.0

    public interface OutputFieldsOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDataFields(int index)

    public abstract String getDataFields(int index)

Optional. The fields from the data fields to include in the output.

`repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dataFields at the given index. |

### getDataFieldsBytes(int index)

    public abstract ByteString getDataFieldsBytes(int index)

Optional. The fields from the data fields to include in the output.

`repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the dataFields at the given index. |

### getDataFieldsCount()

    public abstract int getDataFieldsCount()

Optional. The fields from the data fields to include in the output.

`repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDataFieldsList()

    public abstract List<String> getDataFieldsList()

Optional. The fields from the data fields to include in the output.

`repeated string data_fields = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the dataFields. |

### getMetadataFields(int index)

    public abstract String getMetadataFields(int index)

Optional. The fields from the DataObject metadata to include in the output.

`repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The metadataFields at the given index. |

### getMetadataFieldsBytes(int index)

    public abstract ByteString getMetadataFieldsBytes(int index)

Optional. The fields from the DataObject metadata to include in the output.

`repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the metadataFields at the given index. |

### getMetadataFieldsCount()

    public abstract int getMetadataFieldsCount()

Optional. The fields from the DataObject metadata to include in the output.

`repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getMetadataFieldsList()

    public abstract List<String> getMetadataFieldsList()

Optional. The fields from the DataObject metadata to include in the output.

`repeated string metadata_fields = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the metadataFields. |

### getVectorFields(int index)

    public abstract String getVectorFields(int index)

Optional. The fields from the vector fields to include in the output.

`repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The vectorFields at the given index. |

### getVectorFieldsBytes(int index)

    public abstract ByteString getVectorFieldsBytes(int index)

Optional. The fields from the vector fields to include in the output.

`repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the vectorFields at the given index. |

### getVectorFieldsCount()

    public abstract int getVectorFieldsCount()

Optional. The fields from the vector fields to include in the output.

`repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getVectorFieldsList()

    public abstract List<String> getVectorFieldsList()

Optional. The fields from the vector fields to include in the output.

`repeated string vector_fields = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the vectorFields. |