12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Copyright 2020 Google LLC
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- syntax = "proto3";
- package google.actions.sdk.v2.interactionmodel;
- import "google/actions/sdk/v2/interactionmodel/event_handler.proto";
- import "google/api/field_behavior.proto";
- option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel";
- option java_multiple_files = true;
- option java_outer_classname = "IntentEventProto";
- option java_package = "com.google.actions.sdk.v2.interactionmodel";
- // Registers Events which trigger as the result of an intent match.
- message IntentEvent {
- // Required. Intent triggering the event.
- string intent = 1 [(google.api.field_behavior) = REQUIRED];
- // Optional. Destination scene which the conversation should jump to. The state of the
- // current scene is destroyed on the transition.
- string transition_to_scene = 2 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Event handler which is triggered when the intent is matched. Should execute
- // before transitioning to the destination scene. Useful to generate prompts
- // in response to events.
- EventHandler handler = 3 [(google.api.field_behavior) = OPTIONAL];
- }
|