# Interface Overlay.AnimationStaticOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.Overlay.AnimationStaticOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.video.transcoder.v1.Overlay.AnimationStaticOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.video.transcoder.v1.Overlay.AnimationStaticOrBuilder)

    public static interface Overlay.AnimationStaticOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getStartTimeOffset()

    public abstract Duration getStartTimeOffset()

The time to start displaying the overlay object, in seconds. Default: 0

`.google.protobuf.Duration start_time_offset = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The startTimeOffset. |

### getStartTimeOffsetOrBuilder()

    public abstract DurationOrBuilder getStartTimeOffsetOrBuilder()

The time to start displaying the overlay object, in seconds. Default: 0

`.google.protobuf.Duration start_time_offset = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getXy()

    public abstract Overlay.NormalizedCoordinate getXy()

Normalized coordinates based on output video resolution. Valid
values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay
object. For example, use the x and y coordinates {0,0} to position the
top-left corner of the overlay animation in the top-left corner of the
output video.

`.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate xy = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate` | The xy. |

### getXyOrBuilder()

    public abstract Overlay.NormalizedCoordinateOrBuilder getXyOrBuilder()

Normalized coordinates based on output video resolution. Valid
values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay
object. For example, use the x and y coordinates {0,0} to position the
top-left corner of the overlay animation in the top-left corner of the
output video.

`.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate xy = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinateOrBuilder` |   |

### hasStartTimeOffset()

    public abstract boolean hasStartTimeOffset()

The time to start displaying the overlay object, in seconds. Default: 0

`.google.protobuf.Duration start_time_offset = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTimeOffset field is set. |

### hasXy()

    public abstract boolean hasXy()

Normalized coordinates based on output video resolution. Valid
values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay
object. For example, use the x and y coordinates {0,0} to position the
top-left corner of the overlay animation in the top-left corner of the
output video.

`.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate xy = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the xy field is set. |