# Interface StructOrBuilder (3.19.4)

    public interface StructOrBuilder extends MessageLiteOrBuilder

## Implements

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

## Methods

### containsFields(String key)

    public abstract boolean containsFields(String key)

Unordered map of dynamically typed values.

`map<string, .google.protobuf.Value> fields = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getFields()

    public abstract Map<String,Value> getFields()

Use [#getFieldsMap()](https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder#com_google_protobuf_StructOrBuilder_getFieldsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value>` |   |

### getFieldsCount()

    public abstract int getFieldsCount()

Unordered map of dynamically typed values.

`map<string, .google.protobuf.Value> fields = 1;`

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

### getFieldsMap()

    public abstract Map<String,Value> getFieldsMap()

Unordered map of dynamically typed values.

`map<string, .google.protobuf.Value> fields = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value>` |   |

### getFieldsOrDefault(String key, Value defaultValue)

    public abstract Value getFieldsOrDefault(String key, Value defaultValue)

Unordered map of dynamically typed values.

`map<string, .google.protobuf.Value> fields = 1;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value` |

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

### getFieldsOrThrow(String key)

    public abstract Value getFieldsOrThrow(String key)

Unordered map of dynamically typed values.

`map<string, .google.protobuf.Value> fields = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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