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

    public static interface Overlay.ImageOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAlpha()

    public abstract double getAlpha()

Target image opacity. Valid values are from `1.0` (solid, default) to
`0.0` (transparent), exclusive. Set this to a value greater than `0.0`.

`double alpha = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The alpha. |

### getResolution()

    public abstract Overlay.NormalizedCoordinate getResolution()

Normalized image resolution, based on output video resolution. Valid
values: `0.0`--`1.0`. To respect the original image aspect ratio, set
either `x` or `y` to `0.0`. To use the original image resolution, set
both `x` and `y` to `0.0`.

`.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 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 resolution. |

### getResolutionOrBuilder()

    public abstract Overlay.NormalizedCoordinateOrBuilder getResolutionOrBuilder()

Normalized image resolution, based on output video resolution. Valid
values: `0.0`--`1.0`. To respect the original image aspect ratio, set
either `x` or `y` to `0.0`. To use the original image resolution, set
both `x` and `y` to `0.0`.

`.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 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` |   |

### getUri()

    public abstract String getUri()

Required. URI of the image in Cloud Storage. For example,
`gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported.

`string uri = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The uri. |

### getUriBytes()

    public abstract ByteString getUriBytes()

Required. URI of the image in Cloud Storage. For example,
`gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported.

`string uri = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for uri. |

### hasResolution()

    public abstract boolean hasResolution()

Normalized image resolution, based on output video resolution. Valid
values: `0.0`--`1.0`. To respect the original image aspect ratio, set
either `x` or `y` to `0.0`. To use the original image resolution, set
both `x` and `y` to `0.0`.

`.google.events.cloud.video.transcoder.v1.Overlay.NormalizedCoordinate resolution = 2;
`

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