class Google::Apis::MirrorV1::MenuValue

A single value that is part of a MenuItem.

Attributes

display_name[RW]

The name to display for the menu item. If you specify this property for a built-in menu item, the default contextual voice command for that menu item is not shown. Corresponds to the JSON property `displayName` @return [String]

icon_url[RW]

URL of an icon to display with the menu item. Corresponds to the JSON property `iconUrl` @return [String]

state[RW]

The state that this value applies to. Allowed values are:

  • DEFAULT - Default value shown when displayed in the menuItems list.

  • PENDING - Value shown when the menuItem has been selected by the user but

can still be cancelled.

  • CONFIRMED - Value shown when the menuItem has been selected by the user and

can no longer be cancelled. Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/mirror_v1/classes.rb, line 512
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 517
def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @state = args[:state] if args.key?(:state)
end