Class PrefetchConfig.Builder (0.83.0)

public static final class PrefetchConfig.Builder extends GeneratedMessage.Builder<PrefetchConfig.Builder> implements PrefetchConfigOrBuilder

The configuration for prefetch ads.

Protobuf type google.cloud.video.stitcher.v1.PrefetchConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public PrefetchConfig build()
Returns
Type Description
PrefetchConfig

buildPartial()

public PrefetchConfig buildPartial()
Returns
Type Description
PrefetchConfig

clear()

public PrefetchConfig.Builder clear()
Returns
Type Description
PrefetchConfig.Builder
Overrides

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
Type Description
PrefetchConfig.Builder

This builder for chaining.

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;

Returns
Type Description
PrefetchConfig.Builder

getDefaultInstanceForType()

public PrefetchConfig getDefaultInstanceForType()
Returns
Type Description
PrefetchConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

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

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

Returns
Type Description
boolean

The enabled.

getInitialAdRequestDuration()

public 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
Type Description
Duration

The initialAdRequestDuration.

getInitialAdRequestDurationBuilder()

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

Returns
Type Description
Builder

getInitialAdRequestDurationOrBuilder()

public 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
Type Description
DurationOrBuilder

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;

Returns
Type Description
boolean

Whether the initialAdRequestDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrefetchConfig other)

public PrefetchConfig.Builder mergeFrom(PrefetchConfig other)
Parameter
Name Description
other PrefetchConfig
Returns
Type Description
PrefetchConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrefetchConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrefetchConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PrefetchConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrefetchConfig.Builder
Overrides

mergeInitialAdRequestDuration(Duration value)

public PrefetchConfig.Builder mergeInitialAdRequestDuration(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;

Parameter
Name Description
value Duration
Returns
Type Description
PrefetchConfig.Builder

setEnabled(boolean value)

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

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
PrefetchConfig.Builder

This builder for chaining.

setInitialAdRequestDuration(Duration value)

public PrefetchConfig.Builder setInitialAdRequestDuration(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;

Parameter
Name Description
value Duration
Returns
Type Description
PrefetchConfig.Builder

setInitialAdRequestDuration(Duration.Builder builderForValue)

public PrefetchConfig.Builder setInitialAdRequestDuration(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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PrefetchConfig.Builder