# LocationContext.TimeSegment

# LocationContext.TimeSegment


```
class LocationContext.TimeSegment
```

<br />

*** ** * ** ***

A time segment.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/search-in-apps/android/reference/kotlin/com/google/android/libraries/searchinapps/LocationContext.TimeSegment#TimeSegment(java.lang.String)(startTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` |

| ### Public functions |
|---|---|
| `https://developers.google.com/search-in-apps/android/reference/kotlin/com/google/android/libraries/searchinapps/LocationContext.TimeSegment!` | `@https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developers.google.com/search-in-apps/android/reference/kotlin/com/google/android/libraries/searchinapps/LocationContext.TimeSegment#setStartTime(java.lang.String)(startTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Sets the start time. |

## Public constructors

### TimeSegment

```
TimeSegment(startTime: String!)
```

## Public functions

### setStartTime

```
@CanIgnoreReturnValue
fun setStartTime(startTime: String!): LocationContext.TimeSegment!
```

Sets the start time.

| Parameters |
|---|---|
| `startTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | the start time. |

| Returns |
|---|---|
| `https://developers.google.com/search-in-apps/android/reference/kotlin/com/google/android/libraries/searchinapps/LocationContext.TimeSegment!` | the time segment. |