Interface PrefetchConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PrefetchConfig,PrefetchConfig.Builder
@Generated
public interface PrefetchConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRequired.com.google.protobuf.DurationThe duration in seconds of the part of the break to be prefetched.com.google.protobuf.DurationOrBuilderThe duration in seconds of the part of the break to be prefetched.booleanThe duration in seconds of the part of the break to be prefetched.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getEnabled
boolean getEnabled()Required. Indicates whether the option to prefetch ad requests is enabled.
bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enabled.
-
hasInitialAdRequestDuration
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:
- Whether the initialAdRequestDuration field is set.
-
getInitialAdRequestDuration
com.google.protobuf.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:
- The initialAdRequestDuration.
-
getInitialAdRequestDurationOrBuilder
com.google.protobuf.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;
-