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

## Implements

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

## Methods

### getData(int index)

    public abstract Struct getData(int index)

Optional. The content of the data. Each row is a struct that matches the
schema. Simple values are represented as strings, while nested structures
are represented as lists or structs.

`repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getDataCount()

    public abstract int getDataCount()

Optional. The content of the data. Each row is a struct that matches the
schema. Simple values are represented as strings, while nested structures
are represented as lists or structs.

`repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getDataList()

    public abstract List<Struct> getDataList()

Optional. The content of the data. Each row is a struct that matches the
schema. Simple values are represented as strings, while nested structures
are represented as lists or structs.

`repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getDataOrBuilder(int index)

    public abstract StructOrBuilder getDataOrBuilder(int index)

Optional. The content of the data. Each row is a struct that matches the
schema. Simple values are represented as strings, while nested structures
are represented as lists or structs.

`repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getDataOrBuilderList()

    public abstract List<? extends StructOrBuilder> getDataOrBuilderList()

Optional. The content of the data. Each row is a struct that matches the
schema. Simple values are represented as strings, while nested structures
are represented as lists or structs.

`repeated .google.protobuf.Struct data = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getFormattedData(int index)

    public abstract Struct getFormattedData(int index)

Optional. Formatted representation of the data, when applicable.
Each row is a struct that directly corresponds to the row at the same index
within the `data` field. Its values are string representations of the
original data, formatted according to data source specifications (e.g.,
"$1,234.56" for currency). Columns without formatting will default to
their raw value representation. If no columns have formatting rules, this
field will be empty.

`
repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getFormattedDataCount()

    public abstract int getFormattedDataCount()

Optional. Formatted representation of the data, when applicable.
Each row is a struct that directly corresponds to the row at the same index
within the `data` field. Its values are string representations of the
original data, formatted according to data source specifications (e.g.,
"$1,234.56" for currency). Columns without formatting will default to
their raw value representation. If no columns have formatting rules, this
field will be empty.

`
repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getFormattedDataList()

    public abstract List<Struct> getFormattedDataList()

Optional. Formatted representation of the data, when applicable.
Each row is a struct that directly corresponds to the row at the same index
within the `data` field. Its values are string representations of the
original data, formatted according to data source specifications (e.g.,
"$1,234.56" for currency). Columns without formatting will default to
their raw value representation. If no columns have formatting rules, this
field will be empty.

`
repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getFormattedDataOrBuilder(int index)

    public abstract StructOrBuilder getFormattedDataOrBuilder(int index)

Optional. Formatted representation of the data, when applicable.
Each row is a struct that directly corresponds to the row at the same index
within the `data` field. Its values are string representations of the
original data, formatted according to data source specifications (e.g.,
"$1,234.56" for currency). Columns without formatting will default to
their raw value representation. If no columns have formatting rules, this
field will be empty.

`
repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getFormattedDataOrBuilderList()

    public abstract List<? extends StructOrBuilder> getFormattedDataOrBuilderList()

Optional. Formatted representation of the data, when applicable.
Each row is a struct that directly corresponds to the row at the same index
within the `data` field. Its values are string representations of the
original data, formatted according to data source specifications (e.g.,
"$1,234.56" for currency). Columns without formatting will default to
their raw value representation. If no columns have formatting rules, this
field will be empty.

`
repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getName()

    public abstract String getName()

Optional. A snake-case name for the data result that reflects its contents.
The name is used to pass the result around by reference, and serves as a
signal about its meaning.

- Example: "total_sales_by_product"
- Example: "sales_for_product_12345"

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

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Optional. A snake-case name for the data result that reflects its contents.
The name is used to pass the result around by reference, and serves as a
signal about its meaning.

- Example: "total_sales_by_product"
- Example: "sales_for_product_12345"

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

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

### getSchema()

    public abstract Schema getSchema()

Optional. The schema of the data.

`
.google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getSchemaOrBuilder()

    public abstract SchemaOrBuilder getSchemaOrBuilder()

Optional. The schema of the data.

`
.google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasSchema()

    public abstract boolean hasSchema()

Optional. The schema of the data.

`
.google.cloud.geminidataanalytics.v1.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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