Class: Google::Apis::AndroidmanagementV1::UserFacingMessage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserFacingMessage

Returns a new instance of UserFacingMessage.


3528
3529
3530
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3528

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#default_messageString

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

Returns:

  • (String)

3519
3520
3521
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3519

def default_message
  @default_message
end

#localized_messagesHash<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

Returns:

  • (Hash<String,String>)

3526
3527
3528
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3526

def localized_messages
  @localized_messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3533
3534
3535
3536
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3533

def update!(**args)
  @default_message = args[:default_message] if args.key?(:default_message)
  @localized_messages = args[:localized_messages] if args.key?(:localized_messages)
end