Interface PrefetchConfigOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    PrefetchConfig, PrefetchConfig.Builder

    public interface PrefetchConfigOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getEnabled()
      Required.
      com.google.protobuf.Duration getInitialAdRequestDuration()
      The duration in seconds of the part of the break to be prefetched.
      com.google.protobuf.DurationOrBuilder getInitialAdRequestDurationOrBuilder()
      The duration in seconds of the part of the break to be prefetched.
      boolean hasInitialAdRequestDuration()
      The duration in seconds of the part of the break to be prefetched.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • 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;