# Class Structs (3.19.4)

    public final class Structs

Utilities to help create `google.protobuf.Struct` messages.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> Structs

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### of(String k1, Value v1)

    public static Struct of(String k1, Value v1)

Returns a struct containing the key-value pair.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `k1` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `v1` | `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.Struct` |   |

### of(String k1, Value v1, String k2, Value v2)

    public static Struct of(String k1, Value v1, String k2, Value v2)

Returns a struct containing each of the key-value pairs.

Providing duplicate keys is undefined behavior.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `k1` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `v1` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value` |
| `k2` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `v2` | `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.Struct` |   |

### of(String k1, Value v1, String k2, Value v2, String k3, Value v3)

    public static Struct of(String k1, Value v1, String k2, Value v2, String k3, Value v3)

Returns a struct containing each of the key-value pairs.

Providing duplicate keys is undefined behavior.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `k1` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `v1` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value` |
| `k2` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `v2` | `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value` |
| `k3` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `v3` | `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.Struct` |   |