public static final class VideoPosition.Builder extends GeneratedMessage.Builder<VideoPosition.Builder> implements VideoPositionOrBuilderVideo Position Targeting Criterion
Protobuf type google.ads.admanager.v1.VideoPosition
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VideoPosition.BuilderImplements
VideoPositionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public VideoPosition build()| Returns | |
|---|---|
| Type | Description |
VideoPosition |
|
buildPartial()
public VideoPosition buildPartial()| Returns | |
|---|---|
| Type | Description |
VideoPosition |
|
clear()
public VideoPosition.Builder clear()| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
|
clearAdSpot()
public VideoPosition.Builder clearAdSpot() Optional. The resource name of the custom ad spot to target. If set,
bumperType, podPosition, and positionType must be unset. Format:
networks/{network_code}/adSpots/{ad_spot_id}
optional string ad_spot = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
clearBumperType()
public VideoPosition.Builder clearBumperType() Optional. The video bumper type to target. If set, adSpot, podPosition,
and positionType must be unset.
optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
clearMidrollIndex()
public VideoPosition.Builder clearMidrollIndex()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 |
VideoPosition.Builder |
This builder for chaining. |
clearPodPosition()
public VideoPosition.Builder clearPodPosition() Optional. The video position within a pod to target. If set, adSpot,
bumperType, and positionType must be unset.
optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
clearPositionType()
public VideoPosition.Builder clearPositionType()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 |
VideoPosition.Builder |
This builder for chaining. |
clearReverseMidrollIndex()
public VideoPosition.Builder clearReverseMidrollIndex()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 |
VideoPosition.Builder |
This builder for chaining. |
getAdSpot()
public String getAdSpot() Optional. The resource name of the custom ad spot to target. If set,
bumperType, podPosition, and positionType must be unset. Format:
networks/{network_code}/adSpots/{ad_spot_id}
optional string ad_spot = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The adSpot. |
getAdSpotBytes()
public ByteString getAdSpotBytes() Optional. The resource name of the custom ad spot to target. If set,
bumperType, podPosition, and positionType must be unset. Format:
networks/{network_code}/adSpots/{ad_spot_id}
optional string ad_spot = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for adSpot. |
getBumperType()
public TargetedVideoBumperTypeEnum.TargetedVideoBumperType getBumperType() Optional. The video bumper type to target. If set, adSpot, podPosition,
and positionType must be unset.
optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TargetedVideoBumperTypeEnum.TargetedVideoBumperType |
The bumperType. |
getBumperTypeValue()
public int getBumperTypeValue() Optional. The video bumper type to target. If set, adSpot, podPosition,
and positionType must be unset.
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()| Returns | |
|---|---|
| Type | Description |
VideoPosition |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getPodPosition()
public long getPodPosition() Optional. The video position within a pod to target. If set, adSpot,
bumperType, and positionType must be unset.
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];
| Returns | |
|---|---|
| Type | Description |
VideoPositionEnum.VideoPosition |
The positionType. |
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. |
hasAdSpot()
public boolean hasAdSpot() Optional. The resource name of the custom ad spot to target. If set,
bumperType, podPosition, and positionType must be unset. Format:
networks/{network_code}/adSpots/{ad_spot_id}
optional string ad_spot = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the adSpot field is set. |
hasBumperType()
public boolean hasBumperType() Optional. The video bumper type to target. If set, adSpot, podPosition,
and positionType must be unset.
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. If set, adSpot,
bumperType, and positionType must be unset.
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(VideoPosition other)
public VideoPosition.Builder mergeFrom(VideoPosition other)| Parameter | |
|---|---|
| Name | Description |
other |
VideoPosition |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VideoPosition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VideoPosition.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
|
setAdSpot(String value)
public VideoPosition.Builder setAdSpot(String value) Optional. The resource name of the custom ad spot to target. If set,
bumperType, podPosition, and positionType must be unset. Format:
networks/{network_code}/adSpots/{ad_spot_id}
optional string ad_spot = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe adSpot to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setAdSpotBytes(ByteString value)
public VideoPosition.Builder setAdSpotBytes(ByteString value) Optional. The resource name of the custom ad spot to target. If set,
bumperType, podPosition, and positionType must be unset. Format:
networks/{network_code}/adSpots/{ad_spot_id}
optional string ad_spot = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for adSpot to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setBumperType(TargetedVideoBumperTypeEnum.TargetedVideoBumperType value)
public VideoPosition.Builder setBumperType(TargetedVideoBumperTypeEnum.TargetedVideoBumperType value) Optional. The video bumper type to target. If set, adSpot, podPosition,
and positionType must be unset.
optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TargetedVideoBumperTypeEnum.TargetedVideoBumperTypeThe bumperType to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setBumperTypeValue(int value)
public VideoPosition.Builder setBumperTypeValue(int value) Optional. The video bumper type to target. If set, adSpot, podPosition,
and positionType must be unset.
optional .google.ads.admanager.v1.TargetedVideoBumperTypeEnum.TargetedVideoBumperType bumper_type = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for bumperType to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setMidrollIndex(long value)
public VideoPosition.Builder setMidrollIndex(long value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe midrollIndex to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setPodPosition(long value)
public VideoPosition.Builder setPodPosition(long value) Optional. The video position within a pod to target. If set, adSpot,
bumperType, and positionType must be unset.
optional int64 pod_position = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe podPosition to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setPositionType(VideoPositionEnum.VideoPosition value)
public VideoPosition.Builder setPositionType(VideoPositionEnum.VideoPosition value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
VideoPositionEnum.VideoPositionThe positionType to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setPositionTypeValue(int value)
public VideoPosition.Builder setPositionTypeValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for positionType to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |
setReverseMidrollIndex(long value)
public VideoPosition.Builder setReverseMidrollIndex(long value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe reverseMidrollIndex to set. |
| Returns | |
|---|---|
| Type | Description |
VideoPosition.Builder |
This builder for chaining. |