Class: Google::Apis::PeopleV1::UserDefined

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

Overview

Arbitrary user data that is populated by the end users.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserDefined

Returns a new instance of UserDefined



2261
2262
2263
# File 'generated/google/apis/people_v1/classes.rb', line 2261

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

Instance Attribute Details

#keyString

The end user specified key of the user defined data. Corresponds to the JSON property key

Returns:

  • (String)


2249
2250
2251
# File 'generated/google/apis/people_v1/classes.rb', line 2249

def key
  @key
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2254
2255
2256
# File 'generated/google/apis/people_v1/classes.rb', line 2254

def 
  @metadata
end

#valueString

The end user specified value of the user defined data. Corresponds to the JSON property value

Returns:

  • (String)


2259
2260
2261
# File 'generated/google/apis/people_v1/classes.rb', line 2259

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2266
2267
2268
2269
2270
# File 'generated/google/apis/people_v1/classes.rb', line 2266

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