Class: Google::Apis::WalletobjectsV1::CompositeMedia

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CompositeMedia

Returns a new instance of CompositeMedia.



819
820
821
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 819

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

Instance Attribute Details

#blob_refString

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.

Returns:

  • (String)


756
757
758
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 756

def blob_ref
  @blob_ref
end

#blobstore2_infoGoogle::Apis::WalletobjectsV1::Blobstore2Info

Information to read/write to blobstore2. Corresponds to the JSON property blobstore2Info



761
762
763
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 761

def blobstore2_info
  @blobstore2_info
end

#cosmo_binary_referenceString

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.

Returns:

  • (String)


772
773
774
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 772

def cosmo_binary_reference
  @cosmo_binary_reference
end

#crc32c_hashFixnum

crc32.c hash for the payload. Corresponds to the JSON property crc32cHash

Returns:

  • (Fixnum)


777
778
779
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 777

def crc32c_hash
  @crc32c_hash
end

#inlineString

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.

Returns:

  • (String)


783
784
785
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 783

def inline
  @inline
end

#lengthFixnum

Size of the data, in bytes Corresponds to the JSON property length

Returns:

  • (Fixnum)


788
789
790
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 788

def length
  @length
end

#md5_hashString

MD5 hash for the payload. Corresponds to the JSON property md5Hash NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


794
795
796
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 794

def md5_hash
  @md5_hash
end

#object_id_propGoogle::Apis::WalletobjectsV1::ObjectIdProp

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 http://b/8801763. Corresponds to the JSON property objectId



801
802
803
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 801

def object_id_prop
  @object_id_prop
end

#pathString

Path to the data, set if reference_type is PATH Corresponds to the JSON property path

Returns:

  • (String)


806
807
808
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 806

def path
  @path
end

#reference_typeString

Describes what the field reference contains. Corresponds to the JSON property referenceType

Returns:

  • (String)


811
812
813
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 811

def reference_type
  @reference_type
end

#sha1_hashString

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

Returns:

  • (String)


817
818
819
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 817

def sha1_hash
  @sha1_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



824
825
826
827
828
829
830
831
832
833
834
835
836
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 824

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