# HasSuggestions


```
interface HasSuggestions
```

<br />

Known direct subclasses [Structure](https://developers.home.google.com/reference/kotlin/com/google/home/Structure)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/Structure` | The top-level organizing construct for the `https://developers.home.google.com/reference/kotlin/com/google/home/Home`. |

*** ** * ** ***

Interface that provides automation suggestions.

## Summary

| ### Public functions |
|---|---|
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#clearSuggestionFeedback(kotlin.String)(suggestionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Clears the suggestion feedback for the given `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#clearSuggestionFeedback(kotlin.String)`. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#dislikeSuggestion(kotlin.String)(suggestionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Dislikes the `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion` with the given `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#dislikeSuggestion(kotlin.String)`. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#likeSuggestion(kotlin.String)(suggestionId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Likes the `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion` with the given `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#likeSuggestion(kotlin.String)`. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion>` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#suggestions()()` Returns all the `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion` instances for the receiver. |

## Public functions

### clearSuggestionFeedback

```
suspend fun clearSuggestionFeedback(suggestionId: String): Boolean
```

Clears the suggestion feedback for the given `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#clearSuggestionFeedback(kotlin.String)`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | true if the feedback is cleared, false otherwise. |

### dislikeSuggestion

```
suspend fun dislikeSuggestion(suggestionId: String): Boolean
```

Dislikes the `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion` with the given `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#dislikeSuggestion(kotlin.String)`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | true if the dislike is successful, false otherwise. |

### likeSuggestion

```
suspend fun likeSuggestion(suggestionId: String): Boolean
```

Likes the `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion` with the given `https://developers.home.google.com/reference/kotlin/com/google/home/automation/HasSuggestions#likeSuggestion(kotlin.String)`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | true if the like is successful, false otherwise. |

### suggestions

```
suspend fun suggestions(): Set<AutomationSuggestion>
```

Returns all the `https://developers.home.google.com/reference/kotlin/com/google/home/automation/AutomationSuggestion` instances for the receiver.