Class LiveConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.video.stitcher.v1.LiveConfig
-
- All Implemented Interfaces:
LiveConfigOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class LiveConfig extends com.google.protobuf.GeneratedMessageV3 implements LiveConfigOrBuilder
Metadata for used to register live configs.
Protobuf typegoogle.cloud.video.stitcher.v1.LiveConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LiveConfig.Builder
Metadata for used to register live configs.static class
LiveConfig.State
State of the live config.static class
LiveConfig.StitchingPolicy
Defines the ad stitching behavior in case the ad duration does not align exactly with the ad break boundaries.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
AD_TAG_URI_FIELD_NUMBER
static int
AD_TRACKING_FIELD_NUMBER
static int
DEFAULT_SLATE_FIELD_NUMBER
static int
GAM_LIVE_CONFIG_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PREFETCH_CONFIG_FIELD_NUMBER
static int
SOURCE_URI_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
STITCHING_POLICY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAdTagUri()
The default ad tag associated with this live stream config.com.google.protobuf.ByteString
getAdTagUriBytes()
The default ad tag associated with this live stream config.AdTracking
getAdTracking()
Required.int
getAdTrackingValue()
Required.static LiveConfig
getDefaultInstance()
LiveConfig
getDefaultInstanceForType()
String
getDefaultSlate()
This must refer to a slate in the same project.com.google.protobuf.ByteString
getDefaultSlateBytes()
This must refer to a slate in the same project.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
GamLiveConfig
getGamLiveConfig()
Additional metadata used to register a live stream with Google Ad Manager (GAM)GamLiveConfigOrBuilder
getGamLiveConfigOrBuilder()
Additional metadata used to register a live stream with Google Ad Manager (GAM)String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<LiveConfig>
getParserForType()
PrefetchConfig
getPrefetchConfig()
The configuration for prefetching ads.PrefetchConfigOrBuilder
getPrefetchConfigOrBuilder()
The configuration for prefetching ads.int
getSerializedSize()
String
getSourceUri()
Required.com.google.protobuf.ByteString
getSourceUriBytes()
Required.LiveConfig.State
getState()
Output only.int
getStateValue()
Output only.LiveConfig.StitchingPolicy
getStitchingPolicy()
Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries.int
getStitchingPolicyValue()
Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries.boolean
hasGamLiveConfig()
Additional metadata used to register a live stream with Google Ad Manager (GAM)int
hashCode()
boolean
hasPrefetchConfig()
The configuration for prefetching ads.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static LiveConfig.Builder
newBuilder()
static LiveConfig.Builder
newBuilder(LiveConfig prototype)
LiveConfig.Builder
newBuilderForType()
protected LiveConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static LiveConfig
parseDelimitedFrom(InputStream input)
static LiveConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveConfig
parseFrom(byte[] data)
static LiveConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveConfig
parseFrom(com.google.protobuf.ByteString data)
static LiveConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static LiveConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveConfig
parseFrom(InputStream input)
static LiveConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveConfig
parseFrom(ByteBuffer data)
static LiveConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<LiveConfig>
parser()
LiveConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_URI_FIELD_NUMBER
public static final int SOURCE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AD_TAG_URI_FIELD_NUMBER
public static final int AD_TAG_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GAM_LIVE_CONFIG_FIELD_NUMBER
public static final int GAM_LIVE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AD_TRACKING_FIELD_NUMBER
public static final int AD_TRACKING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_SLATE_FIELD_NUMBER
public static final int DEFAULT_SLATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STITCHING_POLICY_FIELD_NUMBER
public static final int STITCHING_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREFETCH_CONFIG_FIELD_NUMBER
public static final int PREFETCH_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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];
- Specified by:
getName
in interfaceLiveConfigOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];
- Specified by:
getNameBytes
in interfaceLiveConfigOrBuilder
- Returns:
- The bytes for name.
-
getSourceUri
public String getSourceUri()
Required. Source URI for the live stream manifest.
string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getSourceUri
in interfaceLiveConfigOrBuilder
- Returns:
- The sourceUri.
-
getSourceUriBytes
public com.google.protobuf.ByteString getSourceUriBytes()
Required. Source URI for the live stream manifest.
string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getSourceUriBytes
in interfaceLiveConfigOrBuilder
- Returns:
- The bytes for sourceUri.
-
getAdTagUri
public String getAdTagUri()
The default ad tag associated with this live stream config.
string ad_tag_uri = 3;
- Specified by:
getAdTagUri
in interfaceLiveConfigOrBuilder
- Returns:
- The adTagUri.
-
getAdTagUriBytes
public com.google.protobuf.ByteString getAdTagUriBytes()
The default ad tag associated with this live stream config.
string ad_tag_uri = 3;
- Specified by:
getAdTagUriBytes
in interfaceLiveConfigOrBuilder
- Returns:
- The bytes for adTagUri.
-
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;
- Specified by:
hasGamLiveConfig
in interfaceLiveConfigOrBuilder
- Returns:
- Whether the gamLiveConfig field is set.
-
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;
- Specified by:
getGamLiveConfig
in interfaceLiveConfigOrBuilder
- Returns:
- 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;
- Specified by:
getGamLiveConfigOrBuilder
in interfaceLiveConfigOrBuilder
-
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];
- Specified by:
getStateValue
in interfaceLiveConfigOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
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];
- Specified by:
getState
in interfaceLiveConfigOrBuilder
- Returns:
- The state.
-
getAdTrackingValue
public int getAdTrackingValue()
Required. Determines how the ads are tracked. If [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.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];
- Specified by:
getAdTrackingValue
in interfaceLiveConfigOrBuilder
- Returns:
- The enum numeric value on the wire for adTracking.
-
getAdTracking
public AdTracking getAdTracking()
Required. Determines how the ads are tracked. If [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.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];
- Specified by:
getAdTracking
in interfaceLiveConfigOrBuilder
- Returns:
- The adTracking.
-
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) = { ... }
- Specified by:
getDefaultSlate
in interfaceLiveConfigOrBuilder
- Returns:
- The defaultSlate.
-
getDefaultSlateBytes
public com.google.protobuf.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) = { ... }
- Specified by:
getDefaultSlateBytes
in interfaceLiveConfigOrBuilder
- Returns:
- The bytes for defaultSlate.
-
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;
- Specified by:
getStitchingPolicyValue
in interfaceLiveConfigOrBuilder
- Returns:
- The enum numeric value on the wire for stitchingPolicy.
-
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;
- Specified by:
getStitchingPolicy
in interfaceLiveConfigOrBuilder
- Returns:
- The stitchingPolicy.
-
hasPrefetchConfig
public boolean hasPrefetchConfig()
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;
- Specified by:
hasPrefetchConfig
in interfaceLiveConfigOrBuilder
- Returns:
- Whether the prefetchConfig field is set.
-
getPrefetchConfig
public PrefetchConfig getPrefetchConfig()
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;
- Specified by:
getPrefetchConfig
in interfaceLiveConfigOrBuilder
- Returns:
- The prefetchConfig.
-
getPrefetchConfigOrBuilder
public PrefetchConfigOrBuilder getPrefetchConfigOrBuilder()
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;
- Specified by:
getPrefetchConfigOrBuilder
in interfaceLiveConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LiveConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LiveConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LiveConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LiveConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static LiveConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LiveConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public LiveConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static LiveConfig.Builder newBuilder()
-
newBuilder
public static LiveConfig.Builder newBuilder(LiveConfig prototype)
-
toBuilder
public LiveConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LiveConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static LiveConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<LiveConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<LiveConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public LiveConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-