Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeBase

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeBase

Returns a new instance of GoogleCloudDialogflowV2KnowledgeBase.



13598
13599
13600
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13598

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

Instance Attribute Details

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


13586
13587
13588
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13586

def display_name
  @display_name
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


13591
13592
13593
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13591

def language_code
  @language_code
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


13596
13597
13598
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13596

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13603
13604
13605
13606
13607
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13603

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @language_code = args[:language_code] if args.key?(:language_code)
  @name = args[:name] if args.key?(:name)
end