Class: Google::Apis::WalletobjectsV1::ObjectIdProp

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObjectIdProp

Returns a new instance of ObjectIdProp.



5833
5834
5835
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5833

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

Instance Attribute Details

#bucket_nameString

The name of the bucket to which this object belongs. Corresponds to the JSON property bucketName

Returns:

  • (String)


5818
5819
5820
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5818

def bucket_name
  @bucket_name
end

#generationFixnum

Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions Corresponds to the JSON property generation

Returns:

  • (Fixnum)


5826
5827
5828
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5826

def generation
  @generation
end

#object_nameString

The name of the object. Corresponds to the JSON property objectName

Returns:

  • (String)


5831
5832
5833
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5831

def object_name
  @object_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5838
5839
5840
5841
5842
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5838

def update!(**args)
  @bucket_name = args[:bucket_name] if args.key?(:bucket_name)
  @generation = args[:generation] if args.key?(:generation)
  @object_name = args[:object_name] if args.key?(:object_name)
end