Class: Google::Cloud::Video::LiveStream::V1::Clip

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/video/livestream/v1/resources.rb

Overview

Clip is a sub-resource under channel. Each clip represents a clipping operation that generates a VOD playlist from its channel given a set of timestamp ranges.

Defined Under Namespace

Modules: OutputType, State Classes: ClipManifest, LabelsEntry, Slice, TimeSlice

Instance Attribute Summary collapse

Instance Attribute Details

#clip_manifests::Array<::Google::Cloud::Video::LiveStream::V1::Clip::ClipManifest>

Returns Required. A list of clip manifests. Currently only one clip manifest is allowed.

Returns:



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#create_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. The creation timestamp of the clip resource.

Returns:



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#error::Google::Rpc::Status (readonly)

Returns Output only. An error object that describes the reason for the failure. This property only presents when state is FAILED.

Returns:

  • (::Google::Rpc::Status)

    Output only. An error object that describes the reason for the failure. This property only presents when state is FAILED.



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#labels::Google::Protobuf::Map{::String => ::String}

Returns The labels associated with this resource. Each label is a key-value pair.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    The labels associated with this resource. Each label is a key-value pair.



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#name::String

Returns The resource name of the clip, in the following format: projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}. {clipId} is a user-specified resource id that conforms to the following criteria:

  1. 1 character minimum, 63 characters maximum
  2. Only contains letters, digits, underscores, and hyphens.

Returns:

  • (::String)

    The resource name of the clip, in the following format: projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}. {clipId} is a user-specified resource id that conforms to the following criteria:

    1. 1 character minimum, 63 characters maximum
    2. Only contains letters, digits, underscores, and hyphens


802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#output_type::Google::Cloud::Video::LiveStream::V1::Clip::OutputType

Returns Optional. OutputType of the clip. If not specified, the default value is MANIFEST.

Returns:



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#output_uri::String

Returns Specify the output_uri to determine where to place the clip segments and clip manifest files in Cloud Storage. The manifests specified in clip_manifests fields will be placed under this URI. The exact URI of the generated manifests will be provided in clip_manifests.output_uri for each manifest. Example: "output_uri": "gs://my-bucket/clip-outputs" "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8".

Returns:

  • (::String)

    Specify the output_uri to determine where to place the clip segments and clip manifest files in Cloud Storage. The manifests specified in clip_manifests fields will be placed under this URI. The exact URI of the generated manifests will be provided in clip_manifests.output_uri for each manifest. Example: "output_uri": "gs://my-bucket/clip-outputs" "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#slices::Array<::Google::Cloud::Video::LiveStream::V1::Clip::Slice>

Returns The specified ranges of segments to generate a clip.

Returns:



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#start_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. The timestamp when the clip request starts to be processed.

Returns:



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#state::Google::Cloud::Video::LiveStream::V1::Clip::State (readonly)

Returns Output only. The state of the clip.

Returns:



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end

#update_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. The update timestamp of the clip resource.

Returns:



802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 802

class Clip
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
  # range.
  # @!attribute [rw] markin_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-in Unix epoch time in the original live stream manifest.
  # @!attribute [rw] markout_time
  #   @return [::Google::Protobuf::Timestamp]
  #     The mark-out Unix epoch time in the original live stream manifest.
  class TimeSlice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Slice represents a slice of the requested clip.
  # @!attribute [rw] time_slice
  #   @return [::Google::Cloud::Video::LiveStream::V1::Clip::TimeSlice]
  #     A slice in form of a tuple of Unix epoch time.
  class Slice
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ClipManifest identifies a source manifest for the generated clip manifest.
  # @!attribute [rw] manifest_key
  #   @return [::String]
  #     Required. A unique key that identifies a manifest config in the parent
  #     channel. This key is the same as `channel.manifests.key` for the selected
  #     manifest.
  # @!attribute [r] output_uri
  #   @return [::String]
  #     Output only. The output URI of the generated clip manifest. This field
  #     will be populated when the CreateClip request is accepted. Current output
  #     format is provided below but may change in the future. Please read this
  #     field to get the uri to the generated clip manifest. Format:
  #     \\{clip.output_uri}/\\{channel.manifest.fileName} Example:
  #     gs://my-bucket/clip-outputs/main.m3u8
  class ClipManifest
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # State of clipping operation.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The operation is pending to be picked up by the server.
    PENDING = 1

    # The server admitted this create clip request, and
    # outputs are under processing.
    CREATING = 2

    # Outputs are available in the specified Cloud Storage bucket. For
    # additional information, see the `outputs` field.
    SUCCEEDED = 3

    # The operation has failed. For additional information, see the `error`
    # field.
    FAILED = 4
  end

  # OutputType represents the output type of the clip.
  module OutputType
    # OutputType is not specified.
    OUTPUT_TYPE_UNSPECIFIED = 0

    # OutputType is a VOD manifest. This is the default value.
    MANIFEST = 1

    # OutputType is an MP4 file.
    MP4 = 2
  end
end