class Google::Apis::MirrorV1::MenuValue
A single value that is part of a MenuItem.
Attributes
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]
URL of an icon to display with the menu item. Corresponds to the JSON property `iconUrl` @return [String]
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
# File generated/google/apis/mirror_v1/classes.rb, line 512 def initialize(**args) update!(**args) end
Public Instance Methods
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