Interface PrefetchConfigOrBuilder (0.41.0)

public interface PrefetchConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnabled()

public abstract boolean getEnabled()

Required. Indicates whether the option to prefetch ad requests is enabled.

bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

The enabled.

getInitialAdRequestDuration()

public abstract Duration getInitialAdRequestDuration()

The duration in seconds of the part of the break to be prefetched. This field is only relevant if prefetch is enabled. You should set this duration to as long as possible to increase the benefits of prefetching, but not longer than the shortest ad break expected. For example, for a live event with 30s and 60s ad breaks, the initial duration should be set to 30s.

.google.protobuf.Duration initial_ad_request_duration = 2;

Returns
TypeDescription
Duration

The initialAdRequestDuration.

getInitialAdRequestDurationOrBuilder()

public abstract DurationOrBuilder getInitialAdRequestDurationOrBuilder()

The duration in seconds of the part of the break to be prefetched. This field is only relevant if prefetch is enabled. You should set this duration to as long as possible to increase the benefits of prefetching, but not longer than the shortest ad break expected. For example, for a live event with 30s and 60s ad breaks, the initial duration should be set to 30s.

.google.protobuf.Duration initial_ad_request_duration = 2;

Returns
TypeDescription
DurationOrBuilder

hasInitialAdRequestDuration()

public abstract boolean hasInitialAdRequestDuration()

The duration in seconds of the part of the break to be prefetched. This field is only relevant if prefetch is enabled. You should set this duration to as long as possible to increase the benefits of prefetching, but not longer than the shortest ad break expected. For example, for a live event with 30s and 60s ad breaks, the initial duration should be set to 30s.

.google.protobuf.Duration initial_ad_request_duration = 2;

Returns
TypeDescription
boolean

Whether the initialAdRequestDuration field is set.