public final class PrefetchConfig extends GeneratedMessageV3 implements PrefetchConfigOrBuilder
The configuration for prefetch ads.
Protobuf type google.cloud.video.stitcher.v1.PrefetchConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INITIAL_AD_REQUEST_DURATION_FIELD_NUMBER
public static final int INITIAL_AD_REQUEST_DURATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static PrefetchConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PrefetchConfig.Builder newBuilder()
newBuilder(PrefetchConfig prototype)
public static PrefetchConfig.Builder newBuilder(PrefetchConfig prototype)
public static PrefetchConfig parseDelimitedFrom(InputStream input)
public static PrefetchConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PrefetchConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrefetchConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PrefetchConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrefetchConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrefetchConfig parseFrom(CodedInputStream input)
public static PrefetchConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrefetchConfig parseFrom(InputStream input)
public static PrefetchConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PrefetchConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PrefetchConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PrefetchConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public PrefetchConfig getDefaultInstanceForType()
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.
|
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;
getParserForType()
public Parser<PrefetchConfig> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PrefetchConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PrefetchConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public PrefetchConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides