Class LiveConfig.Builder (0.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LiveConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LiveConfig.Builder
Overrides

build()

public LiveConfig build()
Returns
TypeDescription
LiveConfig

buildPartial()

public LiveConfig buildPartial()
Returns
TypeDescription
LiveConfig

clear()

public LiveConfig.Builder clear()
Returns
TypeDescription
LiveConfig.Builder
Overrides

clearAdTagUri()

public LiveConfig.Builder clearAdTagUri()

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Returns
TypeDescription
LiveConfig.Builder

This builder for chaining.

clearAdTracking()

public LiveConfig.Builder clearAdTracking()

Required. Determines how the ads are tracked. If gam_live_config is set, the value must be CLIENT because the IMA SDK handles ad tracking.

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

Returns
TypeDescription
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
TypeDescription
LiveConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LiveConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LiveConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LiveConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LiveConfig.Builder
Overrides

clearPrefetchConfig()

public LiveConfig.Builder clearPrefetchConfig()

The configuration for prefetching ads.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
LiveConfig.Builder

This builder for chaining.

clone()

public LiveConfig.Builder clone()
Returns
TypeDescription
LiveConfig.Builder
Overrides

getAdTagUri()

public String getAdTagUri()

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Returns
TypeDescription
String

The adTagUri.

getAdTagUriBytes()

public ByteString getAdTagUriBytes()

The default ad tag associated with this live stream config.

string ad_tag_uri = 3;

Returns
TypeDescription
ByteString

The bytes for adTagUri.

getAdTracking()

public AdTracking getAdTracking()

Required. Determines how the ads are tracked. If gam_live_config is set, the value must be CLIENT because the IMA SDK handles ad tracking.

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

Returns
TypeDescription
AdTracking

The adTracking.

getAdTrackingValue()

public int getAdTrackingValue()

Required. Determines how the ads are tracked. If gam_live_config is set, the value must be CLIENT because the IMA SDK handles ad tracking.

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

Returns
TypeDescription
int

The enum numeric value on the wire for adTracking.

getDefaultInstanceForType()

public LiveConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultSlate.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getPrefetchConfig()

public PrefetchConfig getPrefetchConfig()

The configuration for prefetching ads.

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

Returns
TypeDescription
PrefetchConfig

The prefetchConfig.

getPrefetchConfigBuilder()

public PrefetchConfig.Builder getPrefetchConfigBuilder()

The configuration for prefetching ads.

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

Returns
TypeDescription
PrefetchConfig.Builder

getPrefetchConfigOrBuilder()

public PrefetchConfigOrBuilder getPrefetchConfigOrBuilder()

The configuration for prefetching ads.

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

Returns
TypeDescription
PrefetchConfigOrBuilder

getSourceUri()

public String getSourceUri()

Required. Source URI for the live stream manifest.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the prefetchConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LiveConfig other)

public LiveConfig.Builder mergeFrom(LiveConfig other)
Parameter
NameDescription
otherLiveConfig
Returns
TypeDescription
LiveConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LiveConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LiveConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LiveConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGamLiveConfig
Returns
TypeDescription
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
NameDescription
valuePrefetchConfig
Returns
TypeDescription
LiveConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LiveConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The adTagUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for adTagUri to set.

Returns
TypeDescription
LiveConfig.Builder

This builder for chaining.

setAdTracking(AdTracking value)

public LiveConfig.Builder setAdTracking(AdTracking value)

Required. Determines how the ads are tracked. If gam_live_config is set, the value must be CLIENT because the IMA SDK handles ad tracking.

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

Parameter
NameDescription
valueAdTracking

The adTracking to set.

Returns
TypeDescription
LiveConfig.Builder

This builder for chaining.

setAdTrackingValue(int value)

public LiveConfig.Builder setAdTrackingValue(int value)

Required. Determines how the ads are tracked. If gam_live_config is set, the value must be CLIENT because the IMA SDK handles ad tracking.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The defaultSlate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for defaultSlate to set.

Returns
TypeDescription
LiveConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LiveConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGamLiveConfig
Returns
TypeDescription
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
NameDescription
builderForValueGamLiveConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valuePrefetchConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrefetchConfig.Builder
Returns
TypeDescription
LiveConfig.Builder

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

public LiveConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LiveConfig.Builder
Overrides

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
NameDescription
valueString

The sourceUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sourceUri to set.

Returns
TypeDescription
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
NameDescription
valueLiveConfig.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueLiveConfig.StitchingPolicy

The stitchingPolicy to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
LiveConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LiveConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LiveConfig.Builder
Overrides