Class: Google::Apis::PeopleV1::ClientData

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

Overview

Arbitrary client data that is populated by clients. Duplicate keys and values are allowed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClientData

Returns a new instance of ClientData.



467
468
469
# File 'lib/google/apis/people_v1/classes.rb', line 467

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

Instance Attribute Details

#keyString

The client specified key of the client data. Corresponds to the JSON property key

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/people_v1/classes.rb', line 455

def key
  @key
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



460
461
462
# File 'lib/google/apis/people_v1/classes.rb', line 460

def 
  @metadata
end

#valueString

The client specified value of the client data. Corresponds to the JSON property value

Returns:

  • (String)


465
466
467
# File 'lib/google/apis/people_v1/classes.rb', line 465

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



472
473
474
475
476
# File 'lib/google/apis/people_v1/classes.rb', line 472

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @metadata = args[:metadata] if args.key?(:metadata)
  @value = args[:value] if args.key?(:value)
end