> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Eip712Message

> Eip712Message API reference.

Package: [`com.coinbase.cdp.types`](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/index)

```java theme={null}
public final class Eip712Message extends Object
```

## Method Details

### `getDomain`

```java theme={null}
public Eip712Domain getDomain()
```

**Returns:**

[Eip712Domain](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/Eip712Domain.md)

### `getTypes`

```java theme={null}
public Eip712Types getTypes()
```

**Returns:**

[Eip712Types](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/Eip712Types.md)

### `getPrimaryType`

```java theme={null}
public String getPrimaryType()
```

**Returns:**

`String` - The primary type of the message. This is the name of the struct in the `types` object that is the root of the message.

### `getMessage`

```java theme={null}
public Map<String,Object> getMessage()
```

**Returns:**

`Map<String,Object>` - The message to sign. The structure of this message must match the `primaryType` struct in the `types` object.

### `equals`

```java theme={null}
public boolean equals(Object other)
```

**Overrides:**

`[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Parameters:**

`other` - `Object`

**Returns:**

`boolean`

### `getAdditionalProperties`

```java theme={null}
public Map<String,Object> getAdditionalProperties()
```

**Returns:**

`Map<String,Object>`

### `hashCode`

```java theme={null}
public int hashCode()
```

**Overrides:**

`[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`int`

### `toString`

```java theme={null}
public String toString()
```

**Overrides:**

`[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`String`

### `builder`

```java theme={null}
public static Eip712Message.DomainStage builder()
```

**Returns:**

[Eip712Message](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/Eip712Message.md).`DomainStage`
