# Interface VideoPositionOrBuilder (0.52.0)

0.52.0 (latest) 0.50.0 0.47.0 0.46.0 0.44.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface VideoPositionOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBumperType()

    public abstract TargetedVideoBumperTypeEnum.TargetedVideoBumperType getBumperType()

Optional. The video bumper type to target. This field must be unset in
order to target a specific video position (e.g. position_type), pod
position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).

`
optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/ad-manager/latest/com.google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType` | The bumperType. |

### getBumperTypeValue()

    public abstract int getBumperTypeValue()

Optional. The video bumper type to target. This field must be unset in
order to target a specific video position (e.g. position_type), pod
position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).

`
optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getMidrollIndex()

    public abstract long getMidrollIndex()

Optional. The index of the mid-roll to target. This field is ignored when
targeting any video position (e.g. position_type) other than MIDROLL.

`optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPodPosition()

    public abstract long getPodPosition()

Optional. The video position within a pod to target. This field must be
unset in order to target a specific video position (e.g. position_type),
bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).

`optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPositionType()

    public abstract VideoPositionEnum.VideoPosition getPositionType()

Optional. The position within a video to target. A video ad can target a
position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
index.

`
optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/ad-manager/latest/com.google.ads.admanager.v1.VideoPositionEnum.VideoPosition` | The positionType. |

### getPositionTypeValue()

    public abstract int getPositionTypeValue()

Optional. The position within a video to target. A video ad can target a
position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
index.

`
optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getReverseMidrollIndex()

    public abstract long getReverseMidrollIndex()

Optional. The index from the back of the pod of the mid-roll to target.
This field is ignored when targeting any video position (e.g.
position_type) other than MIDROLL or if targeting a specific midroll index
(e.g. midroll_index != 0).

`optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasBumperType()

    public abstract boolean hasBumperType()

Optional. The video bumper type to target. This field must be unset in
order to target a specific video position (e.g. position_type), pod
position (e.g. pod_position), or custom ad spot (e.g. custom_spot_id).

`
optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasMidrollIndex()

    public abstract boolean hasMidrollIndex()

Optional. The index of the mid-roll to target. This field is ignored when
targeting any video position (e.g. position_type) other than MIDROLL.

`optional int64 midroll_index = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasPodPosition()

    public abstract boolean hasPodPosition()

Optional. The video position within a pod to target. This field must be
unset in order to target a specific video position (e.g. position_type),
bumper type (e.g. bumper_type), or custom ad spot (e.g. custom_spot_id).

`optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasPositionType()

    public abstract boolean hasPositionType()

Optional. The position within a video to target. A video ad can target a
position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll
index.

`
optional .google.ads.admanager.v1.VideoPositionEnum.VideoPosition position_type = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasReverseMidrollIndex()

    public abstract boolean hasReverseMidrollIndex()

Optional. The index from the back of the pod of the mid-roll to target.
This field is ignored when targeting any video position (e.g.
position_type) other than MIDROLL or if targeting a specific midroll index
(e.g. midroll_index != 0).

`optional int64 reverse_midroll_index = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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