Class PrefetchSettings.Builder (0.54.0)

public static final class PrefetchSettings.Builder extends GeneratedMessage.Builder<PrefetchSettings.Builder> implements PrefetchSettingsOrBuilder

The information needed to prefetch ad requests for an ad break.

Protobuf type google.ads.admanager.v1.PrefetchSettings

Static Methods

getDescriptor()

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

Methods

build()

public PrefetchSettings build()
Returns
Type Description
PrefetchSettings

buildPartial()

public PrefetchSettings buildPartial()
Returns
Type Description
PrefetchSettings

clear()

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

clearStageOneAdRequestDuration()

public PrefetchSettings.Builder clearStageOneAdRequestDuration()

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrefetchSettings.Builder

getDefaultInstanceForType()

public PrefetchSettings getDefaultInstanceForType()
Returns
Type Description
PrefetchSettings

getDescriptorForType()

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

getStageOneAdRequestDuration()

public Duration getStageOneAdRequestDuration()

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The stageOneAdRequestDuration.

getStageOneAdRequestDurationBuilder()

public Duration.Builder getStageOneAdRequestDurationBuilder()

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getStageOneAdRequestDurationOrBuilder()

public DurationOrBuilder getStageOneAdRequestDurationOrBuilder()

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasStageOneAdRequestDuration()

public boolean hasStageOneAdRequestDuration()

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the stageOneAdRequestDuration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrefetchSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStageOneAdRequestDuration(Duration value)

public PrefetchSettings.Builder mergeStageOneAdRequestDuration(Duration value)

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
PrefetchSettings.Builder

setStageOneAdRequestDuration(Duration value)

public PrefetchSettings.Builder setStageOneAdRequestDuration(Duration value)

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
PrefetchSettings.Builder

setStageOneAdRequestDuration(Duration.Builder builderForValue)

public PrefetchSettings.Builder setStageOneAdRequestDuration(Duration.Builder builderForValue)

Optional. The duration of the part of the break to be prefetched.

optional .google.protobuf.Duration stage_one_ad_request_duration = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PrefetchSettings.Builder