class Google::Apis::MirrorV1::Contact

A person or group that can be used as a creator or a contact.

Attributes

accept_commands[RW]

A list of voice menu commands that a contact can handle. Glass shows up to three contacts for each voice menu command. If there are more than that, the three contacts with the highest priority are shown for that particular command. Corresponds to the JSON property `acceptCommands` @return [Array<Google::Apis::MirrorV1::Command>]

accept_types[RW]

A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items. Corresponds to the JSON property `acceptTypes` @return [Array<String>]

display_name[RW]

The name to display for this contact. Corresponds to the JSON property `displayName` @return [String]

id[RW]

An ID for this contact. This is generated by the application and is treated as an opaque token. Corresponds to the JSON property `id` @return [String]

image_urls[RW]

Set of image URLs to display for a contact. Most contacts will have a single image, but a “group” contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client. Corresponds to the JSON property `imageUrls` @return [Array<String>]

kind[RW]

The type of resource. This is always mirror#contact. Corresponds to the JSON property `kind` @return [String]

phone_number[RW]

Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number. Corresponds to the JSON property `phoneNumber` @return [String]

priority[RW]

Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities. Corresponds to the JSON property `priority` @return [Fixnum]

sharing_features[RW]

A list of sharing features that a contact can handle. Allowed values are:

  • ADD_CAPTION

Corresponds to the JSON property `sharingFeatures` @return [Array<String>]

source[RW]

The ID of the application that created this contact. This is populated by the API Corresponds to the JSON property `source` @return [String]

speakable_name[RW]

Name of this contact as it should be pronounced. If this contact's name must be spoken as part of a voice disambiguation menu, this name is used as the expected pronunciation. This is useful for contact names with unpronounceable characters or whose display spelling is otherwise not phonetic. Corresponds to the JSON property `speakableName` @return [String]

type[RW]

The type for this contact. This is used for sorting in UIs. Allowed values are:

  • INDIVIDUAL - Represents a single person. This is the default.

  • GROUP - Represents more than a single person.

Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/mirror_v1/classes.rb, line 258
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/mirror_v1/classes.rb, line 263
def update!(**args)
  @accept_commands = args[:accept_commands] if args.key?(:accept_commands)
  @accept_types = args[:accept_types] if args.key?(:accept_types)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @image_urls = args[:image_urls] if args.key?(:image_urls)
  @kind = args[:kind] if args.key?(:kind)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @priority = args[:priority] if args.key?(:priority)
  @sharing_features = args[:sharing_features] if args.key?(:sharing_features)
  @source = args[:source] if args.key?(:source)
  @speakable_name = args[:speakable_name] if args.key?(:speakable_name)
  @type = args[:type] if args.key?(:type)
end