Class: Google::Apis::TranscoderV1beta1::ElementaryStream

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb

Overview

Encoding of an input file such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ElementaryStream

Returns a new instance of ElementaryStream.



555
556
557
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 555

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audio_streamGoogle::Apis::TranscoderV1beta1::AudioStream

Audio stream resource. Corresponds to the JSON property audioStream



538
539
540
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 538

def audio_stream
  @audio_stream
end

#keyString

A unique key for this elementary stream. Corresponds to the JSON property key

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 543

def key
  @key
end

#text_streamGoogle::Apis::TranscoderV1beta1::TextStream

Encoding of a text stream. For example, closed captions or subtitles. Corresponds to the JSON property textStream



548
549
550
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 548

def text_stream
  @text_stream
end

#video_streamGoogle::Apis::TranscoderV1beta1::VideoStream

Video stream resource. Corresponds to the JSON property videoStream



553
554
555
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 553

def video_stream
  @video_stream
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



560
561
562
563
564
565
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 560

def update!(**args)
  @audio_stream = args[:audio_stream] if args.key?(:audio_stream)
  @key = args[:key] if args.key?(:key)
  @text_stream = args[:text_stream] if args.key?(:text_stream)
  @video_stream = args[:video_stream] if args.key?(:video_stream)
end