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/intent.proto
20
21package interactionmodel
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	_type "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/type"
29	_ "google.golang.org/genproto/googleapis/api/annotations"
30	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32)
33
34const (
35	// Verify that this generated code is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37	// Verify that runtime/protoimpl is sufficiently up-to-date.
38	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39)
40
41// This is a compile-time assertion that a sufficiently up-to-date version
42// of the legacy proto package is being used.
43const _ = proto.ProtoPackageIsVersion4
44
45// Intents map open-ended user input to structured objects. Spoken
46// phrases are matched to intents with Google's Natural Language Understanding
47// (NLU). Intent matches can trigger events in your conversation design to
48// progress the user's conversation.
49// The intent name is specified in the name of the file.
50type Intent struct {
51	state         protoimpl.MessageState
52	sizeCache     protoimpl.SizeCache
53	unknownFields protoimpl.UnknownFields
54
55	// The list of parameters within the training phrases. All parameters must be
56	// defined here to be used in the training phrase.
57	Parameters []*Intent_IntentParameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty"`
58	// Training phrases allow Google’s NLU to automatically match intents with
59	// user input. The more unique phrases that are provided, the better chance
60	// this intent will be matched.
61	// The following is the format of training phrase part which are annotated.
62	// Note that `auto` field is optional and the default behavior when `auto` is
63	// not specified is equivalent to `auto=false`.
64	// `($<paramName> '<sample text>' auto=<true or false>)`
65	// `auto = true` means the part was auto annotated by NLU.
66	// `auto = false` means the part was annotated by the user. This is the
67	//     default when auto is not specified.
68	// Example:
69	// "Book a flight from ($source 'San Francisco' auto=false) to ($dest
70	// 'Vancouver')"
71	TrainingPhrases []string `protobuf:"bytes,2,rep,name=training_phrases,json=trainingPhrases,proto3" json:"training_phrases,omitempty"`
72}
73
74func (x *Intent) Reset() {
75	*x = Intent{}
76	if protoimpl.UnsafeEnabled {
77		mi := &file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes[0]
78		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79		ms.StoreMessageInfo(mi)
80	}
81}
82
83func (x *Intent) String() string {
84	return protoimpl.X.MessageStringOf(x)
85}
86
87func (*Intent) ProtoMessage() {}
88
89func (x *Intent) ProtoReflect() protoreflect.Message {
90	mi := &file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes[0]
91	if protoimpl.UnsafeEnabled && x != nil {
92		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
93		if ms.LoadMessageInfo() == nil {
94			ms.StoreMessageInfo(mi)
95		}
96		return ms
97	}
98	return mi.MessageOf(x)
99}
100
101// Deprecated: Use Intent.ProtoReflect.Descriptor instead.
102func (*Intent) Descriptor() ([]byte, []int) {
103	return file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescGZIP(), []int{0}
104}
105
106func (x *Intent) GetParameters() []*Intent_IntentParameter {
107	if x != nil {
108		return x.Parameters
109	}
110	return nil
111}
112
113func (x *Intent) GetTrainingPhrases() []string {
114	if x != nil {
115		return x.TrainingPhrases
116	}
117	return nil
118}
119
120// Definition of a parameter which can be used inside training phrases.
121type Intent_IntentParameter struct {
122	state         protoimpl.MessageState
123	sizeCache     protoimpl.SizeCache
124	unknownFields protoimpl.UnknownFields
125
126	// Required. Unique name of the intent parameter. Can be used in conditions and
127	// responses to reference intent parameters extracted by NLU with
128	// $intent.params.[name].resolved
129	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
130	// The type of the intent parameter.
131	//
132	// Types that are assignable to ParameterType:
133	//	*Intent_IntentParameter_Type
134	ParameterType isIntent_IntentParameter_ParameterType `protobuf_oneof:"parameter_type"`
135}
136
137func (x *Intent_IntentParameter) Reset() {
138	*x = Intent_IntentParameter{}
139	if protoimpl.UnsafeEnabled {
140		mi := &file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes[1]
141		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142		ms.StoreMessageInfo(mi)
143	}
144}
145
146func (x *Intent_IntentParameter) String() string {
147	return protoimpl.X.MessageStringOf(x)
148}
149
150func (*Intent_IntentParameter) ProtoMessage() {}
151
152func (x *Intent_IntentParameter) ProtoReflect() protoreflect.Message {
153	mi := &file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes[1]
154	if protoimpl.UnsafeEnabled && x != nil {
155		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156		if ms.LoadMessageInfo() == nil {
157			ms.StoreMessageInfo(mi)
158		}
159		return ms
160	}
161	return mi.MessageOf(x)
162}
163
164// Deprecated: Use Intent_IntentParameter.ProtoReflect.Descriptor instead.
165func (*Intent_IntentParameter) Descriptor() ([]byte, []int) {
166	return file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescGZIP(), []int{0, 0}
167}
168
169func (x *Intent_IntentParameter) GetName() string {
170	if x != nil {
171		return x.Name
172	}
173	return ""
174}
175
176func (m *Intent_IntentParameter) GetParameterType() isIntent_IntentParameter_ParameterType {
177	if m != nil {
178		return m.ParameterType
179	}
180	return nil
181}
182
183func (x *Intent_IntentParameter) GetType() *_type.ClassReference {
184	if x, ok := x.GetParameterType().(*Intent_IntentParameter_Type); ok {
185		return x.Type
186	}
187	return nil
188}
189
190type isIntent_IntentParameter_ParameterType interface {
191	isIntent_IntentParameter_ParameterType()
192}
193
194type Intent_IntentParameter_Type struct {
195	// Optional. Declares the data type of this parameter.
196	// This should not be set for built-in intents.
197	Type *_type.ClassReference `protobuf:"bytes,2,opt,name=type,proto3,oneof"`
198}
199
200func (*Intent_IntentParameter_Type) isIntent_IntentParameter_ParameterType() {}
201
202var File_google_actions_sdk_v2_interactionmodel_intent_proto protoreflect.FileDescriptor
203
204var file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDesc = []byte{
205	0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
206	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
207	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e,
208	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63,
209	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74,
210	0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x1a, 0x41, 0x67,
211	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64,
212	0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
213	0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73,
214	0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
215	0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
216	0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
217	0x6f, 0x22, 0xaa, 0x02, 0x0a, 0x06, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x5e, 0x0a, 0x0a,
218	0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
219	0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
220	0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63,
221	0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74,
222	0x2e, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72,
223	0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x29, 0x0a, 0x10,
224	0x74, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73,
225	0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67,
226	0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x94, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x65,
227	0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x04, 0x6e,
228	0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04,
229	0x6e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
230	0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69,
231	0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
232	0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65,
233	0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42,
234	0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x10, 0x0a, 0x0e,
235	0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x93,
236	0x01, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63,
237	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74,
238	0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x42, 0x0b, 0x49,
239	0x6e, 0x74, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x6f,
240	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
241	0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
242	0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f,
243	0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f,
244	0x64, 0x65, 0x6c, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d,
245	0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
246}
247
248var (
249	file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescOnce sync.Once
250	file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDesc
251)
252
253func file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescGZIP() []byte {
254	file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescOnce.Do(func() {
255		file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescData)
256	})
257	return file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDescData
258}
259
260var file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
261var file_google_actions_sdk_v2_interactionmodel_intent_proto_goTypes = []interface{}{
262	(*Intent)(nil),                 // 0: google.actions.sdk.v2.interactionmodel.Intent
263	(*Intent_IntentParameter)(nil), // 1: google.actions.sdk.v2.interactionmodel.Intent.IntentParameter
264	(*_type.ClassReference)(nil),   // 2: google.actions.sdk.v2.interactionmodel.type.ClassReference
265}
266var file_google_actions_sdk_v2_interactionmodel_intent_proto_depIdxs = []int32{
267	1, // 0: google.actions.sdk.v2.interactionmodel.Intent.parameters:type_name -> google.actions.sdk.v2.interactionmodel.Intent.IntentParameter
268	2, // 1: google.actions.sdk.v2.interactionmodel.Intent.IntentParameter.type:type_name -> google.actions.sdk.v2.interactionmodel.type.ClassReference
269	2, // [2:2] is the sub-list for method output_type
270	2, // [2:2] is the sub-list for method input_type
271	2, // [2:2] is the sub-list for extension type_name
272	2, // [2:2] is the sub-list for extension extendee
273	0, // [0:2] is the sub-list for field type_name
274}
275
276func init() { file_google_actions_sdk_v2_interactionmodel_intent_proto_init() }
277func file_google_actions_sdk_v2_interactionmodel_intent_proto_init() {
278	if File_google_actions_sdk_v2_interactionmodel_intent_proto != nil {
279		return
280	}
281	if !protoimpl.UnsafeEnabled {
282		file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
283			switch v := v.(*Intent); i {
284			case 0:
285				return &v.state
286			case 1:
287				return &v.sizeCache
288			case 2:
289				return &v.unknownFields
290			default:
291				return nil
292			}
293		}
294		file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
295			switch v := v.(*Intent_IntentParameter); i {
296			case 0:
297				return &v.state
298			case 1:
299				return &v.sizeCache
300			case 2:
301				return &v.unknownFields
302			default:
303				return nil
304			}
305		}
306	}
307	file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes[1].OneofWrappers = []interface{}{
308		(*Intent_IntentParameter_Type)(nil),
309	}
310	type x struct{}
311	out := protoimpl.TypeBuilder{
312		File: protoimpl.DescBuilder{
313			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
314			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDesc,
315			NumEnums:      0,
316			NumMessages:   2,
317			NumExtensions: 0,
318			NumServices:   0,
319		},
320		GoTypes:           file_google_actions_sdk_v2_interactionmodel_intent_proto_goTypes,
321		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_intent_proto_depIdxs,
322		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_intent_proto_msgTypes,
323	}.Build()
324	File_google_actions_sdk_v2_interactionmodel_intent_proto = out.File
325	file_google_actions_sdk_v2_interactionmodel_intent_proto_rawDesc = nil
326	file_google_actions_sdk_v2_interactionmodel_intent_proto_goTypes = nil
327	file_google_actions_sdk_v2_interactionmodel_intent_proto_depIdxs = nil
328}
329