class Google::Apis::YoutubePartnerV1::CompositeMedia

A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit go/bigstore- composites.

Attributes

blob_ref[RW]

Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. Corresponds to the JSON property `blobRef` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

blobstore2_info[RW]

Information to read/write to blobstore2. Corresponds to the JSON property `blobstore2Info` @return [Google::Apis::YoutubePartnerV1::Blobstore2Info]

cosmo_binary_reference[RW]

A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field. Corresponds to the JSON property `cosmoBinaryReference` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

crc32c_hash[RW]

crc32.c hash for the payload. Corresponds to the JSON property `crc32cHash` @return [Fixnum]

inline[RW]

Media data, set if reference_type is INLINE Corresponds to the JSON property `inline` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

length[RW]

Size of the data, in bytes Corresponds to the JSON property `length` @return [Fixnum]

md5_hash[RW]

MD5 hash for the payload. Corresponds to the JSON property `md5Hash` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

object_id_prop[RW]

This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see b/8801763. Corresponds to the JSON property `objectId` @return [Google::Apis::YoutubePartnerV1::ObjectIdProp]

path[RW]

Path to the data, set if reference_type is PATH Corresponds to the JSON property `path` @return [String]

reference_type[RW]

Describes what the field reference contains. Corresponds to the JSON property `referenceType` @return [String]

sha1_hash[RW]

SHA-1 hash for the payload. Corresponds to the JSON property `sha1Hash` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_partner_v1/classes.rb, line 1231
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_partner_v1/classes.rb, line 1236
def update!(**args)
  @blob_ref = args[:blob_ref] if args.key?(:blob_ref)
  @blobstore2_info = args[:blobstore2_info] if args.key?(:blobstore2_info)
  @cosmo_binary_reference = args[:cosmo_binary_reference] if args.key?(:cosmo_binary_reference)
  @crc32c_hash = args[:crc32c_hash] if args.key?(:crc32c_hash)
  @inline = args[:inline] if args.key?(:inline)
  @length = args[:length] if args.key?(:length)
  @md5_hash = args[:md5_hash] if args.key?(:md5_hash)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @path = args[:path] if args.key?(:path)
  @reference_type = args[:reference_type] if args.key?(:reference_type)
  @sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
end