# Hole


```
public class Hole implements Parcelable
```

<br />

*** ** * ** ***

A hole in a polygon defined by a list of vertices.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole#Hole(java.util.List<com.google.android.gms.maps3d.model.LatLngAltitude>)(https://developer.android.com/reference/java/util/List.html<https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude> vertices)` Constructor for Hole with parameters for required fields. |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/java/util/List.html<https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude>` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole#getVertices()()` The vertices of the hole. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole#setVertices(java.util.List<com.google.android.gms.maps3d.model.LatLngAltitude>)(https://developer.android.com/reference/java/util/List.html<https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude> vertices)` Sets the vertices of the hole. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole#writeToParcel(android.os.Parcel,int)(https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

| ### Extension functions |
|---|---|
| `final void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/ValidatorsKt.https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole#(com.google.android.gms.maps3d.model.Hole).validate()(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole receiver)` Validates that the given `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole` is correct. |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

### Inherited methods

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `abstract int` `https://developer.android.com/reference/android/os/Parcelable.html#describeContents()()`

## Public constructors

### Hole

```
public Hole(List<LatLngAltitude> vertices)
```

Constructor for Hole with parameters for required fields.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/util/List.html<https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude> vertices` | The vertices of the hole. |

## Public methods

### getVertices

```
public List<LatLngAltitude> getVertices()
```

The vertices of the hole.

### setVertices

```
public void setVertices(List<LatLngAltitude> vertices)
```

Sets the vertices of the hole.

### writeToParcel

```
public void writeToParcel(Parcel dest, int flags)
```

## Extension functions

### ValidatorsKt.validate

```
public final void ValidatorsKt.validate(@NonNull Hole receiver)
```

Validates that the given `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole` is correct.

| Throws |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | If the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Hole` is not valid. |