Class DaiSession.AdPod (0.58.0)

public static final class DaiSession.AdPod extends GeneratedMessage implements DaiSession.AdPodOrBuilder

Information about a single decisioned ad pod in this session. This message pertains to the smallest unit of ads to insert in a session, and might be a pod fragment.

Protobuf type google.ads.admanager.v1.DaiSession.AdPod

Static Fields

AD_BREAK_ID_FIELD_NUMBER

public static final int AD_BREAK_ID_FIELD_NUMBER
Field Value
Type Description
int

AD_REQUEST_KEY_FIELD_NUMBER

public static final int AD_REQUEST_KEY_FIELD_NUMBER
Field Value
Type Description
int

CREATIVES_FIELD_NUMBER

public static final int CREATIVES_FIELD_NUMBER
Field Value
Type Description
int

LABEL_FIELD_NUMBER

public static final int LABEL_FIELD_NUMBER
Field Value
Type Description
int

PREFETCH_STAGE_FIELD_NUMBER

public static final int PREFETCH_STAGE_FIELD_NUMBER
Field Value
Type Description
int

REQUESTED_BREAK_TYPE_FIELD_NUMBER

public static final int REQUESTED_BREAK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DaiSession.AdPod getDefaultInstance()
Returns
Type Description
DaiSession.AdPod

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DaiSession.AdPod.Builder newBuilder()
Returns
Type Description
DaiSession.AdPod.Builder

newBuilder(DaiSession.AdPod prototype)

public static DaiSession.AdPod.Builder newBuilder(DaiSession.AdPod prototype)
Parameter
Name Description
prototype DaiSession.AdPod
Returns
Type Description
DaiSession.AdPod.Builder

parseDelimitedFrom(InputStream input)

public static DaiSession.AdPod parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DaiSession.AdPod parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DaiSession.AdPod parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DaiSession.AdPod parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DaiSession.AdPod parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DaiSession.AdPod parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DaiSession.AdPod parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DaiSession.AdPod parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DaiSession.AdPod parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DaiSession.AdPod parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DaiSession.AdPod parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DaiSession.AdPod parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DaiSession.AdPod
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DaiSession.AdPod> parser()
Returns
Type Description
Parser<AdPod>

Methods

containsCreatives(long key)

public boolean containsCreatives(long key)

Output only. The creatives in this ad pod. Keyed by a unique ID used to reference this creative from a different submessage.

map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key long
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdBreakId()

public String getAdBreakId()

Output only. Publisher-provided or DAI-generated break ID for the Ad break API or pod serving API.

optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The adBreakId.

getAdBreakIdBytes()

public ByteString getAdBreakIdBytes()

Output only. Publisher-provided or DAI-generated break ID for the Ad break API or pod serving API.

optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for adBreakId.

getAdRequestKey()

public long getAdRequestKey()

Output only. Ad request ID that links to the ad request that resulted in this ad pod.

optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The adRequestKey.

getCreatives() (deprecated)

public Map<Long,DaiSession.Creative> getCreatives()

Use #getCreativesMap() instead.

Returns
Type Description
Map<Long,Creative>

getCreativesCount()

public int getCreativesCount()

Output only. The creatives in this ad pod. Keyed by a unique ID used to reference this creative from a different submessage.

map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getCreativesMap()

public Map<Long,DaiSession.Creative> getCreativesMap()

Output only. The creatives in this ad pod. Keyed by a unique ID used to reference this creative from a different submessage.

map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<Long,Creative>

getCreativesOrDefault(long key, DaiSession.Creative defaultValue)

public DaiSession.Creative getCreativesOrDefault(long key, DaiSession.Creative defaultValue)

Output only. The creatives in this ad pod. Keyed by a unique ID used to reference this creative from a different submessage.

map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key long
defaultValue DaiSession.Creative
Returns
Type Description
DaiSession.Creative

getCreativesOrThrow(long key)

public DaiSession.Creative getCreativesOrThrow(long key)

Output only. The creatives in this ad pod. Keyed by a unique ID used to reference this creative from a different submessage.

map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key long
Returns
Type Description
DaiSession.Creative

getDefaultInstanceForType()

public DaiSession.AdPod getDefaultInstanceForType()
Returns
Type Description
DaiSession.AdPod

getLabel()

public String getLabel()

Output only. Descriptive label for this ad pod, used to distinguish ad pods from one another in this session. e.g. "midroll-1", "2".

optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Output only. Descriptive label for this ad pod, used to distinguish ad pods from one another in this session. e.g. "midroll-1", "2".

optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for label.

getParserForType()

public Parser<DaiSession.AdPod> getParserForType()
Returns
Type Description
Parser<AdPod>
Overrides

getPrefetchStage()

public PrefetchStageTypeEnum.PrefetchStageType getPrefetchStage()

Output only. Indicates the prefetch stage for this ad pod. If prefetch is not enabled this stage is set to the PrefetchStageType.DISABLED value.

optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrefetchStageTypeEnum.PrefetchStageType

The prefetchStage.

getPrefetchStageValue()

public int getPrefetchStageValue()

Output only. Indicates the prefetch stage for this ad pod. If prefetch is not enabled this stage is set to the PrefetchStageType.DISABLED value.

optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for prefetchStage.

getRequestedBreakType()

public BreakTypeEnum.BreakType getRequestedBreakType()

Output only. Type of ad break this ad pod was decisioned for.

optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BreakTypeEnum.BreakType

The requestedBreakType.

getRequestedBreakTypeValue()

public int getRequestedBreakTypeValue()

Output only. Type of ad break this ad pod was decisioned for.

optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for requestedBreakType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAdBreakId()

public boolean hasAdBreakId()

Output only. Publisher-provided or DAI-generated break ID for the Ad break API or pod serving API.

optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the adBreakId field is set.

hasAdRequestKey()

public boolean hasAdRequestKey()

Output only. Ad request ID that links to the ad request that resulted in this ad pod.

optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the adRequestKey field is set.

hasLabel()

public boolean hasLabel()

Output only. Descriptive label for this ad pod, used to distinguish ad pods from one another in this session. e.g. "midroll-1", "2".

optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the label field is set.

hasPrefetchStage()

public boolean hasPrefetchStage()

Output only. Indicates the prefetch stage for this ad pod. If prefetch is not enabled this stage is set to the PrefetchStageType.DISABLED value.

optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the prefetchStage field is set.

hasRequestedBreakType()

public boolean hasRequestedBreakType()

Output only. Type of ad break this ad pod was decisioned for.

optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the requestedBreakType field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DaiSession.AdPod.Builder newBuilderForType()
Returns
Type Description
DaiSession.AdPod.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DaiSession.AdPod.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DaiSession.AdPod.Builder
Overrides

toBuilder()

public DaiSession.AdPod.Builder toBuilder()
Returns
Type Description
DaiSession.AdPod.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException