Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1Intent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Intent

Returns a new instance of GoogleCloudDialogflowCxV3beta1Intent.



4946
4947
4948
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4946

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


4903
4904
4905
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4903

def description
  @description
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


4908
4909
4910
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4908

def display_name
  @display_name
end

#dtmf_patternString

Corresponds to the JSON property dtmfPattern

Returns:

  • (String)


4913
4914
4915
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4913

def dtmf_pattern
  @dtmf_pattern
end

#is_fallbackBoolean Also known as: is_fallback?

Corresponds to the JSON property isFallback

Returns:

  • (Boolean)


4918
4919
4920
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4918

def is_fallback
  @is_fallback
end

#labelsHash<String,String>

Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


4924
4925
4926
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4924

def labels
  @labels
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


4929
4930
4931
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4929

def name
  @name
end

#parametersArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1IntentParameter>

Corresponds to the JSON property parameters



4934
4935
4936
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4934

def parameters
  @parameters
end

#priorityFixnum

Corresponds to the JSON property priority

Returns:

  • (Fixnum)


4939
4940
4941
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4939

def priority
  @priority
end

#training_phrasesArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase>

Corresponds to the JSON property trainingPhrases



4944
4945
4946
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4944

def training_phrases
  @training_phrases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4951

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @dtmf_pattern = args[:dtmf_pattern] if args.key?(:dtmf_pattern)
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @parameters = args[:parameters] if args.key?(:parameters)
  @priority = args[:priority] if args.key?(:priority)
  @training_phrases = args[:training_phrases] if args.key?(:training_phrases)
end