Class LiveConfig (0.21.0)

public final class LiveConfig extends GeneratedMessageV3 implements LiveConfigOrBuilder

Metadata for used to register live configs.

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

Implements

LiveConfigOrBuilder

Static Fields

AD_TAG_URI_FIELD_NUMBER

public static final int AD_TAG_URI_FIELD_NUMBER
Field Value
TypeDescription
int

AD_TRACKING_FIELD_NUMBER

public static final int AD_TRACKING_FIELD_NUMBER
Field Value
TypeDescription
int

DEFAULT_SLATE_FIELD_NUMBER

public static final int DEFAULT_SLATE_FIELD_NUMBER
Field Value
TypeDescription
int

GAM_LIVE_CONFIG_FIELD_NUMBER

public static final int GAM_LIVE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PREFETCH_CONFIG_FIELD_NUMBER

public static final int PREFETCH_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_URI_FIELD_NUMBER

public static final int SOURCE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STITCHING_POLICY_FIELD_NUMBER

public static final int STITCHING_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LiveConfig getDefaultInstance()
Returns
TypeDescription
LiveConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LiveConfig.Builder newBuilder()
Returns
TypeDescription
LiveConfig.Builder

newBuilder(LiveConfig prototype)

public static LiveConfig.Builder newBuilder(LiveConfig prototype)
Parameter
NameDescription
prototypeLiveConfig
Returns
TypeDescription
LiveConfig.Builder

parseDelimitedFrom(InputStream input)

public static LiveConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LiveConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LiveConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LiveConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LiveConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LiveConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LiveConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LiveConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LiveConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LiveConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LiveConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LiveConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LiveConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LiveConfig> parser()
Returns
TypeDescription
Parser<LiveConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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.

getParserForType()

public Parser<LiveConfig> getParserForType()
Returns
TypeDescription
Parser<LiveConfig>
Overrides

getPrefetchConfig()

public PrefetchConfig getPrefetchConfig()

The configuration for prefetching ads.

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

Returns
TypeDescription
PrefetchConfig

The prefetchConfig.

getPrefetchConfigOrBuilder()

public PrefetchConfigOrBuilder getPrefetchConfigOrBuilder()

The configuration for prefetching ads.

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

Returns
TypeDescription
PrefetchConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LiveConfig.Builder newBuilderForType()
Returns
TypeDescription
LiveConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LiveConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LiveConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LiveConfig.Builder toBuilder()
Returns
TypeDescription
LiveConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException