Class PrefetchConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
- com.google.cloud.video.stitcher.v1.PrefetchConfig.Builder
-
- All Implemented Interfaces:
PrefetchConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PrefetchConfig
public static final class PrefetchConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder> implements PrefetchConfigOrBuilder
The configuration for prefetch ads.
Protobuf typegoogle.cloud.video.stitcher.v1.PrefetchConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrefetchConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PrefetchConfigbuild()PrefetchConfigbuildPartial()PrefetchConfig.Builderclear()PrefetchConfig.BuilderclearEnabled()Required.PrefetchConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PrefetchConfig.BuilderclearInitialAdRequestDuration()The duration in seconds of the part of the break to be prefetched.PrefetchConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PrefetchConfig.Builderclone()PrefetchConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetEnabled()Required.com.google.protobuf.DurationgetInitialAdRequestDuration()The duration in seconds of the part of the break to be prefetched.com.google.protobuf.Duration.BuildergetInitialAdRequestDurationBuilder()The duration in seconds of the part of the break to be prefetched.com.google.protobuf.DurationOrBuildergetInitialAdRequestDurationOrBuilder()The duration in seconds of the part of the break to be prefetched.booleanhasInitialAdRequestDuration()The duration in seconds of the part of the break to be prefetched.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PrefetchConfig.BuildermergeFrom(PrefetchConfig other)PrefetchConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PrefetchConfig.BuildermergeFrom(com.google.protobuf.Message other)PrefetchConfig.BuildermergeInitialAdRequestDuration(com.google.protobuf.Duration value)The duration in seconds of the part of the break to be prefetched.PrefetchConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PrefetchConfig.BuildersetEnabled(boolean value)Required.PrefetchConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PrefetchConfig.BuildersetInitialAdRequestDuration(com.google.protobuf.Duration value)The duration in seconds of the part of the break to be prefetched.PrefetchConfig.BuildersetInitialAdRequestDuration(com.google.protobuf.Duration.Builder builderForValue)The duration in seconds of the part of the break to be prefetched.PrefetchConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PrefetchConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
clear
public PrefetchConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
getDefaultInstanceForType
public PrefetchConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PrefetchConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PrefetchConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PrefetchConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
setField
public PrefetchConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
clearField
public PrefetchConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
clearOneof
public PrefetchConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
setRepeatedField
public PrefetchConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
addRepeatedField
public PrefetchConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
mergeFrom
public PrefetchConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PrefetchConfig.Builder>
-
mergeFrom
public PrefetchConfig.Builder mergeFrom(PrefetchConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
mergeFrom
public PrefetchConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PrefetchConfig.Builder>- Throws:
IOException
-
getEnabled
public boolean getEnabled()
Required. Indicates whether the option to prefetch ad requests is enabled.
bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEnabledin interfacePrefetchConfigOrBuilder- Returns:
- The enabled.
-
setEnabled
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];- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasInitialAdRequestDurationin interfacePrefetchConfigOrBuilder- Returns:
- Whether the initialAdRequestDuration field is set.
-
getInitialAdRequestDuration
public com.google.protobuf.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;- Specified by:
getInitialAdRequestDurationin interfacePrefetchConfigOrBuilder- Returns:
- The initialAdRequestDuration.
-
setInitialAdRequestDuration
public PrefetchConfig.Builder setInitialAdRequestDuration(com.google.protobuf.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
public PrefetchConfig.Builder setInitialAdRequestDuration(com.google.protobuf.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;
-
mergeInitialAdRequestDuration
public PrefetchConfig.Builder mergeInitialAdRequestDuration(com.google.protobuf.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;
-
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;
-
getInitialAdRequestDurationBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getInitialAdRequestDurationOrBuilderin interfacePrefetchConfigOrBuilder
-
setUnknownFields
public final PrefetchConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
mergeUnknownFields
public final PrefetchConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
-