Class LiveSession
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.video.stitcher.v1.LiveSession
-
- All Implemented Interfaces:
LiveSessionOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class LiveSession extends com.google.protobuf.GeneratedMessageV3 implements LiveSessionOrBuilder
Metadata for a live session. The session expires 5 minutes after the client stops fetching the session's playlists.
Protobuf typegoogle.cloud.video.stitcher.v1.LiveSession
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LiveSession.Builder
Metadata for a live session.static class
LiveSession.GamSettings
Defines fields related to Google Ad Manager (GAM).static interface
LiveSession.GamSettingsOrBuilder
-
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_MACROS_FIELD_NUMBER
static int
GAM_SETTINGS_FIELD_NUMBER
static int
LIVE_CONFIG_FIELD_NUMBER
static int
MANIFEST_OPTIONS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PLAY_URI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsAdTagMacros(String key)
Key value pairs for ad tag macro replacement.boolean
equals(Object obj)
Map<String,String>
getAdTagMacros()
Deprecated.int
getAdTagMacrosCount()
Key value pairs for ad tag macro replacement.Map<String,String>
getAdTagMacrosMap()
Key value pairs for ad tag macro replacement.String
getAdTagMacrosOrDefault(String key, String defaultValue)
Key value pairs for ad tag macro replacement.String
getAdTagMacrosOrThrow(String key)
Key value pairs for ad tag macro replacement.static LiveSession
getDefaultInstance()
LiveSession
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
LiveSession.GamSettings
getGamSettings()
This field should be set with appropriate values if GAM is being used for ads.LiveSession.GamSettingsOrBuilder
getGamSettingsOrBuilder()
This field should be set with appropriate values if GAM is being used for ads.String
getLiveConfig()
Required.com.google.protobuf.ByteString
getLiveConfigBytes()
Required.ManifestOptions
getManifestOptions()
Additional options that affect the output of the manifest.ManifestOptionsOrBuilder
getManifestOptionsOrBuilder()
Additional options that affect the output of the manifest.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<LiveSession>
getParserForType()
String
getPlayUri()
Output only.com.google.protobuf.ByteString
getPlayUriBytes()
Output only.int
getSerializedSize()
boolean
hasGamSettings()
This field should be set with appropriate values if GAM is being used for ads.int
hashCode()
boolean
hasManifestOptions()
Additional options that affect the output of the manifest.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static LiveSession.Builder
newBuilder()
static LiveSession.Builder
newBuilder(LiveSession prototype)
LiveSession.Builder
newBuilderForType()
protected LiveSession.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static LiveSession
parseDelimitedFrom(InputStream input)
static LiveSession
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveSession
parseFrom(byte[] data)
static LiveSession
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveSession
parseFrom(com.google.protobuf.ByteString data)
static LiveSession
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveSession
parseFrom(com.google.protobuf.CodedInputStream input)
static LiveSession
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveSession
parseFrom(InputStream input)
static LiveSession
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LiveSession
parseFrom(ByteBuffer data)
static LiveSession
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<LiveSession>
parser()
LiveSession.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, 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
-
PLAY_URI_FIELD_NUMBER
public static final int PLAY_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AD_TAG_MACROS_FIELD_NUMBER
public static final int AD_TAG_MACROS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MANIFEST_OPTIONS_FIELD_NUMBER
public static final int MANIFEST_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GAM_SETTINGS_FIELD_NUMBER
public static final int GAM_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIVE_CONFIG_FIELD_NUMBER
public static final int LIVE_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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. The name of the live session, in the form of `projects/{project}/locations/{location}/liveSessions/{id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceLiveSessionOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The name of the live session, in the form of `projects/{project}/locations/{location}/liveSessions/{id}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceLiveSessionOrBuilder
- Returns:
- The bytes for name.
-
getPlayUri
public String getPlayUri()
Output only. The URI to play the live session's ad-stitched stream.
string play_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPlayUri
in interfaceLiveSessionOrBuilder
- Returns:
- The playUri.
-
getPlayUriBytes
public com.google.protobuf.ByteString getPlayUriBytes()
Output only. The URI to play the live session's ad-stitched stream.
string play_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPlayUriBytes
in interfaceLiveSessionOrBuilder
- Returns:
- The bytes for playUri.
-
getAdTagMacrosCount
public int getAdTagMacrosCount()
Description copied from interface:LiveSessionOrBuilder
Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"`
map<string, string> ad_tag_macros = 6;
- Specified by:
getAdTagMacrosCount
in interfaceLiveSessionOrBuilder
-
containsAdTagMacros
public boolean containsAdTagMacros(String key)
Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"`
map<string, string> ad_tag_macros = 6;
- Specified by:
containsAdTagMacros
in interfaceLiveSessionOrBuilder
-
getAdTagMacros
@Deprecated public Map<String,String> getAdTagMacros()
Deprecated.UsegetAdTagMacrosMap()
instead.- Specified by:
getAdTagMacros
in interfaceLiveSessionOrBuilder
-
getAdTagMacrosMap
public Map<String,String> getAdTagMacrosMap()
Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"`
map<string, string> ad_tag_macros = 6;
- Specified by:
getAdTagMacrosMap
in interfaceLiveSessionOrBuilder
-
getAdTagMacrosOrDefault
public String getAdTagMacrosOrDefault(String key, String defaultValue)
Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"`
map<string, string> ad_tag_macros = 6;
- Specified by:
getAdTagMacrosOrDefault
in interfaceLiveSessionOrBuilder
-
getAdTagMacrosOrThrow
public String getAdTagMacrosOrThrow(String key)
Key value pairs for ad tag macro replacement. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets. For example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"`
map<string, string> ad_tag_macros = 6;
- Specified by:
getAdTagMacrosOrThrow
in interfaceLiveSessionOrBuilder
-
hasManifestOptions
public boolean hasManifestOptions()
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
- Specified by:
hasManifestOptions
in interfaceLiveSessionOrBuilder
- Returns:
- Whether the manifestOptions field is set.
-
getManifestOptions
public ManifestOptions getManifestOptions()
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
- Specified by:
getManifestOptions
in interfaceLiveSessionOrBuilder
- Returns:
- The manifestOptions.
-
getManifestOptionsOrBuilder
public ManifestOptionsOrBuilder getManifestOptionsOrBuilder()
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
- Specified by:
getManifestOptionsOrBuilder
in interfaceLiveSessionOrBuilder
-
hasGamSettings
public boolean hasGamSettings()
This field should be set with appropriate values if GAM is being used for ads.
.google.cloud.video.stitcher.v1.LiveSession.GamSettings gam_settings = 15;
- Specified by:
hasGamSettings
in interfaceLiveSessionOrBuilder
- Returns:
- Whether the gamSettings field is set.
-
getGamSettings
public LiveSession.GamSettings getGamSettings()
This field should be set with appropriate values if GAM is being used for ads.
.google.cloud.video.stitcher.v1.LiveSession.GamSettings gam_settings = 15;
- Specified by:
getGamSettings
in interfaceLiveSessionOrBuilder
- Returns:
- The gamSettings.
-
getGamSettingsOrBuilder
public LiveSession.GamSettingsOrBuilder getGamSettingsOrBuilder()
This field should be set with appropriate values if GAM is being used for ads.
.google.cloud.video.stitcher.v1.LiveSession.GamSettings gam_settings = 15;
- Specified by:
getGamSettingsOrBuilder
in interfaceLiveSessionOrBuilder
-
getLiveConfig
public String getLiveConfig()
Required. The resource name of the live config for this session, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.
string live_config = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getLiveConfig
in interfaceLiveSessionOrBuilder
- Returns:
- The liveConfig.
-
getLiveConfigBytes
public com.google.protobuf.ByteString getLiveConfigBytes()
Required. The resource name of the live config for this session, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.
string live_config = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getLiveConfigBytes
in interfaceLiveSessionOrBuilder
- Returns:
- The bytes for liveConfig.
-
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 LiveSession parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveSession parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveSession parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveSession parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveSession parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LiveSession parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LiveSession parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LiveSession parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LiveSession parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static LiveSession parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LiveSession parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public LiveSession.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static LiveSession.Builder newBuilder()
-
newBuilder
public static LiveSession.Builder newBuilder(LiveSession prototype)
-
toBuilder
public LiveSession.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LiveSession.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static LiveSession getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<LiveSession> parser()
-
getParserForType
public com.google.protobuf.Parser<LiveSession> 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 LiveSession getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-