Class 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.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
    implements PrefetchConfigOrBuilder
     The configuration for prefetch ads.
     
    Protobuf type google.cloud.video.stitcher.v1.PrefetchConfig
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public PrefetchConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
      • setField

        public PrefetchConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
      • clearField

        public PrefetchConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
      • clearOneof

        public PrefetchConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
      • setRepeatedField

        public PrefetchConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
      • addRepeatedField

        public PrefetchConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • setUnknownFields

        public final PrefetchConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
      • mergeUnknownFields

        public final PrefetchConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>