Class VideoPosition (0.35.0)
public final class VideoPosition extends GeneratedMessageV3 implements VideoPositionOrBuilder
Video Position Targeting Criterion
Protobuf type google.ads.admanager.v1.VideoPosition
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BUMPER_TYPE_FIELD_NUMBER
public static final int BUMPER_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MIDROLL_INDEX_FIELD_NUMBER
public static final int MIDROLL_INDEX_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
POD_POSITION_FIELD_NUMBER
public static final int POD_POSITION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
POSITION_TYPE_FIELD_NUMBER
public static final int POSITION_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REVERSE_MIDROLL_INDEX_FIELD_NUMBER
public static final int REVERSE_MIDROLL_INDEX_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static VideoPosition getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static VideoPosition.Builder newBuilder()
newBuilder(VideoPosition prototype)
public static VideoPosition.Builder newBuilder(VideoPosition prototype)
public static VideoPosition parseDelimitedFrom(InputStream input)
public static VideoPosition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static VideoPosition parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VideoPosition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static VideoPosition parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VideoPosition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VideoPosition parseFrom(CodedInputStream input)
public static VideoPosition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static VideoPosition parseFrom(InputStream input)
public static VideoPosition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static VideoPosition parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VideoPosition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<VideoPosition> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getBumperType()
public 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];
getBumperTypeValue()
public 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 |
int |
The enum numeric value on the wire for bumperType.
|
getDefaultInstanceForType()
public VideoPosition getDefaultInstanceForType()
getMidrollIndex()
public 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 |
long |
The midrollIndex.
|
getParserForType()
public Parser<VideoPosition> getParserForType()
Overrides
getPodPosition()
public 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 |
long |
The podPosition.
|
getPositionType()
public 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];
getPositionTypeValue()
public 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 |
int |
The enum numeric value on the wire for positionType.
|
getReverseMidrollIndex()
public 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 |
long |
The reverseMidrollIndex.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasBumperType()
public 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 |
boolean |
Whether the bumperType field is set.
|
hasMidrollIndex()
public 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 |
boolean |
Whether the midrollIndex field is set.
|
hasPodPosition()
public 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 |
boolean |
Whether the podPosition field is set.
|
hasPositionType()
public 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 |
boolean |
Whether the positionType field is set.
|
hasReverseMidrollIndex()
public 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 |
boolean |
Whether the reverseMidrollIndex field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public VideoPosition.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected VideoPosition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public VideoPosition.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]