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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
    • clear

      public LiveSession.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LiveSession.Builder>
    • getDefaultInstanceForType

      public LiveSession getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public LiveSession build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LiveSession buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public LiveSession.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LiveSession.Builder>
    • mergeFrom

      public LiveSession.Builder mergeFrom(LiveSession other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LiveSession.Builder>
      Throws:
      IOException
    • 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 interface LiveSessionOrBuilder
      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 interface LiveSessionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public LiveSession.Builder setName(String value)
       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

      public LiveSession.Builder 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

      public LiveSession.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      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 interface LiveSessionOrBuilder
      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 interface LiveSessionOrBuilder
      Returns:
      The bytes for playUri.
    • setPlayUri

      public LiveSession.Builder setPlayUri(String value)
       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

      public LiveSession.Builder 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

      public LiveSession.Builder setPlayUriBytes(com.google.protobuf.ByteString value)
       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: LiveSessionOrBuilder
       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:
      getAdTagMacrosCount in interface LiveSessionOrBuilder
    • containsAdTagMacros

      public boolean containsAdTagMacros(String key)
       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:
      containsAdTagMacros in interface LiveSessionOrBuilder
    • getAdTagMacros

      @Deprecated public Map<String,String> getAdTagMacros()
      Deprecated.
      Use getAdTagMacrosMap() instead.
      Specified by:
      getAdTagMacros in interface LiveSessionOrBuilder
    • getAdTagMacrosMap

      public Map<String,String> 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:
      getAdTagMacrosMap in interface LiveSessionOrBuilder
    • getAdTagMacrosOrDefault

      public String 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. 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 interface LiveSessionOrBuilder
    • getAdTagMacrosOrThrow

      public String getAdTagMacrosOrThrow(String key)
       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:
      getAdTagMacrosOrThrow in interface LiveSessionOrBuilder
    • clearAdTagMacros

      public LiveSession.Builder clearAdTagMacros()
    • removeAdTagMacros

      public LiveSession.Builder 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. 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 public Map<String,String> getMutableAdTagMacros()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAdTagMacros

      public LiveSession.Builder 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. 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

      public LiveSession.Builder 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. 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:
      hasManifestOptions in interface LiveSessionOrBuilder
      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 interface LiveSessionOrBuilder
      Returns:
      The manifestOptions.
    • setManifestOptions

      public LiveSession.Builder setManifestOptions(ManifestOptions value)
       Additional options that affect the output of the manifest.
       
      .google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
    • setManifestOptions

      public LiveSession.Builder setManifestOptions(ManifestOptions.Builder builderForValue)
       Additional options that affect the output of the manifest.
       
      .google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
    • mergeManifestOptions

      public LiveSession.Builder mergeManifestOptions(ManifestOptions value)
       Additional options that affect the output of the manifest.
       
      .google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
    • clearManifestOptions

      public LiveSession.Builder clearManifestOptions()
       Additional options that affect the output of the manifest.
       
      .google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
    • getManifestOptionsBuilder

      public ManifestOptions.Builder getManifestOptionsBuilder()
       Additional options that affect the output of the manifest.
       
      .google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 10;
    • 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 interface LiveSessionOrBuilder
    • 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 interface LiveSessionOrBuilder
      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 interface LiveSessionOrBuilder
      Returns:
      The gamSettings.
    • setGamSettings

      public LiveSession.Builder setGamSettings(LiveSession.GamSettings value)
       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

      public LiveSession.Builder setGamSettings(LiveSession.GamSettings.Builder builderForValue)
       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

      public LiveSession.Builder mergeGamSettings(LiveSession.GamSettings value)
       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

      public LiveSession.Builder 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

      public LiveSession.GamSettings.Builder 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

      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 interface LiveSessionOrBuilder
    • 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 interface LiveSessionOrBuilder
      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 interface LiveSessionOrBuilder
      Returns:
      The bytes for liveConfig.
    • setLiveConfig

      public LiveSession.Builder setLiveConfig(String value)
       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

      public LiveSession.Builder 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

      public LiveSession.Builder setLiveConfigBytes(com.google.protobuf.ByteString value)
       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:
      getAdTrackingValue in interface LiveSessionOrBuilder
      Returns:
      The enum numeric value on the wire for adTracking.
    • setAdTrackingValue

      public LiveSession.Builder setAdTrackingValue(int value)
       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

      public AdTracking 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:
      getAdTracking in interface LiveSessionOrBuilder
      Returns:
      The adTracking.
    • setAdTracking

      public LiveSession.Builder setAdTracking(AdTracking value)
       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

      public LiveSession.Builder 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.