Class PrefetchConfig.Builder (0.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrefetchConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrefetchConfig.Builder
Overrides

build()

public PrefetchConfig build()
Returns
TypeDescription
PrefetchConfig

buildPartial()

public PrefetchConfig buildPartial()
Returns
TypeDescription
PrefetchConfig

clear()

public PrefetchConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
PrefetchConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PrefetchConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PrefetchConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PrefetchConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PrefetchConfig.Builder
Overrides

clone()

public PrefetchConfig.Builder clone()
Returns
TypeDescription
PrefetchConfig.Builder
Overrides

getDefaultInstanceForType()

public PrefetchConfig getDefaultInstanceForType()
Returns
TypeDescription
PrefetchConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the initialAdRequestDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PrefetchConfig other)

public PrefetchConfig.Builder mergeFrom(PrefetchConfig other)
Parameter
NameDescription
otherPrefetchConfig
Returns
TypeDescription
PrefetchConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrefetchConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrefetchConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PrefetchConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
PrefetchConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrefetchConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
PrefetchConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PrefetchConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PrefetchConfig.Builder

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

public PrefetchConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PrefetchConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrefetchConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrefetchConfig.Builder
Overrides