1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.25.0
18// 	protoc        v3.13.0
19// source: google/actions/sdk/v2/interactionmodel/global_intent_event.proto
20
21package interactionmodel
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	_ "google.golang.org/genproto/googleapis/api/annotations"
29	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31)
32
33const (
34	// Verify that this generated code is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36	// Verify that runtime/protoimpl is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38)
39
40// This is a compile-time assertion that a sufficiently up-to-date version
41// of the legacy proto package is being used.
42const _ = proto.ProtoPackageIsVersion4
43
44// Defines a global intent handler. Global intent events are scoped to the
45// entire Actions project and may be overridden by intent handlers in a scene.
46// Intent names must be unique within an Actions project.
47//
48// Global intents can be matched anytime during a session, allowing users to
49// access common flows like  "get help" or "go back home." They can also be
50// used to deep link users into specific flows when they invoke an Action.
51//
52// Note, the intent name is specified in the name of the file.
53type GlobalIntentEvent struct {
54	state         protoimpl.MessageState
55	sizeCache     protoimpl.SizeCache
56	unknownFields protoimpl.UnknownFields
57
58	// Optional. Destination scene which the conversation should jump to. The state of the
59	// current scene is destroyed on the transition.
60	TransitionToScene string `protobuf:"bytes,1,opt,name=transition_to_scene,json=transitionToScene,proto3" json:"transition_to_scene,omitempty"`
61	// Optional. Event handler which is triggered when the intent is matched. Should execute
62	// before transitioning to the destination scene. Useful to generate Prompts
63	// in response to events.
64	Handler *EventHandler `protobuf:"bytes,2,opt,name=handler,proto3" json:"handler,omitempty"`
65}
66
67func (x *GlobalIntentEvent) Reset() {
68	*x = GlobalIntentEvent{}
69	if protoimpl.UnsafeEnabled {
70		mi := &file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes[0]
71		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72		ms.StoreMessageInfo(mi)
73	}
74}
75
76func (x *GlobalIntentEvent) String() string {
77	return protoimpl.X.MessageStringOf(x)
78}
79
80func (*GlobalIntentEvent) ProtoMessage() {}
81
82func (x *GlobalIntentEvent) ProtoReflect() protoreflect.Message {
83	mi := &file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes[0]
84	if protoimpl.UnsafeEnabled && x != nil {
85		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86		if ms.LoadMessageInfo() == nil {
87			ms.StoreMessageInfo(mi)
88		}
89		return ms
90	}
91	return mi.MessageOf(x)
92}
93
94// Deprecated: Use GlobalIntentEvent.ProtoReflect.Descriptor instead.
95func (*GlobalIntentEvent) Descriptor() ([]byte, []int) {
96	return file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescGZIP(), []int{0}
97}
98
99func (x *GlobalIntentEvent) GetTransitionToScene() string {
100	if x != nil {
101		return x.TransitionToScene
102	}
103	return ""
104}
105
106func (x *GlobalIntentEvent) GetHandler() *EventHandler {
107	if x != nil {
108		return x.Handler
109	}
110	return nil
111}
112
113var File_google_actions_sdk_v2_interactionmodel_global_intent_event_proto protoreflect.FileDescriptor
114
115var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc = []byte{
116	0x0a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
117	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
118	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f,
119	0x69, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
120	0x74, 0x6f, 0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f,
121	0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61,
122	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x1a, 0x3a, 0x67, 0x6f, 0x6f, 0x67,
123	0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76,
124	0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64,
125	0x65, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72,
126	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
127	0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
128	0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x11, 0x47, 0x6c, 0x6f, 0x62,
129	0x61, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x33, 0x0a,
130	0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x5f, 0x73,
131	0x63, 0x65, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
132	0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x53, 0x63, 0x65,
133	0x6e, 0x65, 0x12, 0x53, 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20,
134	0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
135	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65,
136	0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x45, 0x76, 0x65,
137	0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07,
138	0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x42, 0x9e, 0x01, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e,
139	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
140	0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
141	0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x42, 0x16, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x49, 0x6e,
142	0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
143	0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
144	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
145	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
146	0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69,
147	0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
148	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
149}
150
151var (
152	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescOnce sync.Once
153	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc
154)
155
156func file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescGZIP() []byte {
157	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescOnce.Do(func() {
158		file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData)
159	})
160	return file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData
161}
162
163var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
164var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_goTypes = []interface{}{
165	(*GlobalIntentEvent)(nil), // 0: google.actions.sdk.v2.interactionmodel.GlobalIntentEvent
166	(*EventHandler)(nil),      // 1: google.actions.sdk.v2.interactionmodel.EventHandler
167}
168var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_depIdxs = []int32{
169	1, // 0: google.actions.sdk.v2.interactionmodel.GlobalIntentEvent.handler:type_name -> google.actions.sdk.v2.interactionmodel.EventHandler
170	1, // [1:1] is the sub-list for method output_type
171	1, // [1:1] is the sub-list for method input_type
172	1, // [1:1] is the sub-list for extension type_name
173	1, // [1:1] is the sub-list for extension extendee
174	0, // [0:1] is the sub-list for field type_name
175}
176
177func init() { file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_init() }
178func file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_init() {
179	if File_google_actions_sdk_v2_interactionmodel_global_intent_event_proto != nil {
180		return
181	}
182	file_google_actions_sdk_v2_interactionmodel_event_handler_proto_init()
183	if !protoimpl.UnsafeEnabled {
184		file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
185			switch v := v.(*GlobalIntentEvent); i {
186			case 0:
187				return &v.state
188			case 1:
189				return &v.sizeCache
190			case 2:
191				return &v.unknownFields
192			default:
193				return nil
194			}
195		}
196	}
197	type x struct{}
198	out := protoimpl.TypeBuilder{
199		File: protoimpl.DescBuilder{
200			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
201			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc,
202			NumEnums:      0,
203			NumMessages:   1,
204			NumExtensions: 0,
205			NumServices:   0,
206		},
207		GoTypes:           file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_goTypes,
208		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_depIdxs,
209		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes,
210	}.Build()
211	File_google_actions_sdk_v2_interactionmodel_global_intent_event_proto = out.File
212	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc = nil
213	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_goTypes = nil
214	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_depIdxs = nil
215}
216