Class: Google::Apis::AndroidmanagementV1::UserFacingMessage
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroidmanagementV1::UserFacingMessage
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb 
Overview
Provides a user-facing message with locale info. The maximum message length is 4096 characters.
Instance Attribute Summary collapse
- 
  
    
      #default_message  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The default message displayed if no localized message is specified or the user' s locale doesn't match with any of the localized messages.
 - 
  
    
      #localized_messages  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A map containing pairs, where locale is a well-formed BCP 47 language (https:// www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserFacingMessage 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of UserFacingMessage.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ UserFacingMessage
Returns a new instance of UserFacingMessage.
      6298 6299 6300  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6298 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#default_message ⇒ String
The default message displayed if no localized message is specified or the user'
s locale doesn't match with any of the localized messages. A default message
must be provided if any localized messages are provided.
Corresponds to the JSON property defaultMessage
      6289 6290 6291  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6289 def @default_message end  | 
  
#localized_messages ⇒ Hash<String,String>
A map containing pairs, where locale is a well-formed BCP 47 language (https://
www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES,
or fr.
Corresponds to the JSON property localizedMessages
      6296 6297 6298  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6296 def @localized_messages end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      6303 6304 6305 6306  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 6303 def update!(**args) @default_message = args[:default_message] if args.key?(:default_message) @localized_messages = args[:localized_messages] if args.key?(:localized_messages) end  |