3.4.0 (latest) 3.3.0 3.2.0 3.1.0 3.0.0 2.0.0 1.1.0 1.0.0

    public sealed class PrefetchConfig : IMessage<PrefetchConfig>, IEquatable<PrefetchConfig>, IDeepCloneable<PrefetchConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Video Stitcher v1 API class PrefetchConfig.

The configuration for prefetch ads.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PrefetchConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PrefetchConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.PrefetchConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PrefetchConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.PrefetchConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PrefetchConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.PrefetchConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Video.Stitcher.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.md.txt)

## Assembly

Google.Cloud.Video.Stitcher.V1.dll

## Constructors

### PrefetchConfig()

    public PrefetchConfig()

### PrefetchConfig(PrefetchConfig)

    public PrefetchConfig(PrefetchConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PrefetchConfig` |

## Properties

### Enabled

    public bool Enabled { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### InitialAdRequestDuration

    public Duration InitialAdRequestDuration { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |