Class: Google::Cloud::Video::LiveStream::V1::Asset

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

An asset represents a video or an image.

Defined Under Namespace

Modules: State Classes: ImageAsset, LabelsEntry, VideoAsset

Instance Attribute Summary collapse

Instance Attribute Details

#crc32c::String

Returns Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of the Cloud Storage Objects resource. If crc32c is omitted or left empty when the asset is created, this field is filled by the crc32c checksum of the Cloud Storage object indicated by VideoAsset.uri or ImageAsset.uri. If crc32c is set, the asset can't be created if the crc32c value does not match with the crc32c checksum of the Cloud Storage object indicated by VideoAsset.uri or ImageAsset.uri.

Returns:

  • (::String)

    Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of the Cloud Storage Objects resource. If crc32c is omitted or left empty when the asset is created, this field is filled by the crc32c checksum of the Cloud Storage object indicated by VideoAsset.uri or ImageAsset.uri. If crc32c is set, the asset can't be created if the crc32c value does not match with the crc32c checksum of the Cloud Storage object indicated by VideoAsset.uri or ImageAsset.uri.



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

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

Returns Output only. The creation time.

Returns:



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

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

Returns Output only. Only present when state is ERROR. The reason for the error state of the asset.

Returns:

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

    Output only. Only present when state is ERROR. The reason for the error state of the asset.



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

#image::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset

Returns ImageAsset represents an image.

Returns:



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

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

Returns User-defined key/value metadata.

Returns:

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

    User-defined key/value metadata.



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

#name::String

Returns The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}.

Returns:

  • (::String)

    The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}.



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

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

Returns Output only. The state of the asset resource.

Returns:



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

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

Returns Output only. The update time.

Returns:



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end

#video::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset

Returns VideoAsset represents a video.

Returns:



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
# File 'proto_docs/google/cloud/video/livestream/v1/resources.rb', line 821

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

  # VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and
  # FLV. The supported video codec is H264. The supported audio codecs are
  # AAC, AC3, MP2, and MP3.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the video. The format is `gs://my-bucket/my-object`.
  class VideoAsset
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Image represents an image. The supported formats are JPEG, PNG.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Cloud Storage URI of the image. The format is `gs://my-bucket/my-object`.
  class ImageAsset
    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 the asset resource.
  module State
    # State is not specified.
    STATE_UNSPECIFIED = 0

    # The asset is being created.
    CREATING = 1

    # The asset is ready for use.
    ACTIVE = 2

    # The asset is being deleted.
    DELETING = 3

    # The asset has an error.
    ERROR = 4
  end
end