Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Environment.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#agent_version
def agent_version() -> ::String
-
(::String) —
Optional. The agent version loaded into this environment. Supported formats:
projects/<Project ID>/agent/versions/<Version ID>
projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>
#agent_version=
def agent_version=(value) -> ::String
-
value (::String) —
Optional. The agent version loaded into this environment. Supported formats:
projects/<Project ID>/agent/versions/<Version ID>
projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>
-
(::String) —
Optional. The agent version loaded into this environment. Supported formats:
projects/<Project ID>/agent/versions/<Version ID>
projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>
#description
def description() -> ::String
- (::String) — Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
#description=
def description=(value) -> ::String
- value (::String) — Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
- (::String) — Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
#fulfillment
def fulfillment() -> ::Google::Cloud::Dialogflow::V2::Fulfillment
- (::Google::Cloud::Dialogflow::V2::Fulfillment) — Optional. The fulfillment settings to use for this environment.
#fulfillment=
def fulfillment=(value) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
- value (::Google::Cloud::Dialogflow::V2::Fulfillment) — Optional. The fulfillment settings to use for this environment.
- (::Google::Cloud::Dialogflow::V2::Fulfillment) — Optional. The fulfillment settings to use for this environment.
#name
def name() -> ::String
-
(::String) — Output only. The unique identifier of this agent environment.
Supported formats:
projects/<Project ID>/agent/environments/<Environment ID>
projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>
The environment ID for the default environment is
-
.
#state
def state() -> ::Google::Cloud::Dialogflow::V2::Environment::State
- (::Google::Cloud::Dialogflow::V2::Environment::State) — Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
#text_to_speech_settings
def text_to_speech_settings() -> ::Google::Cloud::Dialogflow::V2::TextToSpeechSettings
- (::Google::Cloud::Dialogflow::V2::TextToSpeechSettings) — Optional. Text to speech settings for this environment.
#text_to_speech_settings=
def text_to_speech_settings=(value) -> ::Google::Cloud::Dialogflow::V2::TextToSpeechSettings
- value (::Google::Cloud::Dialogflow::V2::TextToSpeechSettings) — Optional. Text to speech settings for this environment.
- (::Google::Cloud::Dialogflow::V2::TextToSpeechSettings) — Optional. Text to speech settings for this environment.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — 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.