Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
- 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
Overview
You can create multiple versions of your agent and publish them to separate environments. When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for: - testing - development - production - etc. For more information, see the versions and environments guide.
Instance Attribute Summary collapse
-
#agent_version ⇒ String
Optional.
-
#description ⇒ String
Optional.
-
#fulfillment ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
By default, your agent responds to a matched intent with a static response.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#text_to_speech_settings ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings
Instructs the speech synthesizer on how to generate the output audio content.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Environment
constructor
A new instance of GoogleCloudDialogflowV2beta1Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Environment
Returns a new instance of GoogleCloudDialogflowV2beta1Environment.
11237 11238 11239 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_version ⇒ String
Optional. The agent version loaded into this environment. Supported formats: -
projects//agent/versions/
- projects//locations//agent/versions/
Corresponds to the JSON property agentVersion
11193 11194 11195 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11193 def agent_version @agent_version end |
#description ⇒ String
Optional. The developer-provided description for this environment. The maximum
length is 500 characters. If exceeded, the request is rejected.
Corresponds to the JSON property description
11199 11200 11201 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11199 def description @description end |
#fulfillment ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
By default, your agent responds to a matched intent with a static response. As
an alternative, you can provide a more dynamic response by using fulfillment.
When you enable fulfillment for an intent, Dialogflow responds to that intent
by calling a service that you define. For example, if an end-user wants to
schedule a haircut on Friday, your service can check your database and respond
to the end-user with availability information for Friday. For more information,
see the fulfillment guide.
Corresponds to the JSON property fulfillment
11211 11212 11213 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11211 def fulfillment @fulfillment end |
#name ⇒ String
Output only. The unique identifier of this agent environment. Supported
formats: - projects//agent/environments/
- projects//locations//agent/
environments/
Corresponds to the JSON property name
11218 11219 11220 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11218 def name @name end |
#state ⇒ String
Output only. The state of this environment. This field is read-only, i.e., it
cannot be set by create and update methods.
Corresponds to the JSON property state
11224 11225 11226 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11224 def state @state end |
#text_to_speech_settings ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings
Instructs the speech synthesizer on how to generate the output audio content.
Corresponds to the JSON property textToSpeechSettings
11229 11230 11231 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11229 def text_to_speech_settings @text_to_speech_settings end |
#update_time ⇒ String
Output only. The last update time of this environment. This field is read-only,
i.e., it cannot be set by create and update methods.
Corresponds to the JSON property updateTime
11235 11236 11237 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11235 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11242 11243 11244 11245 11246 11247 11248 11249 11250 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11242 def update!(**args) @agent_version = args[:agent_version] if args.key?(:agent_version) @description = args[:description] if args.key?(:description) @fulfillment = args[:fulfillment] if args.key?(:fulfillment) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings) @update_time = args[:update_time] if args.key?(:update_time) end |