Class: Google::Apis::MybusinessbusinessinformationV1::Label
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MybusinessbusinessinformationV1::Label
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb 
Overview
Label to be used when displaying the price list, section, or item.
Instance Attribute Summary collapse
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #language_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Label 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Label.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ Label
Returns a new instance of Label.
      598 599 600  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 598 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#description ⇒ String
Optional. Description of the price list, section, or item.
Corresponds to the JSON property description
      585 586 587  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 585 def description @description end  | 
  
#display_name ⇒ String
Required. Display name for the price list, section, or item.
Corresponds to the JSON property displayName
      590 591 592  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 590 def display_name @display_name end  | 
  
#language_code ⇒ String
Optional. The BCP-47 language code that these strings apply for. Only one set
of labels may be set per language.
Corresponds to the JSON property languageCode
      596 597 598  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 596 def language_code @language_code end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      603 604 605 606 607  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 603 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @language_code = args[:language_code] if args.key?(:language_code) end  |