Class PrefetchConfig.Builder (0.44.0)

public static final class PrefetchConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrefetchConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrefetchConfig.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public PrefetchConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PrefetchConfig.Builder
Overrides

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PrefetchConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PrefetchConfig.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrefetchConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrefetchConfig.Builder
Overrides

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.

setField(Descriptors.FieldDescriptor field, Object value)

public PrefetchConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrefetchConfig.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrefetchConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PrefetchConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrefetchConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrefetchConfig.Builder
Overrides