Class LiveSession.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
com.google.cloud.video.stitcher.v1.LiveSession.Builder
- All Implemented Interfaces:
LiveSessionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LiveSession
public static final class LiveSession.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
implements LiveSessionOrBuilder
Metadata for a live session. The session expires 5 minutes after the client stops fetching the session's playlists.Protobuf type
google.cloud.video.stitcher.v1.LiveSession-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Determines how the ad should be tracked.This field should be set with appropriate values if GAM is being used for ads.Required.Additional options that affect the output of the manifest.Output only.Output only.booleanKey value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.Deprecated.intKey value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.getAdTagMacrosOrDefault(String key, String defaultValue) Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.Determines how the ad should be tracked.intDetermines how the ad should be tracked.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThis field should be set with appropriate values if GAM is being used for ads.This field should be set with appropriate values if GAM is being used for ads.This field should be set with appropriate values if GAM is being used for ads.Required.com.google.protobuf.ByteStringRequired.Additional options that affect the output of the manifest.Additional options that affect the output of the manifest.Additional options that affect the output of the manifest.Deprecated.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanThis field should be set with appropriate values if GAM is being used for ads.booleanAdditional options that affect the output of the manifest.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(LiveSession other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) This field should be set with appropriate values if GAM is being used for ads.Additional options that affect the output of the manifest.putAdTagMacros(String key, String value) Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.putAllAdTagMacros(Map<String, String> values) Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.removeAdTagMacros(String key) Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion.setAdTracking(AdTracking value) Determines how the ad should be tracked.setAdTrackingValue(int value) Determines how the ad should be tracked.This field should be set with appropriate values if GAM is being used for ads.setGamSettings(LiveSession.GamSettings.Builder builderForValue) This field should be set with appropriate values if GAM is being used for ads.setLiveConfig(String value) Required.setLiveConfigBytes(com.google.protobuf.ByteString value) Required.Additional options that affect the output of the manifest.setManifestOptions(ManifestOptions.Builder builderForValue) Additional options that affect the output of the manifest.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPlayUri(String value) Output only.setPlayUriBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LiveSession.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
-
mergeFrom
public LiveSession.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LiveSession.Builder>- Throws:
IOException
-
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:
getNamein 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:
getNameBytesin interfaceLiveSessionOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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:
getPlayUriin 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:
getPlayUriBytesin interfaceLiveSessionOrBuilder- Returns:
- The bytes for playUri.
-
setPlayUri
Output only. The URI to play the live session's ad-stitched stream.
string play_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The playUri to set.- Returns:
- This builder for chaining.
-
clearPlayUri
Output only. The URI to play the live session's ad-stitched stream.
string play_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setPlayUriBytes
Output only. The URI to play the live session's ad-stitched stream.
string play_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for playUri to set.- Returns:
- This builder for chaining.
-
getAdTagMacrosCount
public int getAdTagMacrosCount()Description copied from interface:LiveSessionOrBuilderKey value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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:
getAdTagMacrosCountin interfaceLiveSessionOrBuilder
-
containsAdTagMacros
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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:
containsAdTagMacrosin interfaceLiveSessionOrBuilder
-
getAdTagMacros
Deprecated.UsegetAdTagMacrosMap()instead.- Specified by:
getAdTagMacrosin interfaceLiveSessionOrBuilder
-
getAdTagMacrosMap
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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:
getAdTagMacrosMapin interfaceLiveSessionOrBuilder
-
getAdTagMacrosOrDefault
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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:
getAdTagMacrosOrDefaultin interfaceLiveSessionOrBuilder
-
getAdTagMacrosOrThrow
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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:
getAdTagMacrosOrThrowin interfaceLiveSessionOrBuilder
-
clearAdTagMacros
-
removeAdTagMacros
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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; -
getMutableAdTagMacros
Deprecated.Use alternate mutation accessors instead. -
putAdTagMacros
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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; -
putAllAdTagMacros
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. 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; -
hasManifestOptions
public boolean hasManifestOptions()Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;- Specified by:
hasManifestOptionsin interfaceLiveSessionOrBuilder- Returns:
- Whether the manifestOptions field is set.
-
getManifestOptions
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;- Specified by:
getManifestOptionsin interfaceLiveSessionOrBuilder- Returns:
- The manifestOptions.
-
setManifestOptions
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10; -
setManifestOptions
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10; -
mergeManifestOptions
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10; -
clearManifestOptions
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10; -
getManifestOptionsBuilder
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10; -
getManifestOptionsOrBuilder
Additional options that affect the output of the manifest.
.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;- Specified by:
getManifestOptionsOrBuilderin 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:
hasGamSettingsin interfaceLiveSessionOrBuilder- Returns:
- Whether the gamSettings field is set.
-
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:
getGamSettingsin interfaceLiveSessionOrBuilder- Returns:
- The gamSettings.
-
setGamSettings
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; -
setGamSettings
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; -
mergeGamSettings
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; -
clearGamSettings
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; -
getGamSettingsBuilder
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; -
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:
getGamSettingsOrBuilderin interfaceLiveSessionOrBuilder
-
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:
getLiveConfigin 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:
getLiveConfigBytesin interfaceLiveSessionOrBuilder- Returns:
- The bytes for liveConfig.
-
setLiveConfig
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) = { ... }- Parameters:
value- The liveConfig to set.- Returns:
- This builder for chaining.
-
clearLiveConfig
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) = { ... }- Returns:
- This builder for chaining.
-
setLiveConfigBytes
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) = { ... }- Parameters:
value- The bytes for liveConfig to set.- Returns:
- This builder for chaining.
-
getAdTrackingValue
public int getAdTrackingValue()Determines how the ad should be tracked. This overrides the value set in the live config for this session.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17;- Specified by:
getAdTrackingValuein interfaceLiveSessionOrBuilder- Returns:
- The enum numeric value on the wire for adTracking.
-
setAdTrackingValue
Determines how the ad should be tracked. This overrides the value set in the live config for this session.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17;- Parameters:
value- The enum numeric value on the wire for adTracking to set.- Returns:
- This builder for chaining.
-
getAdTracking
Determines how the ad should be tracked. This overrides the value set in the live config for this session.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17;- Specified by:
getAdTrackingin interfaceLiveSessionOrBuilder- Returns:
- The adTracking.
-
setAdTracking
Determines how the ad should be tracked. This overrides the value set in the live config for this session.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17;- Parameters:
value- The adTracking to set.- Returns:
- This builder for chaining.
-
clearAdTracking
Determines how the ad should be tracked. This overrides the value set in the live config for this session.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17;- Returns:
- This builder for chaining.
-