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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PrefetchConfig
build()
PrefetchConfig
buildPartial()
PrefetchConfig.Builder
clear()
PrefetchConfig.Builder
clearEnabled()
Required.PrefetchConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PrefetchConfig.Builder
clearInitialAdRequestDuration()
The duration in seconds of the part of the break to be prefetched.PrefetchConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PrefetchConfig.Builder
clone()
PrefetchConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getEnabled()
Required.com.google.protobuf.Duration
getInitialAdRequestDuration()
The duration in seconds of the part of the break to be prefetched.com.google.protobuf.Duration.Builder
getInitialAdRequestDurationBuilder()
The duration in seconds of the part of the break to be prefetched.com.google.protobuf.DurationOrBuilder
getInitialAdRequestDurationOrBuilder()
The duration in seconds of the part of the break to be prefetched.boolean
hasInitialAdRequestDuration()
The duration in seconds of the part of the break to be prefetched.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PrefetchConfig.Builder
mergeFrom(PrefetchConfig other)
PrefetchConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PrefetchConfig.Builder
mergeFrom(com.google.protobuf.Message other)
PrefetchConfig.Builder
mergeInitialAdRequestDuration(com.google.protobuf.Duration value)
The duration in seconds of the part of the break to be prefetched.PrefetchConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PrefetchConfig.Builder
setEnabled(boolean value)
Required.PrefetchConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PrefetchConfig.Builder
setInitialAdRequestDuration(com.google.protobuf.Duration value)
The duration in seconds of the part of the break to be prefetched.PrefetchConfig.Builder
setInitialAdRequestDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration in seconds of the part of the break to be prefetched.PrefetchConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PrefetchConfig.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
clear
public PrefetchConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
getDefaultInstanceForType
public PrefetchConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PrefetchConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PrefetchConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PrefetchConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
setField
public PrefetchConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
clearField
public PrefetchConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
clearOneof
public PrefetchConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
setRepeatedField
public PrefetchConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
addRepeatedField
public PrefetchConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
mergeFrom
public PrefetchConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PrefetchConfig.Builder>
-
mergeFrom
public PrefetchConfig.Builder mergeFrom(PrefetchConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getEnabled
in 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:
hasInitialAdRequestDuration
in 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:
getInitialAdRequestDuration
in 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:
getInitialAdRequestDurationOrBuilder
in interfacePrefetchConfigOrBuilder
-
setUnknownFields
public final PrefetchConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
mergeUnknownFields
public final PrefetchConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PrefetchConfig.Builder>
-
-