Class SegmentSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SegmentSettings.Builder>
com.google.cloud.video.livestream.v1.SegmentSettings.Builder
All Implemented Interfaces:
SegmentSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SegmentSettings

public static final class SegmentSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<SegmentSettings.Builder> implements SegmentSettingsOrBuilder
 Segment settings for `fmp4` and `ts`.
 
Protobuf type google.cloud.video.livestream.v1.SegmentSettings
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Duration of the segments in seconds.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Duration
    Duration of the segments in seconds.
    com.google.protobuf.Duration.Builder
    Duration of the segments in seconds.
    com.google.protobuf.DurationOrBuilder
    Duration of the segments in seconds.
    boolean
    Duration of the segments in seconds.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeSegmentDuration(com.google.protobuf.Duration value)
    Duration of the segments in seconds.
    setSegmentDuration(com.google.protobuf.Duration value)
    Duration of the segments in seconds.
    setSegmentDuration(com.google.protobuf.Duration.Builder builderForValue)
    Duration of the segments in seconds.

    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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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()
    • internalGetFieldAccessorTable

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

      public SegmentSettings.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<SegmentSettings.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<SegmentSettings.Builder>
    • getDefaultInstanceForType

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

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

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

      public SegmentSettings.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<SegmentSettings.Builder>
    • mergeFrom

      public SegmentSettings.Builder mergeFrom(SegmentSettings other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SegmentSettings.Builder>
    • mergeFrom

      public SegmentSettings.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<SegmentSettings.Builder>
      Throws:
      IOException
    • hasSegmentDuration

      public boolean hasSegmentDuration()
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
      Specified by:
      hasSegmentDuration in interface SegmentSettingsOrBuilder
      Returns:
      Whether the segmentDuration field is set.
    • getSegmentDuration

      public com.google.protobuf.Duration getSegmentDuration()
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
      Specified by:
      getSegmentDuration in interface SegmentSettingsOrBuilder
      Returns:
      The segmentDuration.
    • setSegmentDuration

      public SegmentSettings.Builder setSegmentDuration(com.google.protobuf.Duration value)
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
    • setSegmentDuration

      public SegmentSettings.Builder setSegmentDuration(com.google.protobuf.Duration.Builder builderForValue)
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
    • mergeSegmentDuration

      public SegmentSettings.Builder mergeSegmentDuration(com.google.protobuf.Duration value)
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
    • clearSegmentDuration

      public SegmentSettings.Builder clearSegmentDuration()
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
    • getSegmentDurationBuilder

      public com.google.protobuf.Duration.Builder getSegmentDurationBuilder()
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
    • getSegmentDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getSegmentDurationOrBuilder()
       Duration of the segments in seconds. The default is `6s`. Note that
       `segmentDuration` must be greater than or equal to
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
       and `segmentDuration` must be divisible by
       [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
       Valid range is [2s, 20s].
      
       All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
       the same manifest must have the same segment duration.
       
      .google.protobuf.Duration segment_duration = 1;
      Specified by:
      getSegmentDurationOrBuilder in interface SegmentSettingsOrBuilder