# Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::TimeSegment (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.0 0.16.1 0.15.0 0.14.1 0.13.1 0.12.0 0.11.1 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.5 Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::TimeSegment.

A time period inside of an example that has a time dimension (e.g. video).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #end_time_offset

    def end_time_offset() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Protobuf-Duration)) --- End of the time segment (exclusive), represented as the duration since the example start.

### #end_time_offset=

    def end_time_offset=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Protobuf-Duration)) --- End of the time segment (exclusive), represented as the duration since the example start.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Protobuf-Duration)) --- End of the time segment (exclusive), represented as the duration since the example start.

### #start_time_offset

    def start_time_offset() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Protobuf-Duration)) --- Start of the time segment (inclusive), represented as the duration since the example start.

### #start_time_offset=

    def start_time_offset=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Protobuf-Duration)) --- Start of the time segment (inclusive), represented as the duration since the example start.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Protobuf-Duration)) --- Start of the time segment (inclusive), represented as the duration since the example start.