# Interface Overlay.AnimationFadeOrBuilder (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.AnimationFadeOrBuilder)
- [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.AnimationFadeOrBuilder)
- [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.AnimationFadeOrBuilder)

    public static interface Overlay.AnimationFadeOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEndTimeOffset()

    public abstract Duration getEndTimeOffset()

The time to end the fade animation, in seconds. Default:
`start_time_offset` + 1s

`.google.protobuf.Duration end_time_offset = 4;`

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

### getEndTimeOffsetOrBuilder()

    public abstract DurationOrBuilder getEndTimeOffsetOrBuilder()

The time to end the fade animation, in seconds. Default:
`start_time_offset` + 1s

`.google.protobuf.Duration end_time_offset = 4;`

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

### getFadeType()

    public abstract Overlay.FadeType getFadeType()

Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.

`.google.events.cloud.video.transcoder.v1.Overlay.FadeType fade_type = 1;`

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

### getFadeTypeValue()

    public abstract int getFadeTypeValue()

Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.

`.google.events.cloud.video.transcoder.v1.Overlay.FadeType fade_type = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for fadeType. |

### getStartTimeOffset()

    public abstract Duration getStartTimeOffset()

The time to start the fade animation, in seconds. Default: 0

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

| **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 the fade animation, in seconds. Default: 0

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

| **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 = 2;`

| **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 = 2;`

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

### hasEndTimeOffset()

    public abstract boolean hasEndTimeOffset()

The time to end the fade animation, in seconds. Default:
`start_time_offset` + 1s

`.google.protobuf.Duration end_time_offset = 4;`

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

### hasStartTimeOffset()

    public abstract boolean hasStartTimeOffset()

The time to start the fade animation, in seconds. Default: 0

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

| **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 = 2;`

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