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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PrefetchConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PrefetchConfig build()
buildPartial()
public PrefetchConfig buildPartial()
clear()
public PrefetchConfig.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public PrefetchConfig.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public PrefetchConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public PrefetchConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public PrefetchConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PrefetchConfig other)
public PrefetchConfig.Builder mergeFrom(PrefetchConfig other)
public PrefetchConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PrefetchConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PrefetchConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public PrefetchConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PrefetchConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PrefetchConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides