Class HlsSettings.Builder (0.54.0)

public static final class HlsSettings.Builder extends GeneratedMessage.Builder<HlsSettings.Builder> implements HlsSettingsOrBuilder

LiveStream settings that are specific to the HTTP live streaming (HLS) protocol.

Protobuf type google.ads.admanager.v1.HlsSettings

Static Methods

getDescriptor()

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

Methods

build()

public HlsSettings build()
Returns
Type Description
HlsSettings

buildPartial()

public HlsSettings buildPartial()
Returns
Type Description
HlsSettings

clear()

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

clearMasterPlaylistSettings()

public HlsSettings.Builder clearMasterPlaylistSettings()

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HlsSettings.Builder

clearPlaylistType()

public HlsSettings.Builder clearPlaylistType()

Immutable. Indicates the type of the playlist associated with this live stream. The playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. Will default to LIVE.

optional .google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType playlist_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
HlsSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public HlsSettings getDefaultInstanceForType()
Returns
Type Description
HlsSettings

getDescriptorForType()

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

getMasterPlaylistSettings()

public MasterPlaylistSettings getMasterPlaylistSettings()

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MasterPlaylistSettings

The masterPlaylistSettings.

getMasterPlaylistSettingsBuilder()

public MasterPlaylistSettings.Builder getMasterPlaylistSettingsBuilder()

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MasterPlaylistSettings.Builder

getMasterPlaylistSettingsOrBuilder()

public MasterPlaylistSettingsOrBuilder getMasterPlaylistSettingsOrBuilder()

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MasterPlaylistSettingsOrBuilder

getPlaylistType()

public HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType getPlaylistType()

Immutable. Indicates the type of the playlist associated with this live stream. The playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. Will default to LIVE.

optional .google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType playlist_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType

The playlistType.

getPlaylistTypeValue()

public int getPlaylistTypeValue()

Immutable. Indicates the type of the playlist associated with this live stream. The playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. Will default to LIVE.

optional .google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType playlist_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for playlistType.

hasMasterPlaylistSettings()

public boolean hasMasterPlaylistSettings()

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the masterPlaylistSettings field is set.

hasPlaylistType()

public boolean hasPlaylistType()

Immutable. Indicates the type of the playlist associated with this live stream. The playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. Will default to LIVE.

optional .google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType playlist_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the playlistType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HlsSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMasterPlaylistSettings(MasterPlaylistSettings value)

public HlsSettings.Builder mergeMasterPlaylistSettings(MasterPlaylistSettings value)

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MasterPlaylistSettings
Returns
Type Description
HlsSettings.Builder

setMasterPlaylistSettings(MasterPlaylistSettings value)

public HlsSettings.Builder setMasterPlaylistSettings(MasterPlaylistSettings value)

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MasterPlaylistSettings
Returns
Type Description
HlsSettings.Builder

setMasterPlaylistSettings(MasterPlaylistSettings.Builder builderForValue)

public HlsSettings.Builder setMasterPlaylistSettings(MasterPlaylistSettings.Builder builderForValue)

Optional. The settings for the master playlist. If it is not set will default to a MasterPlaylistSettings with a refresh type of AUTOMATIC.

.google.ads.admanager.v1.MasterPlaylistSettings master_playlist_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue MasterPlaylistSettings.Builder
Returns
Type Description
HlsSettings.Builder

setPlaylistType(HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType value)

public HlsSettings.Builder setPlaylistType(HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType value)

Immutable. Indicates the type of the playlist associated with this live stream. The playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. Will default to LIVE.

optional .google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType playlist_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType

The playlistType to set.

Returns
Type Description
HlsSettings.Builder

This builder for chaining.

setPlaylistTypeValue(int value)

public HlsSettings.Builder setPlaylistTypeValue(int value)

Immutable. Indicates the type of the playlist associated with this live stream. The playlist type is analogous to the EXT-X-PLAYLIST-TYPE HLS tag. Will default to LIVE.

optional .google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistType playlist_type = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

The enum numeric value on the wire for playlistType to set.

Returns
Type Description
HlsSettings.Builder

This builder for chaining.