Class: Google::Apis::PeopleV1::UserDefined
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::UserDefined
- 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 user data that is populated by the end users.
Instance Attribute Summary collapse
-
#key ⇒ String
The end user specified key of the user defined data.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#value ⇒ String
The end user specified value of the user defined data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserDefined
constructor
A new instance of UserDefined.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserDefined
Returns a new instance of UserDefined.
2906 2907 2908 |
# File 'lib/google/apis/people_v1/classes.rb', line 2906 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The end user specified key of the user defined data.
Corresponds to the JSON property key
2894 2895 2896 |
# File 'lib/google/apis/people_v1/classes.rb', line 2894 def key @key end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
2899 2900 2901 |
# File 'lib/google/apis/people_v1/classes.rb', line 2899 def @metadata end |
#value ⇒ String
The end user specified value of the user defined data.
Corresponds to the JSON property value
2904 2905 2906 |
# File 'lib/google/apis/people_v1/classes.rb', line 2904 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2911 2912 2913 2914 2915 |
# File 'lib/google/apis/people_v1/classes.rb', line 2911 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 |