Class LiveConfig.Builder (0.45.0)

public static final class LiveConfig.Builder extends GeneratedMessageV3.Builder<LiveConfig.Builder> implements LiveConfigOrBuilder

Metadata for used to register live configs.

Protobuf type google.cloud.video.stitcher.v1.LiveConfig

Implements

LiveConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LiveConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LiveConfig.Builder
Overrides

build()

public LiveConfig build()
Returns
Type Description
LiveConfig

buildPartial()

public LiveConfig buildPartial()
Returns
Type Description
LiveConfig

clear()

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

clearAdTagUri()

public LiveConfig.Builder clearAdTagUri()

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

clearAdTracking()

public LiveConfig.Builder clearAdTracking()

Required. Determines how the ads are tracked.

.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

clearDefaultSlate()

public LiveConfig.Builder clearDefaultSlate()

This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of slateCreativeId in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId

string default_slate = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LiveConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LiveConfig.Builder
Overrides

clearGamLiveConfig()

public LiveConfig.Builder clearGamLiveConfig()

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Returns
Type Description
LiveConfig.Builder

clearName()

public LiveConfig.Builder clearName()

Output only. The resource name of the live config, in the form of projects/{project}/locations/{location}/liveConfigs/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LiveConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LiveConfig.Builder
Overrides

clearPrefetchConfig()

public LiveConfig.Builder clearPrefetchConfig()

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Returns
Type Description
LiveConfig.Builder

clearSourceFetchOptions()

public LiveConfig.Builder clearSourceFetchOptions()

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Returns
Type Description
LiveConfig.Builder

clearSourceUri()

public LiveConfig.Builder clearSourceUri()

Required. Source URI for the live stream manifest.

string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

clearState()

public LiveConfig.Builder clearState()

Output only. State of the live config.

.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

clearStitchingPolicy()

public LiveConfig.Builder clearStitchingPolicy()

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is CUT_CURRENT.

.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

clone()

public LiveConfig.Builder clone()
Returns
Type Description
LiveConfig.Builder
Overrides

getAdTagUri()

public String getAdTagUri()

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Returns
Type Description
String

The adTagUri.

getAdTagUriBytes()

public ByteString getAdTagUriBytes()

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Returns
Type Description
ByteString

The bytes for adTagUri.

getAdTracking()

public AdTracking getAdTracking()

Required. Determines how the ads are tracked.

.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdTracking

The adTracking.

getAdTrackingValue()

public int getAdTrackingValue()

Required. Determines how the ads are tracked.

.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for adTracking.

getDefaultInstanceForType()

public LiveConfig getDefaultInstanceForType()
Returns
Type Description
LiveConfig

getDefaultSlate()

public String getDefaultSlate()

This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of slateCreativeId in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId

string default_slate = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The defaultSlate.

getDefaultSlateBytes()

public ByteString getDefaultSlateBytes()

This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of slateCreativeId in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId

string default_slate = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for defaultSlate.

getDescriptorForType()

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

getGamLiveConfig()

public GamLiveConfig getGamLiveConfig()

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Returns
Type Description
GamLiveConfig

The gamLiveConfig.

getGamLiveConfigBuilder()

public GamLiveConfig.Builder getGamLiveConfigBuilder()

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Returns
Type Description
GamLiveConfig.Builder

getGamLiveConfigOrBuilder()

public GamLiveConfigOrBuilder getGamLiveConfigOrBuilder()

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Returns
Type Description
GamLiveConfigOrBuilder

getName()

public String getName()

Output only. The resource name of the live config, in the form of projects/{project}/locations/{location}/liveConfigs/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the live config, in the form of projects/{project}/locations/{location}/liveConfigs/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getPrefetchConfig()

public PrefetchConfig getPrefetchConfig()

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Returns
Type Description
PrefetchConfig

The prefetchConfig.

getPrefetchConfigBuilder()

public PrefetchConfig.Builder getPrefetchConfigBuilder()

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Returns
Type Description
PrefetchConfig.Builder

getPrefetchConfigOrBuilder()

public PrefetchConfigOrBuilder getPrefetchConfigOrBuilder()

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Returns
Type Description
PrefetchConfigOrBuilder

getSourceFetchOptions()

public FetchOptions getSourceFetchOptions()

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Returns
Type Description
FetchOptions

The sourceFetchOptions.

getSourceFetchOptionsBuilder()

public FetchOptions.Builder getSourceFetchOptionsBuilder()

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Returns
Type Description
FetchOptions.Builder

getSourceFetchOptionsOrBuilder()

public FetchOptionsOrBuilder getSourceFetchOptionsOrBuilder()

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Returns
Type Description
FetchOptionsOrBuilder

getSourceUri()

public String getSourceUri()

Required. Source URI for the live stream manifest.

string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sourceUri.

getSourceUriBytes()

public ByteString getSourceUriBytes()

Required. Source URI for the live stream manifest.

string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sourceUri.

getState()

public LiveConfig.State getState()

Output only. State of the live config.

.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LiveConfig.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the live config.

.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getStitchingPolicy()

public LiveConfig.StitchingPolicy getStitchingPolicy()

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is CUT_CURRENT.

.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;

Returns
Type Description
LiveConfig.StitchingPolicy

The stitchingPolicy.

getStitchingPolicyValue()

public int getStitchingPolicyValue()

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is CUT_CURRENT.

.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;

Returns
Type Description
int

The enum numeric value on the wire for stitchingPolicy.

hasGamLiveConfig()

public boolean hasGamLiveConfig()

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Returns
Type Description
boolean

