| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  | # Copyright 2015 Google Inc. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  | # you may not use this file except in compliance with the License. | 
					
						
							|  |  |  | # You may obtain a copy of the License at | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | #      http://www.apache.org/licenses/LICENSE-2.0 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  | # distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  | # See the License for the specific language governing permissions and | 
					
						
							|  |  |  | # limitations under the License. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require 'date' | 
					
						
							|  |  |  | require 'google/apis/core/base_service' | 
					
						
							|  |  |  | require 'google/apis/core/json_representation' | 
					
						
							|  |  |  | require 'google/apis/core/hashable' | 
					
						
							|  |  |  | require 'google/apis/errors' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module Google | 
					
						
							|  |  |  |   module Apis | 
					
						
							|  |  |  |     module PeopleV1 | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's physical address. May be a P.O. box or street address. All fields | 
					
						
							|  |  |  |       # are optional. | 
					
						
							|  |  |  |       class Address | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The city of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `city` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :city | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The country of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `country` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :country | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country | 
					
						
							|  |  |  |         # code of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `countryCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :country_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The extended address of the address; for example, the apartment number. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `extendedAddress` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :extended_address | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The type of the address translated and formatted in the viewer's | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The unstructured value of the address. If this is not set by the user it will | 
					
						
							|  |  |  |         # be automatically constructed from structured values. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `formattedValue` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_value | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The P.O. box of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `poBox` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :po_box | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The postal code of the address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `postalCode` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :postal_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The region of the address; for example, the state or province. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `region` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :region | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The street address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `streetAddress` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :street_address | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # The type of the address. The type can be custom or one of these predefined | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # values: * `home` * `work` * `other` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @city = args[:city] if args.key?(:city) | 
					
						
							|  |  |  |           @country = args[:country] if args.key?(:country) | 
					
						
							|  |  |  |           @country_code = args[:country_code] if args.key?(:country_code) | 
					
						
							|  |  |  |           @extended_address = args[:extended_address] if args.key?(:extended_address) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @formatted_value = args[:formatted_value] if args.key?(:formatted_value) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @po_box = args[:po_box] if args.key?(:po_box) | 
					
						
							|  |  |  |           @postal_code = args[:postal_code] if args.key?(:postal_code) | 
					
						
							|  |  |  |           @region = args[:region] if args.key?(:region) | 
					
						
							|  |  |  |           @street_address = args[:street_address] if args.key?(:street_address) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's age range. | 
					
						
							|  |  |  |       class AgeRangeType | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The age range. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `ageRange` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :age_range | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @age_range = args[:age_range] if args.key?(:age_range) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # The response to a batch get contact groups request. | 
					
						
							|  |  |  |       class BatchGetContactGroupsResponse | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of responses for each requested contact group resource. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::ContactGroupResponse>] | 
					
						
							|  |  |  |         attr_accessor :responses | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @responses = args[:responses] if args.key?(:responses) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's short biography. | 
					
						
							|  |  |  |       class Biography | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The content type of the biography. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `contentType` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :content_type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The short biography. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @content_type = args[:content_type] if args.key?(:content_type) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's birthday. At least one of the `date` and `text` fields are | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # specified. The `date` and `text` fields typically represent the same date, but | 
					
						
							|  |  |  |       # are not guaranteed to. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Birthday | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-09-12 00:38:48 +00:00
										 |  |  |         # Represents a whole or partial calendar date, e.g. a birthday. The time of day | 
					
						
							|  |  |  |         # and time zone are either specified elsewhere or are not significant. The date | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # is relative to the Proleptic Gregorian Calendar. This can represent: * A full | 
					
						
							|  |  |  |         # date, with non-zero year, month and day values * A month and day value, with a | 
					
						
							|  |  |  |         # zero year, e.g. an anniversary * A year on its own, with zero month and day | 
					
						
							|  |  |  |         # values * A year and month value, with a zero day, e.g. a credit card | 
					
						
							|  |  |  |         # expiration date Related types are google.type.TimeOfDay and `google.protobuf. | 
					
						
							|  |  |  |         # Timestamp`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `date` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Google::Apis::PeopleV1::Date] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :date | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A free-form string representing the user's birthday. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `text` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :text | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @date = args[:date] if args.key?(:date) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @text = args[:text] if args.key?(:text) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # **DEPRECATED**: No data will be returned A person's bragging rights. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class BraggingRights | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The bragging rights; for example, `climbed mount everest`. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |       # A person's calendar URL. | 
					
						
							|  |  |  |       class CalendarUrl | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Output only. The type of the calendar URL translated and formatted in the | 
					
						
							|  |  |  |         # viewer's account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The type of the calendar URL. The type can be custom or one of these | 
					
						
							|  |  |  |         # predefined values: * `home` * `freeBusy` * `work` | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The calendar URL. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `url` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @url = args[:url] if args.key?(:url) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-07 00:38:13 +00:00
										 |  |  |       # Arbitrary client data that is populated by clients. Duplicate keys and values | 
					
						
							|  |  |  |       # are allowed. | 
					
						
							|  |  |  |       class ClientData | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The client specified key of the client data. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `key` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :key | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The client specified value of the client data. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         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 | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A contact group. | 
					
						
							|  |  |  |       class ContactGroup | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. | 
					
						
							|  |  |  |         # Used for web cache validation. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `etag` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :etag | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The name translated and formatted in the viewer's account locale | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # or the `Accept-Language` HTTP header locale for system groups names. Group | 
					
						
							|  |  |  |         # names set by the owner are the same as name. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `formattedName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_name | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The contact group type. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `groupType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :group_type | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The total number of contacts in the group irrespective of max | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # members in specified in the request. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `memberCount` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :member_count | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The list of contact person resource names that are members of the | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # contact group. The field is not populated for LIST requests and can only be | 
					
						
							|  |  |  |         # updated through the [ModifyContactGroupMembers](/people/api/rest/v1/ | 
					
						
							|  |  |  |         # contactgroups/members/modify). | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `memberResourceNames` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :member_resource_names | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # The metadata about a contact group. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::ContactGroupMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The contact group name set by the group owner or a system provided name for | 
					
						
							|  |  |  |         # system groups. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `name` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The resource name for the contact group, assigned by the server. An ASCII | 
					
						
							| 
									
										
										
										
											2020-01-24 00:37:26 +00:00
										 |  |  |         # string, in the form of `contactGroups/`contact_group_id``. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `resourceName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :resource_name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @etag = args[:etag] if args.key?(:etag) | 
					
						
							|  |  |  |           @formatted_name = args[:formatted_name] if args.key?(:formatted_name) | 
					
						
							|  |  |  |           @group_type = args[:group_type] if args.key?(:group_type) | 
					
						
							|  |  |  |           @member_count = args[:member_count] if args.key?(:member_count) | 
					
						
							|  |  |  |           @member_resource_names = args[:member_resource_names] if args.key?(:member_resource_names) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @resource_name = args[:resource_name] if args.key?(:resource_name) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A Google contact group membership. | 
					
						
							|  |  |  |       class ContactGroupMembership | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The contact group ID for the contact group membership. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `contactGroupId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :contact_group_id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-04-25 00:37:02 +00:00
										 |  |  |         # The resource name for the contact group, assigned by the server. An ASCII | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # string, in the form of `contactGroups/`contact_group_id``. Only | 
					
						
							|  |  |  |         # contact_group_resource_name can be used for modifying memberships. Any contact | 
					
						
							|  |  |  |         # group membership can be removed, but only user group or "myContacts" or " | 
					
						
							|  |  |  |         # starred" system groups memberships can be added. A contact must always have at | 
					
						
							|  |  |  |         # least one contact group membership. | 
					
						
							| 
									
										
										
										
											2019-04-25 00:37:02 +00:00
										 |  |  |         # Corresponds to the JSON property `contactGroupResourceName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :contact_group_resource_name | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id) | 
					
						
							| 
									
										
										
										
											2019-04-25 00:37:02 +00:00
										 |  |  |           @contact_group_resource_name = args[:contact_group_resource_name] if args.key?(:contact_group_resource_name) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |       # The metadata about a contact group. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class ContactGroupMetadata | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. True if the contact group resource has been deleted. Populated | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # only for [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) | 
					
						
							|  |  |  |         # requests that include a sync token. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `deleted` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :deleted | 
					
						
							|  |  |  |         alias_method :deleted?, :deleted | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The time the group was last updated. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `updateTime` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :update_time | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @deleted = args[:deleted] if args.key?(:deleted) | 
					
						
							|  |  |  |           @update_time = args[:update_time] if args.key?(:update_time) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |       # The response for a specific contact group. | 
					
						
							|  |  |  |       class ContactGroupResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # A contact group. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `contactGroup` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::ContactGroup] | 
					
						
							|  |  |  |         attr_accessor :contact_group | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The original requested resource name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `requestedResourceName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :requested_resource_name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The `Status` type defines a logical error model that is suitable for different | 
					
						
							|  |  |  |         # programming environments, including REST APIs and RPC APIs. It is used by [ | 
					
						
							|  |  |  |         # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of | 
					
						
							|  |  |  |         # data: error code, error message, and error details. You can find out more | 
					
						
							|  |  |  |         # about this error model and how to work with it in the [API Design Guide](https: | 
					
						
							|  |  |  |         # //cloud.google.com/apis/design/errors). | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `status` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Status] | 
					
						
							|  |  |  |         attr_accessor :status | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @contact_group = args[:contact_group] if args.key?(:contact_group) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @status = args[:status] if args.key?(:status) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-17 00:38:10 +00:00
										 |  |  |       # A request to copy an "Other contact" to my contacts group. | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |       class CopyOtherContactToMyContactsGroupRequest | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Required. A field mask to restrict which fields are copied into the new | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # contact. Valid values are: * emailAddresses * names * phoneNumbers | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |         # Corresponds to the JSON property `copyMask` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :copy_mask | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Optional. A field mask to restrict which fields on the person are returned. | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Multiple fields can be specified by separating them with commas. Defaults to | 
					
						
							|  |  |  |         # the copy mask with metadata and membership fields if not set. Valid values are: | 
					
						
							| 
									
										
										
										
											2020-08-07 00:38:13 +00:00
										 |  |  |         # * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData | 
					
						
							|  |  |  |         # * coverPhotos * emailAddresses * events * externalIds * genders * imClients * | 
					
						
							| 
									
										
										
										
											2020-08-15 00:38:25 +00:00
										 |  |  |         # interests * locales * locations * memberships * metadata * miscKeywords * | 
					
						
							|  |  |  |         # names * nicknames * occupations * organizations * phoneNumbers * photos * | 
					
						
							|  |  |  |         # relations * sipAddresses * skills * urls * userDefined | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |         # Corresponds to the JSON property `readMask` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :read_mask | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Optional. A mask of what source types to return. Defaults to ReadSourceType. | 
					
						
							|  |  |  |         # CONTACT and ReadSourceType.PROFILE if not set. | 
					
						
							| 
									
										
										
										
											2020-06-10 00:38:16 +00:00
										 |  |  |         # Corresponds to the JSON property `sources` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :sources | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @copy_mask = args[:copy_mask] if args.key?(:copy_mask) | 
					
						
							|  |  |  |           @read_mask = args[:read_mask] if args.key?(:read_mask) | 
					
						
							| 
									
										
										
										
											2020-06-10 00:38:16 +00:00
										 |  |  |           @sources = args[:sources] if args.key?(:sources) | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # A person's cover photo. A large image shown on the person's profile page that | 
					
						
							|  |  |  |       # represents who they are or what they care about. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class CoverPhoto | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # True if the cover photo is the default cover photo; false if the cover photo | 
					
						
							|  |  |  |         # is a user-provided cover photo. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `default` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :default | 
					
						
							|  |  |  |         alias_method :default?, :default | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The URL of the cover photo. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `url` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :url | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @default = args[:default] if args.key?(:default) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @url = args[:url] if args.key?(:url) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A request to create a new contact group. | 
					
						
							|  |  |  |       class CreateContactGroupRequest | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2016-02-25 23:16:53 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A contact group. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `contactGroup` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::ContactGroup] | 
					
						
							|  |  |  |         attr_accessor :contact_group | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @contact_group = args[:contact_group] if args.key?(:contact_group) | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-09-12 00:38:48 +00:00
										 |  |  |       # Represents a whole or partial calendar date, e.g. a birthday. The time of day | 
					
						
							|  |  |  |       # and time zone are either specified elsewhere or are not significant. The date | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # is relative to the Proleptic Gregorian Calendar. This can represent: * A full | 
					
						
							|  |  |  |       # date, with non-zero year, month and day values * A month and day value, with a | 
					
						
							|  |  |  |       # zero year, e.g. an anniversary * A year on its own, with zero month and day | 
					
						
							|  |  |  |       # values * A year and month value, with a zero day, e.g. a credit card | 
					
						
							|  |  |  |       # expiration date Related types are google.type.TimeOfDay and `google.protobuf. | 
					
						
							|  |  |  |       # Timestamp`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Date | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if | 
					
						
							|  |  |  |         # specifying a year by itself or a year and month where the day is not | 
					
						
							| 
									
										
										
										
											2018-09-20 00:36:26 +00:00
										 |  |  |         # significant. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `day` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :day | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month | 
					
						
							|  |  |  |         # and day. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `month` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :month | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `year` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Fixnum] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :year | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @day = args[:day] if args.key?(:day) | 
					
						
							|  |  |  |           @month = args[:month] if args.key?(:month) | 
					
						
							|  |  |  |           @year = args[:year] if args.key?(:year) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |       # The response for deleteing a contact's photo. | 
					
						
							|  |  |  |       class DeleteContactPhotoResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Information about a person merged from various data sources such as the | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # authenticated user's contacts and profile data. Most fields can have multiple | 
					
						
							|  |  |  |         # items. The items in a field have no guaranteed order, but each non-empty field | 
					
						
							|  |  |  |         # is guaranteed to have exactly one field with `metadata.primary` set to true. | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |         # Corresponds to the JSON property `person` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Person] | 
					
						
							|  |  |  |         attr_accessor :person | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @person = args[:person] if args.key?(:person) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |       # A G Suite Domain membership. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class DomainMembership | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2016-02-25 23:16:53 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-04-25 00:37:02 +00:00
										 |  |  |         # True if the person is in the viewer's G Suite domain. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `inViewerDomain` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :in_viewer_domain | 
					
						
							|  |  |  |         alias_method :in_viewer_domain?, :in_viewer_domain | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @in_viewer_domain = args[:in_viewer_domain] if args.key?(:in_viewer_domain) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's email address. | 
					
						
							|  |  |  |       class EmailAddress | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The display name of the email. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `displayName` | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :display_name | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The type of the email address translated and formatted in the | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # viewer's account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2016-02-25 23:16:53 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # The type of the email address. The type can be custom or one of these | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # predefined values: * `home` * `work` * `other` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The email address. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @display_name = args[:display_name] if args.key?(:display_name) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # A generic empty message that you can re-use to avoid defining duplicated empty | 
					
						
							|  |  |  |       # messages in your APIs. A typical example is to use it as the request or the | 
					
						
							|  |  |  |       # response type of an API method. For instance: service Foo ` rpc Bar(google. | 
					
						
							|  |  |  |       # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for | 
					
						
							|  |  |  |       # `Empty` is empty JSON object ````. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Empty | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # An event related to the person. | 
					
						
							|  |  |  |       class Event | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-09-12 00:38:48 +00:00
										 |  |  |         # Represents a whole or partial calendar date, e.g. a birthday. The time of day | 
					
						
							|  |  |  |         # and time zone are either specified elsewhere or are not significant. The date | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # is relative to the Proleptic Gregorian Calendar. This can represent: * A full | 
					
						
							|  |  |  |         # date, with non-zero year, month and day values * A month and day value, with a | 
					
						
							|  |  |  |         # zero year, e.g. an anniversary * A year on its own, with zero month and day | 
					
						
							|  |  |  |         # values * A year and month value, with a zero day, e.g. a credit card | 
					
						
							|  |  |  |         # expiration date Related types are google.type.TimeOfDay and `google.protobuf. | 
					
						
							|  |  |  |         # Timestamp`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `date` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Date] | 
					
						
							|  |  |  |         attr_accessor :date | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. The type of the event translated and formatted in the viewer's | 
					
						
							|  |  |  |         # account locale or the `Accept-Language` HTTP header locale. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # The type of the event. The type can be custom or one of these predefined | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # values: * `anniversary` * `other` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2016-02-25 23:16:53 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @date = args[:date] if args.key?(:date) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |       # An identifier from an external entity related to the person. | 
					
						
							|  |  |  |       class ExternalId | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Output only. The type of the event translated and formatted in the viewer's | 
					
						
							|  |  |  |         # account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The type of the external ID. The type can be custom or one of these predefined | 
					
						
							|  |  |  |         # values: * `account` * `customer` * `loginId` * `network` * `organization` | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The value of the external ID. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Metadata about a field. | 
					
						
							|  |  |  |       class FieldMetadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # True if the field is the primary field; false if the field is a secondary | 
					
						
							|  |  |  |         # field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `primary` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :primary | 
					
						
							|  |  |  |         alias_method :primary?, :primary | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The source of a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `source` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Source] | 
					
						
							|  |  |  |         attr_accessor :source | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. True if the field is verified; false if the field is unverified. | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A verified field is typically a name, email address, phone number, or website | 
					
						
							|  |  |  |         # that has been confirmed to be owned by the person. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `verified` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [Boolean] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :verified | 
					
						
							|  |  |  |         alias_method :verified?, :verified | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @primary = args[:primary] if args.key?(:primary) | 
					
						
							|  |  |  |           @source = args[:source] if args.key?(:source) | 
					
						
							|  |  |  |           @verified = args[:verified] if args.key?(:verified) | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |       # The name that should be used to sort the person in a list. | 
					
						
							|  |  |  |       class FileAs | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The file-as value | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's gender. | 
					
						
							|  |  |  |       class Gender | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The type of pronouns that should be used to address the person. The value can | 
					
						
							|  |  |  |         # be custom or one of these predefined values: * `male` * `female` * `other` | 
					
						
							| 
									
										
										
										
											2020-04-13 16:49:10 +00:00
										 |  |  |         # Corresponds to the JSON property `addressMeAs` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :address_me_as | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The value of the gender translated and formatted in the viewer's | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # account locale or the `Accept-Language` HTTP header locale. Unspecified or | 
					
						
							|  |  |  |         # custom value are not localized. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `formattedValue` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_value | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The gender for the person. The gender can be custom or one of these predefined | 
					
						
							|  |  |  |         # values: * `male` * `female` * `unspecified` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2020-04-13 16:49:10 +00:00
										 |  |  |           @address_me_as = args[:address_me_as] if args.key?(:address_me_as) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @formatted_value = args[:formatted_value] if args.key?(:formatted_value) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-01-24 00:37:26 +00:00
										 |  |  |       # The response to a get request for a list of people by resource name. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class GetPeopleResponse | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The response for each requested resource name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `responses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::PersonResponse>] | 
					
						
							|  |  |  |         attr_accessor :responses | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @responses = args[:responses] if args.key?(:responses) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |       # A person's instant messaging client. | 
					
						
							|  |  |  |       class ImClient | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The protocol of the IM client formatted in the viewer's account | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedProtocol` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_protocol | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. The type of the IM client translated and formatted in the viewer' | 
					
						
							|  |  |  |         # s account locale or the `Accept-Language` HTTP header locale. | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         attr_accessor :formatted_type | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # The protocol of the IM client. The protocol can be custom or one of these | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # predefined values: * `aim` * `msn` * `yahoo` * `skype` * `qq` * `googleTalk` * | 
					
						
							|  |  |  |         # `icq` * `jabber` * `netMeeting` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `protocol` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :protocol | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The type of the IM client. The type can be custom or one of these predefined | 
					
						
							|  |  |  |         # values: * `home` * `work` * `other` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The user name used in the IM client. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `username` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :username | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol) | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @protocol = args[:protocol] if args.key?(:protocol) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @username = args[:username] if args.key?(:username) | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # One of the person's interests. | 
					
						
							|  |  |  |       class Interest | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The interest; for example, `stargazing`. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-01-24 00:37:26 +00:00
										 |  |  |       # The response to a request for the authenticated user's connections. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class ListConnectionsResponse | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The list of people that the requestor is connected to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `connections` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Person>] | 
					
						
							|  |  |  |         attr_accessor :connections | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A token, which can be sent as `page_token` to retrieve the next page. If this | 
					
						
							|  |  |  |         # field is omitted, there are no subsequent pages. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A token, which can be sent as `sync_token` to retrieve changes since the last | 
					
						
							|  |  |  |         # request. Request must set `request_sync_token` to return the sync token. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `nextSyncToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_sync_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The total number of items in the list without pagination. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `totalItems` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :total_items | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # **DEPRECATED** (Please use totalItems) The total number of people in the list | 
					
						
							|  |  |  |         # without pagination. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `totalPeople` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :total_people | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @connections = args[:connections] if args.key?(:connections) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) | 
					
						
							|  |  |  |           @total_items = args[:total_items] if args.key?(:total_items) | 
					
						
							|  |  |  |           @total_people = args[:total_people] if args.key?(:total_people) | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # The response to a list contact groups request. | 
					
						
							|  |  |  |       class ListContactGroupsResponse | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The list of contact groups. Members of the contact groups are not populated. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `contactGroups` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::ContactGroup>] | 
					
						
							|  |  |  |         attr_accessor :contact_groups | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The token that can be used to retrieve the next page of results. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The token that can be used to retrieve changes since the last request. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nextSyncToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_sync_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The total number of items in the list without pagination. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `totalItems` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :total_items | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @contact_groups = args[:contact_groups] if args.key?(:contact_groups) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) | 
					
						
							|  |  |  |           @total_items = args[:total_items] if args.key?(:total_items) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |       # The response to a request for the authenticated user's domain directory. | 
					
						
							|  |  |  |       class ListDirectoryPeopleResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A token, which can be sent as `page_token` to retrieve the next page. If this | 
					
						
							|  |  |  |         # field is omitted, there are no subsequent pages. | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A token, which can be sent as `sync_token` to retrieve changes since the last | 
					
						
							|  |  |  |         # request. Request must set `request_sync_token` to return the sync token. | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |         # Corresponds to the JSON property `nextSyncToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_sync_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of people in the domain directory. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `people` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Person>] | 
					
						
							|  |  |  |         attr_accessor :people | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) | 
					
						
							|  |  |  |           @people = args[:people] if args.key?(:people) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-17 00:38:10 +00:00
										 |  |  |       # The response to a request for the authenticated user's "Other contacts". | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |       class ListOtherContactsResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A token, which can be sent as `page_token` to retrieve the next page. If this | 
					
						
							|  |  |  |         # field is omitted, there are no subsequent pages. | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A token, which can be sent as `sync_token` to retrieve changes since the last | 
					
						
							|  |  |  |         # request. Request must set `request_sync_token` to return the sync token. | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |         # Corresponds to the JSON property `nextSyncToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_sync_token | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-17 00:38:10 +00:00
										 |  |  |         # The list of "Other contacts" returned as Person resources. "Other contacts" | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # support a limited subset of fields. See ListOtherContactsRequest.request_mask | 
					
						
							|  |  |  |         # for more detailed information. | 
					
						
							| 
									
										
										
										
											2020-06-03 00:38:28 +00:00
										 |  |  |         # Corresponds to the JSON property `otherContacts` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Person>] | 
					
						
							|  |  |  |         attr_accessor :other_contacts | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) | 
					
						
							|  |  |  |           @other_contacts = args[:other_contacts] if args.key?(:other_contacts) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's locale preference. | 
					
						
							|  |  |  |       class Locale | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) language tag | 
					
						
							|  |  |  |         # representing the locale. | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-15 00:38:25 +00:00
										 |  |  |       # A person's location. | 
					
						
							|  |  |  |       class Location | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The building identifier. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `buildingId` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :building_id | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Whether the location is the current location. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `current` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :current | 
					
						
							|  |  |  |         alias_method :current?, :current | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The individual desk location. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `deskCode` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :desk_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The floor name or number. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `floor` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :floor | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The floor section in `floor_name`. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `floorSection` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :floor_section | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The type of the location. The type can be custom or one of these predefined | 
					
						
							|  |  |  |         # values: * `desk` * `grewUp` | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The free-form value of the location. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @building_id = args[:building_id] if args.key?(:building_id) | 
					
						
							|  |  |  |           @current = args[:current] if args.key?(:current) | 
					
						
							|  |  |  |           @desk_code = args[:desk_code] if args.key?(:desk_code) | 
					
						
							|  |  |  |           @floor = args[:floor] if args.key?(:floor) | 
					
						
							|  |  |  |           @floor_section = args[:floor_section] if args.key?(:floor_section) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-04-25 00:37:02 +00:00
										 |  |  |       # A person's membership in a group. Only contact group memberships can be | 
					
						
							|  |  |  |       # modified. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Membership | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A Google contact group membership. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `contactGroupMembership` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::ContactGroupMembership] | 
					
						
							|  |  |  |         attr_accessor :contact_group_membership | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # A G Suite Domain membership. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `domainMembership` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::DomainMembership] | 
					
						
							|  |  |  |         attr_accessor :domain_membership | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership) | 
					
						
							|  |  |  |           @domain_membership = args[:domain_membership] if args.key?(:domain_membership) | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-01 00:38:24 +00:00
										 |  |  |       # A person's miscellaneous keyword. | 
					
						
							|  |  |  |       class MiscKeyword | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Output only. The type of the miscellaneous keyword translated and formatted in | 
					
						
							|  |  |  |         # the viewer's account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The miscellaneous keyword type. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The value of the miscellaneous keyword. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2018-02-27 00:36:17 +00:00
										 |  |  |       # A request to modify an existing contact group's members. Contacts can be | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # removed from any group but they can only be added to a user group or " | 
					
						
							|  |  |  |       # myContacts" or "starred" system groups. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class ModifyContactGroupMembersRequest | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Optional. The resource names of the contact people to add in the form of ` | 
					
						
							|  |  |  |         # people/`person_id``. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `resourceNamesToAdd` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :resource_names_to_add | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Optional. The resource names of the contact people to remove in the form of ` | 
					
						
							|  |  |  |         # people/`person_id``. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `resourceNamesToRemove` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :resource_names_to_remove | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @resource_names_to_add = args[:resource_names_to_add] if args.key?(:resource_names_to_add) | 
					
						
							|  |  |  |           @resource_names_to_remove = args[:resource_names_to_remove] if args.key?(:resource_names_to_remove) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # The response to a modify contact group members request. | 
					
						
							|  |  |  |       class ModifyContactGroupMembersResponse | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The contact people resource names that cannot be removed from their last | 
					
						
							|  |  |  |         # contact group. | 
					
						
							| 
									
										
										
										
											2019-07-31 00:37:54 +00:00
										 |  |  |         # Corresponds to the JSON property `canNotRemoveLastContactGroupResourceNames` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :can_not_remove_last_contact_group_resource_names | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The contact people resource names that were not found. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `notFoundResourceNames` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :not_found_resource_names | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2019-07-31 00:37:54 +00:00
										 |  |  |           @can_not_remove_last_contact_group_resource_names = args[:can_not_remove_last_contact_group_resource_names] if args.key?(:can_not_remove_last_contact_group_resource_names) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @not_found_resource_names = args[:not_found_resource_names] if args.key?(:not_found_resource_names) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's name. If the name is a mononym, the family name is empty. | 
					
						
							|  |  |  |       class Name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The display name formatted according to the locale specified by | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # the viewer's account or the `Accept-Language` HTTP header. | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `displayName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :display_name | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The display name with the last name first formatted according to | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # the locale specified by the viewer's account or the `Accept-Language` HTTP | 
					
						
							|  |  |  |         # header. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `displayNameLastFirst` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :display_name_last_first | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The family name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `familyName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :family_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The given name. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `givenName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :given_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The honorific prefixes, such as `Mrs.` or `Dr.` | 
					
						
							|  |  |  |         # Corresponds to the JSON property `honorificPrefix` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :honorific_prefix | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The honorific suffixes, such as `Jr.` | 
					
						
							|  |  |  |         # Corresponds to the JSON property `honorificSuffix` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :honorific_suffix | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The middle name(s). | 
					
						
							|  |  |  |         # Corresponds to the JSON property `middleName` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :middle_name | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The family name spelled as it sounds. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneticFamilyName` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :phonetic_family_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The full name spelled as it sounds. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneticFullName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :phonetic_full_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The given name spelled as it sounds. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneticGivenName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :phonetic_given_name | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The honorific prefixes spelled as they sound. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneticHonorificPrefix` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :phonetic_honorific_prefix | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The honorific suffixes spelled as they sound. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneticHonorificSuffix` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :phonetic_honorific_suffix | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The middle name(s) spelled as they sound. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneticMiddleName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :phonetic_middle_name | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-05 00:39:06 +00:00
										 |  |  |         # The free form name value. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `unstructuredName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :unstructured_name | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @display_name = args[:display_name] if args.key?(:display_name) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first) | 
					
						
							|  |  |  |           @family_name = args[:family_name] if args.key?(:family_name) | 
					
						
							|  |  |  |           @given_name = args[:given_name] if args.key?(:given_name) | 
					
						
							|  |  |  |           @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix) | 
					
						
							|  |  |  |           @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @middle_name = args[:middle_name] if args.key?(:middle_name) | 
					
						
							|  |  |  |           @phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name) | 
					
						
							|  |  |  |           @phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name) | 
					
						
							|  |  |  |           @phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name) | 
					
						
							|  |  |  |           @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix) | 
					
						
							|  |  |  |           @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix) | 
					
						
							|  |  |  |           @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name) | 
					
						
							| 
									
										
										
										
											2020-06-05 00:39:06 +00:00
										 |  |  |           @unstructured_name = args[:unstructured_name] if args.key?(:unstructured_name) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's nickname. | 
					
						
							|  |  |  |       class Nickname | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The type of the nickname. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The nickname. | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's occupation. | 
					
						
							|  |  |  |       class Occupation | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The occupation; for example, `carpenter`. | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # A person's past or current organization. Overlapping date ranges are permitted. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Organization | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # True if the organization is the person's current organization; false if the | 
					
						
							|  |  |  |         # organization is a past organization. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `current` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :current | 
					
						
							|  |  |  |         alias_method :current?, :current | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's department at the organization. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `department` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :department | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The domain name associated with the organization; for example, `google.com`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `domain` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :domain | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-09-12 00:38:48 +00:00
										 |  |  |         # Represents a whole or partial calendar date, e.g. a birthday. The time of day | 
					
						
							|  |  |  |         # and time zone are either specified elsewhere or are not significant. The date | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # is relative to the Proleptic Gregorian Calendar. This can represent: * A full | 
					
						
							|  |  |  |         # date, with non-zero year, month and day values * A month and day value, with a | 
					
						
							|  |  |  |         # zero year, e.g. an anniversary * A year on its own, with zero month and day | 
					
						
							|  |  |  |         # values * A year and month value, with a zero day, e.g. a credit card | 
					
						
							|  |  |  |         # expiration date Related types are google.type.TimeOfDay and `google.protobuf. | 
					
						
							|  |  |  |         # Timestamp`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `endDate` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Date] | 
					
						
							|  |  |  |         attr_accessor :end_date | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The type of the organization translated and formatted in the | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # viewer's account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :formatted_type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's job description at the organization. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `jobDescription` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :job_description | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The location of the organization office the person works at. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `location` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :location | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The name of the organization. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `name` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The phonetic name of the organization. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneticName` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :phonetic_name | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-09-12 00:38:48 +00:00
										 |  |  |         # Represents a whole or partial calendar date, e.g. a birthday. The time of day | 
					
						
							|  |  |  |         # and time zone are either specified elsewhere or are not significant. The date | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # is relative to the Proleptic Gregorian Calendar. This can represent: * A full | 
					
						
							|  |  |  |         # date, with non-zero year, month and day values * A month and day value, with a | 
					
						
							|  |  |  |         # zero year, e.g. an anniversary * A year on its own, with zero month and day | 
					
						
							|  |  |  |         # values * A year and month value, with a zero day, e.g. a credit card | 
					
						
							|  |  |  |         # expiration date Related types are google.type.TimeOfDay and `google.protobuf. | 
					
						
							|  |  |  |         # Timestamp`. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `startDate` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Date] | 
					
						
							|  |  |  |         attr_accessor :start_date | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The symbol associated with the organization; for example, a stock ticker | 
					
						
							|  |  |  |         # symbol, abbreviation, or acronym. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `symbol` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :symbol | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's job title at the organization. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `title` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :title | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The type of the organization. The type can be custom or one of these | 
					
						
							|  |  |  |         # predefined values: * `work` * `school` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2016-02-25 23:16:53 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @current = args[:current] if args.key?(:current) | 
					
						
							|  |  |  |           @department = args[:department] if args.key?(:department) | 
					
						
							|  |  |  |           @domain = args[:domain] if args.key?(:domain) | 
					
						
							|  |  |  |           @end_date = args[:end_date] if args.key?(:end_date) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							|  |  |  |           @job_description = args[:job_description] if args.key?(:job_description) | 
					
						
							|  |  |  |           @location = args[:location] if args.key?(:location) | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @name = args[:name] if args.key?(:name) | 
					
						
							|  |  |  |           @phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name) | 
					
						
							|  |  |  |           @start_date = args[:start_date] if args.key?(:start_date) | 
					
						
							|  |  |  |           @symbol = args[:symbol] if args.key?(:symbol) | 
					
						
							|  |  |  |           @title = args[:title] if args.key?(:title) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # Information about a person merged from various data sources such as the | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # authenticated user's contacts and profile data. Most fields can have multiple | 
					
						
							|  |  |  |       # items. The items in a field have no guaranteed order, but each non-empty field | 
					
						
							|  |  |  |       # is guaranteed to have exactly one field with `metadata.primary` set to true. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Person | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's street addresses. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `addresses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Address>] | 
					
						
							|  |  |  |         attr_accessor :addresses | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. **DEPRECATED** (Please use `person.ageRanges` instead) The person' | 
					
						
							|  |  |  |         # s age range. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `ageRange` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :age_range | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The person's age ranges. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `ageRanges` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::AgeRangeType>] | 
					
						
							|  |  |  |         attr_accessor :age_ranges | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |         # The person's biographies. This field is a singleton for contact sources. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `biographies` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Biography>] | 
					
						
							|  |  |  |         attr_accessor :biographies | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |         # The person's birthdays. This field is a singleton for contact sources. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `birthdays` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Birthday>] | 
					
						
							|  |  |  |         attr_accessor :birthdays | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # **DEPRECATED**: No data will be returned The person's bragging rights. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `braggingRights` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::BraggingRights>] | 
					
						
							|  |  |  |         attr_accessor :bragging_rights | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |         # The person's calendar URLs. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `calendarUrls` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::CalendarUrl>] | 
					
						
							|  |  |  |         attr_accessor :calendar_urls | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-07 00:38:13 +00:00
										 |  |  |         # The person's client data. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `clientData` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::ClientData>] | 
					
						
							|  |  |  |         attr_accessor :client_data | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The person's cover photos. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `coverPhotos` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::CoverPhoto>] | 
					
						
							|  |  |  |         attr_accessor :cover_photos | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's email addresses. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `emailAddresses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::EmailAddress>] | 
					
						
							|  |  |  |         attr_accessor :email_addresses | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. | 
					
						
							|  |  |  |         # Used for web cache validation. | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `etag` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :etag | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's events. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `events` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Event>] | 
					
						
							|  |  |  |         attr_accessor :events | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |         # The person's external IDs. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `externalIds` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::ExternalId>] | 
					
						
							|  |  |  |         attr_accessor :external_ids | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |         # The person's file-ases. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `fileAses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::FileAs>] | 
					
						
							|  |  |  |         attr_accessor :file_ases | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |         # The person's genders. This field is a singleton for contact sources. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `genders` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Gender>] | 
					
						
							|  |  |  |         attr_accessor :genders | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's instant messaging clients. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `imClients` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::ImClient>] | 
					
						
							|  |  |  |         attr_accessor :im_clients | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's interests. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `interests` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Interest>] | 
					
						
							|  |  |  |         attr_accessor :interests | 
					
						
							| 
									
										
										
										
											2017-02-13 23:28:52 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's locale preferences. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `locales` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Locale>] | 
					
						
							|  |  |  |         attr_accessor :locales | 
					
						
							| 
									
										
										
										
											2017-02-13 23:28:52 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-15 00:38:25 +00:00
										 |  |  |         # The person's locations. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `locations` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Location>] | 
					
						
							|  |  |  |         attr_accessor :locations | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-04-25 00:37:02 +00:00
										 |  |  |         # The person's group memberships. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `memberships` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Membership>] | 
					
						
							|  |  |  |         attr_accessor :memberships | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # The metadata about a person. | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # @return [Google::Apis::PeopleV1::PersonMetadata] | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2016-02-25 23:16:53 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-01 00:38:24 +00:00
										 |  |  |         # The person's miscellaneous keywords. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `miscKeywords` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::MiscKeyword>] | 
					
						
							|  |  |  |         attr_accessor :misc_keywords | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |         # The person's names. This field is a singleton for contact sources. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `names` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Name>] | 
					
						
							|  |  |  |         attr_accessor :names | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's nicknames. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `nicknames` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Nickname>] | 
					
						
							|  |  |  |         attr_accessor :nicknames | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's occupations. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `occupations` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Occupation>] | 
					
						
							|  |  |  |         attr_accessor :occupations | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's past or current organizations. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `organizations` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Organization>] | 
					
						
							|  |  |  |         attr_accessor :organizations | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's phone numbers. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `phoneNumbers` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::PhoneNumber>] | 
					
						
							|  |  |  |         attr_accessor :phone_numbers | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The person's photos. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `photos` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Photo>] | 
					
						
							|  |  |  |         attr_accessor :photos | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's relations. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `relations` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Relation>] | 
					
						
							|  |  |  |         attr_accessor :relations | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. **DEPRECATED**: No data will be returned The person's | 
					
						
							|  |  |  |         # relationship interests. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `relationshipInterests` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::RelationshipInterest>] | 
					
						
							|  |  |  |         attr_accessor :relationship_interests | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. **DEPRECATED**: No data will be returned The person's | 
					
						
							|  |  |  |         # relationship statuses. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `relationshipStatuses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::RelationshipStatus>] | 
					
						
							|  |  |  |         attr_accessor :relationship_statuses | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-15 00:38:25 +00:00
										 |  |  |         # **DEPRECATED**: (Please use `person.locations` instead) The person's | 
					
						
							|  |  |  |         # residences. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `residences` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Residence>] | 
					
						
							|  |  |  |         attr_accessor :residences | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The resource name for the person, assigned by the server. An ASCII string with | 
					
						
							|  |  |  |         # a max length of 27 characters, in the form of `people/`person_id``. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `resourceName` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :resource_name | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # The person's SIP addresses. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `sipAddresses` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::SipAddress>] | 
					
						
							|  |  |  |         attr_accessor :sip_addresses | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's skills. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `skills` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Skill>] | 
					
						
							|  |  |  |         attr_accessor :skills | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. **DEPRECATED**: No data will be returned The person's taglines. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `taglines` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Tagline>] | 
					
						
							|  |  |  |         attr_accessor :taglines | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The person's associated URLs. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `urls` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Url>] | 
					
						
							|  |  |  |         attr_accessor :urls | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |         # The person's user defined data. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `userDefined` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::UserDefined>] | 
					
						
							|  |  |  |         attr_accessor :user_defined | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @addresses = args[:addresses] if args.key?(:addresses) | 
					
						
							|  |  |  |           @age_range = args[:age_range] if args.key?(:age_range) | 
					
						
							|  |  |  |           @age_ranges = args[:age_ranges] if args.key?(:age_ranges) | 
					
						
							|  |  |  |           @biographies = args[:biographies] if args.key?(:biographies) | 
					
						
							|  |  |  |           @birthdays = args[:birthdays] if args.key?(:birthdays) | 
					
						
							|  |  |  |           @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights) | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |           @calendar_urls = args[:calendar_urls] if args.key?(:calendar_urls) | 
					
						
							| 
									
										
										
										
											2020-08-07 00:38:13 +00:00
										 |  |  |           @client_data = args[:client_data] if args.key?(:client_data) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @cover_photos = args[:cover_photos] if args.key?(:cover_photos) | 
					
						
							|  |  |  |           @email_addresses = args[:email_addresses] if args.key?(:email_addresses) | 
					
						
							|  |  |  |           @etag = args[:etag] if args.key?(:etag) | 
					
						
							|  |  |  |           @events = args[:events] if args.key?(:events) | 
					
						
							| 
									
										
										
										
											2020-07-29 00:37:55 +00:00
										 |  |  |           @external_ids = args[:external_ids] if args.key?(:external_ids) | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |           @file_ases = args[:file_ases] if args.key?(:file_ases) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @genders = args[:genders] if args.key?(:genders) | 
					
						
							|  |  |  |           @im_clients = args[:im_clients] if args.key?(:im_clients) | 
					
						
							|  |  |  |           @interests = args[:interests] if args.key?(:interests) | 
					
						
							|  |  |  |           @locales = args[:locales] if args.key?(:locales) | 
					
						
							| 
									
										
										
										
											2020-08-15 00:38:25 +00:00
										 |  |  |           @locations = args[:locations] if args.key?(:locations) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @memberships = args[:memberships] if args.key?(:memberships) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2020-08-01 00:38:24 +00:00
										 |  |  |           @misc_keywords = args[:misc_keywords] if args.key?(:misc_keywords) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @names = args[:names] if args.key?(:names) | 
					
						
							|  |  |  |           @nicknames = args[:nicknames] if args.key?(:nicknames) | 
					
						
							|  |  |  |           @occupations = args[:occupations] if args.key?(:occupations) | 
					
						
							|  |  |  |           @organizations = args[:organizations] if args.key?(:organizations) | 
					
						
							|  |  |  |           @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers) | 
					
						
							|  |  |  |           @photos = args[:photos] if args.key?(:photos) | 
					
						
							|  |  |  |           @relations = args[:relations] if args.key?(:relations) | 
					
						
							|  |  |  |           @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests) | 
					
						
							|  |  |  |           @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses) | 
					
						
							|  |  |  |           @residences = args[:residences] if args.key?(:residences) | 
					
						
							|  |  |  |           @resource_name = args[:resource_name] if args.key?(:resource_name) | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |           @sip_addresses = args[:sip_addresses] if args.key?(:sip_addresses) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @skills = args[:skills] if args.key?(:skills) | 
					
						
							|  |  |  |           @taglines = args[:taglines] if args.key?(:taglines) | 
					
						
							|  |  |  |           @urls = args[:urls] if args.key?(:urls) | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |           @user_defined = args[:user_defined] if args.key?(:user_defined) | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-03-10 21:11:09 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |       # The metadata about a person. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class PersonMetadata | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. True if the person resource has been deleted. Populated only for [ | 
					
						
							|  |  |  |         # `connections.list`](/people/api/rest/v1/people.connections/list) requests that | 
					
						
							|  |  |  |         # include a sync token. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `deleted` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :deleted | 
					
						
							|  |  |  |         alias_method :deleted?, :deleted | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. Resource names of people linked to this resource. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `linkedPeopleResourceNames` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :linked_people_resource_names | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. **DEPRECATED** (Please use `person.metadata.sources. | 
					
						
							|  |  |  |         # profileMetadata.objectType` instead) The type of the person object. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `objectType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :object_type | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. Any former resource names this person has had. Populated only for | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # [`connections.list`](/people/api/rest/v1/people.connections/list) requests | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # that include a sync token. The resource name may change when adding or | 
					
						
							|  |  |  |         # removing fields that link a contact and profile such as a verified email, | 
					
						
							|  |  |  |         # verified phone number, or profile URL. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `previousResourceNames` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :previous_resource_names | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The sources of data for the person. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `sources` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Source>] | 
					
						
							|  |  |  |         attr_accessor :sources | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @deleted = args[:deleted] if args.key?(:deleted) | 
					
						
							|  |  |  |           @linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names) | 
					
						
							|  |  |  |           @object_type = args[:object_type] if args.key?(:object_type) | 
					
						
							|  |  |  |           @previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names) | 
					
						
							|  |  |  |           @sources = args[:sources] if args.key?(:sources) | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # The response for a single person | 
					
						
							|  |  |  |       class PersonResponse | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # **DEPRECATED** (Please use status instead) [HTTP 1.1 status code] (http://www. | 
					
						
							|  |  |  |         # w3.org/Protocols/rfc2616/rfc2616-sec10.html). | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `httpStatusCode` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :http_status_code | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Information about a person merged from various data sources such as the | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # authenticated user's contacts and profile data. Most fields can have multiple | 
					
						
							|  |  |  |         # items. The items in a field have no guaranteed order, but each non-empty field | 
					
						
							|  |  |  |         # is guaranteed to have exactly one field with `metadata.primary` set to true. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `person` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Person] | 
					
						
							|  |  |  |         attr_accessor :person | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The original requested resource name. May be different than the resource name | 
					
						
							|  |  |  |         # on the returned person. The resource name can change when adding or removing | 
					
						
							|  |  |  |         # fields that link a contact and profile such as a verified email, verified | 
					
						
							|  |  |  |         # phone number, or a profile URL. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `requestedResourceName` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :requested_resource_name | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The `Status` type defines a logical error model that is suitable for different | 
					
						
							|  |  |  |         # programming environments, including REST APIs and RPC APIs. It is used by [ | 
					
						
							|  |  |  |         # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of | 
					
						
							|  |  |  |         # data: error code, error message, and error details. You can find out more | 
					
						
							|  |  |  |         # about this error model and how to work with it in the [API Design Guide](https: | 
					
						
							|  |  |  |         # //cloud.google.com/apis/design/errors). | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `status` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Status] | 
					
						
							|  |  |  |         attr_accessor :status | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-02-13 23:28:52 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @http_status_code = args[:http_status_code] if args.key?(:http_status_code) | 
					
						
							|  |  |  |           @person = args[:person] if args.key?(:person) | 
					
						
							|  |  |  |           @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name) | 
					
						
							|  |  |  |           @status = args[:status] if args.key?(:status) | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's phone number. | 
					
						
							|  |  |  |       class PhoneNumber | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. The canonicalized [ITU-T E.164](https://law.resource.org/pub/us/ | 
					
						
							|  |  |  |         # cfr/ibr/004/itu-t.E.164.1.2008.pdf) form of the phone number. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `canonicalForm` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :canonical_form | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The type of the phone number translated and formatted in the | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # viewer's account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :formatted_type | 
					
						
							| 
									
										
										
										
											2017-05-04 19:35:56 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2017-02-13 23:28:52 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # The type of the phone number. The type can be custom or one of these | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # predefined values: * `home` * `work` * `mobile` * `homeFax` * `workFax` * ` | 
					
						
							|  |  |  |         # otherFax` * `pager` * `workMobile` * `workPager` * `main` * `googleVoice` * ` | 
					
						
							|  |  |  |         # other` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The phone number. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-02-13 23:28:52 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @canonical_form = args[:canonical_form] if args.key?(:canonical_form) | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-02-13 23:28:52 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # A person's photo. A picture shown next to the person's name to help others | 
					
						
							|  |  |  |       # recognize the person. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Photo | 
					
						
							| 
									
										
										
										
											2017-03-27 22:14:47 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-02-13 23:28:52 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # True if the photo is a default photo; false if the photo is a user-provided | 
					
						
							|  |  |  |         # photo. | 
					
						
							| 
									
										
										
										
											2017-09-12 00:36:05 +00:00
										 |  |  |         # Corresponds to the JSON property `default` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :default | 
					
						
							|  |  |  |         alias_method :default?, :default | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The URL of the photo. You can change the desired size by appending a query | 
					
						
							| 
									
										
										
										
											2020-01-24 00:37:26 +00:00
										 |  |  |         # parameter `sz=`size`` at the end of the url, where `size` is the size in | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # pixels. Example: https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/ | 
					
						
							|  |  |  |         # AAAAAAAABa8/00gzXvDBYqw/s100/photo.jpg?sz=50 | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `url` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :url | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-09-12 00:36:05 +00:00
										 |  |  |           @default = args[:default] if args.key?(:default) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @url = args[:url] if args.key?(:url) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |       # The metadata about a profile. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class ProfileMetadata | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The profile object type. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `objectType` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :object_type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The user types. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `userTypes` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :user_types | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @object_type = args[:object_type] if args.key?(:object_type) | 
					
						
							|  |  |  |           @user_types = args[:user_types] if args.key?(:user_types) | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's relation to another person. | 
					
						
							|  |  |  |       class Relation | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The type of the relation translated and formatted in the viewer's | 
					
						
							|  |  |  |         # account locale or the locale specified in the Accept-Language HTTP header. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The name of the other person this relation refers to. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `person` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :person | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # The person's relation to the other person. The type can be custom or one of | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # these predefined values: * `spouse` * `child` * `mother` * `father` * `parent` | 
					
						
							|  |  |  |         # * `brother` * `sister` * `friend` * `relative` * `domesticPartner` * `manager` | 
					
						
							|  |  |  |         # * `assistant` * `referredBy` * `partner` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @person = args[:person] if args.key?(:person) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-03-30 22:30:51 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # **DEPRECATED**: No data will be returned A person's relationship interest . | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class RelationshipInterest | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The value of the relationship interest translated and formatted | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # in the viewer's account locale or the locale specified in the Accept-Language | 
					
						
							|  |  |  |         # HTTP header. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `formattedValue` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_value | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The kind of relationship the person is looking for. The value can be custom or | 
					
						
							|  |  |  |         # one of these predefined values: * `friend` * `date` * `relationship` * ` | 
					
						
							|  |  |  |         # networking` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @formatted_value = args[:formatted_value] if args.key?(:formatted_value) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # **DEPRECATED**: No data will be returned A person's relationship status. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class RelationshipStatus | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The value of the relationship status translated and formatted in | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # the viewer's account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedValue` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_value | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The relationship status. The value can be custom or one of these predefined | 
					
						
							|  |  |  |         # values: * `single` * `inARelationship` * `engaged` * `married` * ` | 
					
						
							|  |  |  |         # itsComplicated` * `openRelationship` * `widowed` * `inDomesticPartnership` * ` | 
					
						
							|  |  |  |         # inCivilUnion` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-04-03 20:18:48 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @formatted_value = args[:formatted_value] if args.key?(:formatted_value) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-08-15 00:38:25 +00:00
										 |  |  |       # **DEPRECATED**: Please use `person.locations` instead. A person's past or | 
					
						
							|  |  |  |       # current residence. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Residence | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # True if the residence is the person's current residence; false if the | 
					
						
							|  |  |  |         # residence is a past residence. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `current` | 
					
						
							|  |  |  |         # @return [Boolean] | 
					
						
							|  |  |  |         attr_accessor :current | 
					
						
							|  |  |  |         alias_method :current?, :current | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The address of the residence. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @current = args[:current] if args.key?(:current) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |       # The response to a request for people in the authenticated user's domain | 
					
						
							|  |  |  |       # directory that match the specified query. | 
					
						
							|  |  |  |       class SearchDirectoryPeopleResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A token, which can be sent as `page_token` to retrieve the next page. If this | 
					
						
							|  |  |  |         # field is omitted, there are no subsequent pages. | 
					
						
							| 
									
										
										
										
											2020-06-11 00:38:48 +00:00
										 |  |  |         # Corresponds to the JSON property `nextPageToken` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :next_page_token | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The list of people in the domain directory that match the query. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `people` | 
					
						
							|  |  |  |         # @return [Array<Google::Apis::PeopleV1::Person>] | 
					
						
							|  |  |  |         attr_accessor :people | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The total number of items in the list without pagination. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `totalSize` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :total_size | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @next_page_token = args[:next_page_token] if args.key?(:next_page_token) | 
					
						
							|  |  |  |           @people = args[:people] if args.key?(:people) | 
					
						
							|  |  |  |           @total_size = args[:total_size] if args.key?(:total_size) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |       # A person's SIP address. Session Initial Protocol addresses are used for VoIP | 
					
						
							|  |  |  |       # communications to make voice or video calls over the internet. | 
					
						
							|  |  |  |       class SipAddress | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The type of the SIP address translated and formatted in the | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # viewer's account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The type of the SIP address. The type can be custom or or one of these | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # predefined values: * `home` * `work` * `mobile` * `other` | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The SIP address in the [RFC 3261 19.1](https://tools.ietf.org/html/rfc3261# | 
					
						
							|  |  |  |         # section-19.1) SIP URI format. | 
					
						
							| 
									
										
										
										
											2018-05-23 00:36:42 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A skill that the person has. | 
					
						
							|  |  |  |       class Skill | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The skill; for example, `underwater basket weaving`. | 
					
						
							| 
									
										
										
										
											2017-06-14 17:02:03 +00:00
										 |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-03-31 19:53:27 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # The source of a field. | 
					
						
							|  |  |  |       class Source | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # **Only populated in `person.metadata.sources`.** The [HTTP entity tag](https:// | 
					
						
							|  |  |  |         # en.wikipedia.org/wiki/HTTP_ETag) of the source. Used for web cache validation. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `etag` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :etag | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The unique identifier within the source type generated by the server. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `id` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :id | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # The metadata about a profile. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `profileMetadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::ProfileMetadata] | 
					
						
							|  |  |  |         attr_accessor :profile_metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The source type. | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Output only. **Only populated in `person.metadata.sources`.** Last update | 
					
						
							|  |  |  |         # timestamp of this source. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `updateTime` | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :update_time | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @etag = args[:etag] if args.key?(:etag) | 
					
						
							|  |  |  |           @id = args[:id] if args.key?(:id) | 
					
						
							|  |  |  |           @profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata) | 
					
						
							|  |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @update_time = args[:update_time] if args.key?(:update_time) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # The `Status` type defines a logical error model that is suitable for different | 
					
						
							|  |  |  |       # programming environments, including REST APIs and RPC APIs. It is used by [ | 
					
						
							|  |  |  |       # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of | 
					
						
							|  |  |  |       # data: error code, error message, and error details. You can find out more | 
					
						
							|  |  |  |       # about this error model and how to work with it in the [API Design Guide](https: | 
					
						
							|  |  |  |       # //cloud.google.com/apis/design/errors). | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Status | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The status code, which should be an enum value of google.rpc.Code. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `code` | 
					
						
							|  |  |  |         # @return [Fixnum] | 
					
						
							|  |  |  |         attr_accessor :code | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A list of messages that carry the error details. There is a common set of | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # message types for APIs to use. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `details` | 
					
						
							|  |  |  |         # @return [Array<Hash<String,Object>>] | 
					
						
							|  |  |  |         attr_accessor :details | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # A developer-facing error message, which should be in English. Any user-facing | 
					
						
							|  |  |  |         # error message should be localized and sent in the google.rpc.Status.details | 
					
						
							|  |  |  |         # field, or localized by the client. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `message` | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         # @return [String] | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         attr_accessor :message | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @code = args[:code] if args.key?(:code) | 
					
						
							|  |  |  |           @details = args[:details] if args.key?(:details) | 
					
						
							|  |  |  |           @message = args[:message] if args.key?(:message) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # **DEPRECATED**: No data will be returned A brief one-line description of the | 
					
						
							|  |  |  |       # person. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class Tagline | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The tagline. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # A request to update an existing user contact group. All updated fields will be | 
					
						
							|  |  |  |       # replaced. | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       class UpdateContactGroupRequest | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # A contact group. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `contactGroup` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::ContactGroup] | 
					
						
							|  |  |  |         attr_accessor :contact_group | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @contact_group = args[:contact_group] if args.key?(:contact_group) | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |       # A request to update an existing contact's photo. All requests must have a | 
					
						
							|  |  |  |       # valid photo format: JPEG or PNG. | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |       class UpdateContactPhotoRequest | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Optional. A field mask to restrict which fields on the person are returned. | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Multiple fields can be specified by separating them with commas. Defaults to | 
					
						
							|  |  |  |         # empty if not set, which will skip the post mutate get. Valid values are: * | 
					
						
							| 
									
										
										
										
											2020-08-07 00:38:13 +00:00
										 |  |  |         # addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * | 
					
						
							|  |  |  |         # coverPhotos * emailAddresses * events * externalIds * genders * imClients * | 
					
						
							| 
									
										
										
										
											2020-08-15 00:38:25 +00:00
										 |  |  |         # interests * locales * locations * memberships * metadata * miscKeywords * | 
					
						
							|  |  |  |         # names * nicknames * occupations * organizations * phoneNumbers * photos * | 
					
						
							|  |  |  |         # relations * sipAddresses * skills * urls * userDefined | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |         # Corresponds to the JSON property `personFields` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :person_fields | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Required. Raw photo bytes | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |         # Corresponds to the JSON property `photoBytes` | 
					
						
							|  |  |  |         # NOTE: Values are automatically base64 encoded/decoded in the client library. | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :photo_bytes | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # Optional. A mask of what source types to return. Defaults to ReadSourceType. | 
					
						
							|  |  |  |         # CONTACT and ReadSourceType.PROFILE if not set. | 
					
						
							| 
									
										
										
										
											2020-06-10 00:38:16 +00:00
										 |  |  |         # Corresponds to the JSON property `sources` | 
					
						
							|  |  |  |         # @return [Array<String>] | 
					
						
							|  |  |  |         attr_accessor :sources | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @person_fields = args[:person_fields] if args.key?(:person_fields) | 
					
						
							|  |  |  |           @photo_bytes = args[:photo_bytes] if args.key?(:photo_bytes) | 
					
						
							| 
									
										
										
										
											2020-06-10 00:38:16 +00:00
										 |  |  |           @sources = args[:sources] if args.key?(:sources) | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |       # The response for updating a contact's photo. | 
					
						
							|  |  |  |       class UpdateContactPhotoResponse | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Information about a person merged from various data sources such as the | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # authenticated user's contacts and profile data. Most fields can have multiple | 
					
						
							|  |  |  |         # items. The items in a field have no guaranteed order, but each non-empty field | 
					
						
							|  |  |  |         # is guaranteed to have exactly one field with `metadata.primary` set to true. | 
					
						
							| 
									
										
										
										
											2019-07-19 00:38:19 +00:00
										 |  |  |         # Corresponds to the JSON property `person` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::Person] | 
					
						
							|  |  |  |         attr_accessor :person | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							|  |  |  |           @person = args[:person] if args.key?(:person) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |       # A person's associated URLs. | 
					
						
							|  |  |  |       class Url | 
					
						
							| 
									
										
										
										
											2017-07-12 20:10:42 +00:00
										 |  |  |         include Google::Apis::Core::Hashable | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2019-11-01 00:37:15 +00:00
										 |  |  |         # Output only. The type of the URL translated and formatted in the viewer's | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # account locale or the `Accept-Language` HTTP header locale. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `formattedType` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :formatted_type | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							| 
									
										
										
										
											2020-07-21 00:38:15 +00:00
										 |  |  |         # The type of the URL. The type can be custom or one of these predefined values: | 
					
						
							|  |  |  |         # * `home` * `work` * `blog` * `profile` * `homePage` * `ftp` * `reservations` * | 
					
						
							|  |  |  |         # `appInstallPage`: website for a Google+ application. * `other` | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # Corresponds to the JSON property `type` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :type | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |         # The URL. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							| 
									
										
										
										
											2017-06-02 06:11:31 +00:00
										 |  |  |        | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         def update!(**args) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @formatted_type = args[:formatted_type] if args.key?(:formatted_type) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |           @metadata = args[:metadata] if args.key?(:metadata) | 
					
						
							| 
									
										
										
										
											2017-08-25 19:54:22 +00:00
										 |  |  |           @type = args[:type] if args.key?(:type) | 
					
						
							|  |  |  |           @value = args[:value] if args.key?(:value) | 
					
						
							| 
									
										
										
										
											2017-05-26 16:44:32 +00:00
										 |  |  |         end | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2017-08-31 00:35:15 +00:00
										 |  |  |        | 
					
						
							|  |  |  |       # Arbitrary user data that is populated by the end users. | 
					
						
							|  |  |  |       class UserDefined | 
					
						
							|  |  |  |         include Google::Apis::Core::Hashable | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The end user specified key of the user defined data. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `key` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :key | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Metadata about a field. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `metadata` | 
					
						
							|  |  |  |         # @return [Google::Apis::PeopleV1::FieldMetadata] | 
					
						
							|  |  |  |         attr_accessor :metadata | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # The end user specified value of the user defined data. | 
					
						
							|  |  |  |         # Corresponds to the JSON property `value` | 
					
						
							|  |  |  |         # @return [String] | 
					
						
							|  |  |  |         attr_accessor :value | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         def initialize(**args) | 
					
						
							|  |  |  |            update!(**args) | 
					
						
							|  |  |  |         end | 
					
						
							|  |  |  |        | 
					
						
							|  |  |  |         # Update properties of this object | 
					
						
							|  |  |  |         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 | 
					
						
							|  |  |  |       end | 
					
						
							| 
									
										
										
										
											2016-02-10 21:57:13 +00:00
										 |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |