Class PrefetchConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PrefetchConfig.Builder>
com.google.cloud.video.stitcher.v1.PrefetchConfig.Builder
All Implemented Interfaces:
PrefetchConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PrefetchConfig

public static final class PrefetchConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrefetchConfig.Builder> implements PrefetchConfigOrBuilder
 The configuration for prefetch ads.
 
Protobuf type google.cloud.video.stitcher.v1.PrefetchConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Required.
    The duration in seconds of the part of the break to be prefetched.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Required.
    com.google.protobuf.Duration
    The duration in seconds of the part of the break to be prefetched.
    com.google.protobuf.Duration.Builder
    The duration in seconds of the part of the break to be prefetched.
    com.google.protobuf.DurationOrBuilder
    The duration in seconds of the part of the break to be prefetched.
    boolean
    The duration in seconds of the part of the break to be prefetched.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeInitialAdRequestDuration(com.google.protobuf.Duration value)
    The duration in seconds of the part of the break to be prefetched.
    setEnabled(boolean value)
    Required.
    setInitialAdRequestDuration(com.google.protobuf.Duration value)
    The duration in seconds of the part of the break to be prefetched.
    setInitialAdRequestDuration(com.google.protobuf.Duration.Builder builderForValue)
    The duration in seconds of the part of the break to be prefetched.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PrefetchConfig.Builder>
    • clear

      public PrefetchConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PrefetchConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PrefetchConfig.Builder>
    • getDefaultInstanceForType

      public PrefetchConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PrefetchConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PrefetchConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PrefetchConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrefetchConfig.Builder>
    • mergeFrom

      public PrefetchConfig.Builder mergeFrom(PrefetchConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PrefetchConfig.Builder>
    • mergeFrom

      public PrefetchConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrefetchConfig.Builder>
      Throws:
      IOException
    • getEnabled

      public boolean getEnabled()
       Required. Indicates whether the option to prefetch ad requests is enabled.
       
      bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEnabled in interface PrefetchConfigOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public PrefetchConfig.Builder setEnabled(boolean value)
       Required. Indicates whether the option to prefetch ad requests is enabled.
       
      bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

      public PrefetchConfig.Builder clearEnabled()
       Required. Indicates whether the option to prefetch ad requests is enabled.
       
      bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasInitialAdRequestDuration

      public 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;
      Specified by:
      hasInitialAdRequestDuration in interface PrefetchConfigOrBuilder
      Returns:
      Whether the initialAdRequestDuration field is set.
    • getInitialAdRequestDuration

      public 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;
      Specified by:
      getInitialAdRequestDuration in interface PrefetchConfigOrBuilder
      Returns:
      The initialAdRequestDuration.
    • setInitialAdRequestDuration

      public PrefetchConfig.Builder setInitialAdRequestDuration(com.google.protobuf.Duration value)
       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;
    • setInitialAdRequestDuration

      public PrefetchConfig.Builder setInitialAdRequestDuration(com.google.protobuf.Duration.Builder builderForValue)
       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;
    • mergeInitialAdRequestDuration

      public PrefetchConfig.Builder mergeInitialAdRequestDuration(com.google.protobuf.Duration value)
       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;
    • clearInitialAdRequestDuration

      public PrefetchConfig.Builder clearInitialAdRequestDuration()
       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;
    • getInitialAdRequestDurationBuilder

      public com.google.protobuf.Duration.Builder getInitialAdRequestDurationBuilder()
       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;
    • getInitialAdRequestDurationOrBuilder

      public 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;
      Specified by:
      getInitialAdRequestDurationOrBuilder in interface PrefetchConfigOrBuilder