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

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 user data that is populated by the end users.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserDefined

Returns a new instance of UserDefined.



2889
2890
2891
# File 'lib/google/apis/people_v1/classes.rb', line 2889

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)


2877
2878
2879
# File 'lib/google/apis/people_v1/classes.rb', line 2877

def key
  @key
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2882
2883
2884
# File 'lib/google/apis/people_v1/classes.rb', line 2882

def 
  @metadata
end

#valueString

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

Returns:

  • (String)


2887
2888
2889
# File 'lib/google/apis/people_v1/classes.rb', line 2887

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2894
2895
2896
2897
2898
# File 'lib/google/apis/people_v1/classes.rb', line 2894

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