Whether the gamLiveConfig field is set.

hasPrefetchConfig()

public boolean hasPrefetchConfig()

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Returns
Type Description
boolean

Whether the prefetchConfig field is set.

hasSourceFetchOptions()

public boolean hasSourceFetchOptions()

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Returns
Type Description
boolean

Whether the sourceFetchOptions field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LiveConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGamLiveConfig(GamLiveConfig value)

public LiveConfig.Builder mergeGamLiveConfig(GamLiveConfig value)

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Parameter
Name Description
value GamLiveConfig
Returns
Type Description
LiveConfig.Builder

mergePrefetchConfig(PrefetchConfig value)

public LiveConfig.Builder mergePrefetchConfig(PrefetchConfig value)

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Parameter
Name Description
value PrefetchConfig
Returns
Type Description
LiveConfig.Builder

mergeSourceFetchOptions(FetchOptions value)

public LiveConfig.Builder mergeSourceFetchOptions(FetchOptions value)

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Parameter
Name Description
value FetchOptions
Returns
Type Description
LiveConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LiveConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LiveConfig.Builder
Overrides

setAdTagUri(String value)

public LiveConfig.Builder setAdTagUri(String value)

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Parameter
Name Description
value String

The adTagUri to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setAdTagUriBytes(ByteString value)

public LiveConfig.Builder setAdTagUriBytes(ByteString value)

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Parameter
Name Description
value ByteString

The bytes for adTagUri to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setAdTracking(AdTracking value)

public LiveConfig.Builder setAdTracking(AdTracking value)

Required. Determines how the ads are tracked.

.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AdTracking

The adTracking to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setAdTrackingValue(int value)

public LiveConfig.Builder setAdTrackingValue(int value)

Required. Determines how the ads are tracked.

.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setDefaultSlate(String value)

public LiveConfig.Builder setDefaultSlate(String value)

This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of slateCreativeId in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId

string default_slate = 7 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The defaultSlate to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setDefaultSlateBytes(ByteString value)

public LiveConfig.Builder setDefaultSlateBytes(ByteString value)

This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of slateCreativeId in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId

string default_slate = 7 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for defaultSlate to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LiveConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LiveConfig.Builder
Overrides

setGamLiveConfig(GamLiveConfig value)

public LiveConfig.Builder setGamLiveConfig(GamLiveConfig value)

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Parameter
Name Description
value GamLiveConfig
Returns
Type Description
LiveConfig.Builder

setGamLiveConfig(GamLiveConfig.Builder builderForValue)

public LiveConfig.Builder setGamLiveConfig(GamLiveConfig.Builder builderForValue)

Additional metadata used to register a live stream with Google Ad Manager (GAM)

.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;

Parameter
Name Description
builderForValue GamLiveConfig.Builder
Returns
Type Description
LiveConfig.Builder

setName(String value)

public LiveConfig.Builder setName(String value)

Output only. The resource name of the live config, in the form of projects/{project}/locations/{location}/liveConfigs/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LiveConfig.Builder setNameBytes(ByteString value)

Output only. The resource name of the live config, in the form of projects/{project}/locations/{location}/liveConfigs/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setPrefetchConfig(PrefetchConfig value)

public LiveConfig.Builder setPrefetchConfig(PrefetchConfig value)

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Parameter
Name Description
value PrefetchConfig
Returns
Type Description
LiveConfig.Builder

setPrefetchConfig(PrefetchConfig.Builder builderForValue)

public LiveConfig.Builder setPrefetchConfig(PrefetchConfig.Builder builderForValue)

The configuration for prefetching ads.

.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;

Parameter
Name Description
builderForValue PrefetchConfig.Builder
Returns
Type Description
LiveConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LiveConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LiveConfig.Builder
Overrides

setSourceFetchOptions(FetchOptions value)

public LiveConfig.Builder setSourceFetchOptions(FetchOptions value)

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Parameter
Name Description
value FetchOptions
Returns
Type Description
LiveConfig.Builder

setSourceFetchOptions(FetchOptions.Builder builderForValue)

public LiveConfig.Builder setSourceFetchOptions(FetchOptions.Builder builderForValue)

Options for fetching source manifests and segments.

.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;

Parameter
Name Description
builderForValue FetchOptions.Builder
Returns
Type Description
LiveConfig.Builder

setSourceUri(String value)

public LiveConfig.Builder setSourceUri(String value)

Required. Source URI for the live stream manifest.

string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sourceUri to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setSourceUriBytes(ByteString value)

public LiveConfig.Builder setSourceUriBytes(ByteString value)

Required. Source URI for the live stream manifest.

string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sourceUri to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setState(LiveConfig.State value)

public LiveConfig.Builder setState(LiveConfig.State value)

Output only. State of the live config.

.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LiveConfig.State

The state to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setStateValue(int value)

public LiveConfig.Builder setStateValue(int value)

Output only. State of the live config.

.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setStitchingPolicy(LiveConfig.StitchingPolicy value)

public LiveConfig.Builder setStitchingPolicy(LiveConfig.StitchingPolicy value)

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is CUT_CURRENT.

.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;

Parameter
Name Description
value LiveConfig.StitchingPolicy

The stitchingPolicy to set.

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setStitchingPolicyValue(int value)

public LiveConfig.Builder setStitchingPolicyValue(int value)

Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is CUT_CURRENT.

.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;

Parameter
Name Description
value int

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

Returns
Type Description
LiveConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LiveConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LiveConfig.Builder
Overrides