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-devel
18// 	protoc        v3.12.2
19// source: google/actions/sdk/v2/interactionmodel/type/type.proto
20
21package _type
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30)
31
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39// This is a compile-time assertion that a sufficiently up-to-date version
40// of the legacy proto package is being used.
41const _ = proto.ProtoPackageIsVersion4
42
43// Declaration of a custom type, as opposed to built-in types. Types can be
44// assigned to slots in a scene or parameters of an intent's training phrases.
45// Practically, Types can be thought of as enums.
46// Note, type name is specified in the name of the file.
47type Type struct {
48	state         protoimpl.MessageState
49	sizeCache     protoimpl.SizeCache
50	unknownFields protoimpl.UnknownFields
51
52	// Selection of sub type based on the type of matching to be done.
53	//
54	// Types that are assignable to SubType:
55	//	*Type_Synonym
56	//	*Type_RegularExpression
57	//	*Type_FreeText
58	SubType isType_SubType `protobuf_oneof:"sub_type"`
59	// Set of exceptional words/phrases that shouldn't be matched by type.
60	// Note: If word/phrase is matched by the type but listed as an exclusion it
61	// won't be returned in parameter extraction result.
62	// **This field is localizable.**
63	Exclusions []string `protobuf:"bytes,4,rep,name=exclusions,proto3" json:"exclusions,omitempty"`
64}
65
66func (x *Type) Reset() {
67	*x = Type{}
68	if protoimpl.UnsafeEnabled {
69		mi := &file_google_actions_sdk_v2_interactionmodel_type_type_proto_msgTypes[0]
70		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71		ms.StoreMessageInfo(mi)
72	}
73}
74
75func (x *Type) String() string {
76	return protoimpl.X.MessageStringOf(x)
77}
78
79func (*Type) ProtoMessage() {}
80
81func (x *Type) ProtoReflect() protoreflect.Message {
82	mi := &file_google_actions_sdk_v2_interactionmodel_type_type_proto_msgTypes[0]
83	if protoimpl.UnsafeEnabled && x != nil {
84		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
85		if ms.LoadMessageInfo() == nil {
86			ms.StoreMessageInfo(mi)
87		}
88		return ms
89	}
90	return mi.MessageOf(x)
91}
92
93// Deprecated: Use Type.ProtoReflect.Descriptor instead.
94func (*Type) Descriptor() ([]byte, []int) {
95	return file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescGZIP(), []int{0}
96}
97
98func (m *Type) GetSubType() isType_SubType {
99	if m != nil {
100		return m.SubType
101	}
102	return nil
103}
104
105func (x *Type) GetSynonym() *SynonymType {
106	if x, ok := x.GetSubType().(*Type_Synonym); ok {
107		return x.Synonym
108	}
109	return nil
110}
111
112func (x *Type) GetRegularExpression() *RegularExpressionType {
113	if x, ok := x.GetSubType().(*Type_RegularExpression); ok {
114		return x.RegularExpression
115	}
116	return nil
117}
118
119func (x *Type) GetFreeText() *FreeTextType {
120	if x, ok := x.GetSubType().(*Type_FreeText); ok {
121		return x.FreeText
122	}
123	return nil
124}
125
126func (x *Type) GetExclusions() []string {
127	if x != nil {
128		return x.Exclusions
129	}
130	return nil
131}
132
133type isType_SubType interface {
134	isType_SubType()
135}
136
137type Type_Synonym struct {
138	// Synonyms type, which is essentially an enum.
139	Synonym *SynonymType `protobuf:"bytes,1,opt,name=synonym,proto3,oneof"`
140}
141
142type Type_RegularExpression struct {
143	// Regex type, allows regular expression matching.
144	RegularExpression *RegularExpressionType `protobuf:"bytes,2,opt,name=regular_expression,json=regularExpression,proto3,oneof"`
145}
146
147type Type_FreeText struct {
148	// FreeText type.
149	FreeText *FreeTextType `protobuf:"bytes,3,opt,name=free_text,json=freeText,proto3,oneof"`
150}
151
152func (*Type_Synonym) isType_SubType() {}
153
154func (*Type_RegularExpression) isType_SubType() {}
155
156func (*Type_FreeText) isType_SubType() {}
157
158var File_google_actions_sdk_v2_interactionmodel_type_type_proto protoreflect.FileDescriptor
159
160var file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDesc = []byte{
161	0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
162	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
163	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x79,
164	0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
165	0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e,
166	0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
167	0x2e, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63,
168	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74,
169	0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x74, 0x79,
170	0x70, 0x65, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x79, 0x70,
171	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
172	0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69,
173	0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f,
174	0x74, 0x79, 0x70, 0x65, 0x2f, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x65, 0x78, 0x70,
175	0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f,
176	0x74, 0x6f, 0x1a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f,
177	0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61,
178	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f,
179	0x73, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f,
180	0x74, 0x6f, 0x22, 0xd7, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x54, 0x0a, 0x07, 0x73,
181	0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67,
182	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
183	0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
184	0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x53, 0x79, 0x6e, 0x6f, 0x6e,
185	0x79, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x07, 0x73, 0x79, 0x6e, 0x6f, 0x6e, 0x79,
186	0x6d, 0x12, 0x73, 0x0a, 0x12, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x65, 0x78, 0x70,
187	0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e,
188	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
189	0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
190	0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x75,
191	0x6c, 0x61, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,
192	0x65, 0x48, 0x00, 0x52, 0x11, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x45, 0x78, 0x70, 0x72,
193	0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x09, 0x66, 0x72, 0x65, 0x65, 0x5f, 0x74,
194	0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
195	0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76,
196	0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64,
197	0x65, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x46, 0x72, 0x65, 0x65, 0x54, 0x65, 0x78, 0x74,
198	0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x66, 0x72, 0x65, 0x65, 0x54, 0x65, 0x78, 0x74,
199	0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04,
200	0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x73,
201	0x42, 0x0a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x8a, 0x01, 0x0a,
202	0x2f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69,
203	0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
204	0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65,
205	0x42, 0x09, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67,
206	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
207	0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
208	0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b,
209	0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d,
210	0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
211	0x33,
212}
213
214var (
215	file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescOnce sync.Once
216	file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDesc
217)
218
219func file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescGZIP() []byte {
220	file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescOnce.Do(func() {
221		file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescData)
222	})
223	return file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDescData
224}
225
226var file_google_actions_sdk_v2_interactionmodel_type_type_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
227var file_google_actions_sdk_v2_interactionmodel_type_type_proto_goTypes = []interface{}{
228	(*Type)(nil),                  // 0: google.actions.sdk.v2.interactionmodel.type.Type
229	(*SynonymType)(nil),           // 1: google.actions.sdk.v2.interactionmodel.type.SynonymType
230	(*RegularExpressionType)(nil), // 2: google.actions.sdk.v2.interactionmodel.type.RegularExpressionType
231	(*FreeTextType)(nil),          // 3: google.actions.sdk.v2.interactionmodel.type.FreeTextType
232}
233var file_google_actions_sdk_v2_interactionmodel_type_type_proto_depIdxs = []int32{
234	1, // 0: google.actions.sdk.v2.interactionmodel.type.Type.synonym:type_name -> google.actions.sdk.v2.interactionmodel.type.SynonymType
235	2, // 1: google.actions.sdk.v2.interactionmodel.type.Type.regular_expression:type_name -> google.actions.sdk.v2.interactionmodel.type.RegularExpressionType
236	3, // 2: google.actions.sdk.v2.interactionmodel.type.Type.free_text:type_name -> google.actions.sdk.v2.interactionmodel.type.FreeTextType
237	3, // [3:3] is the sub-list for method output_type
238	3, // [3:3] is the sub-list for method input_type
239	3, // [3:3] is the sub-list for extension type_name
240	3, // [3:3] is the sub-list for extension extendee
241	0, // [0:3] is the sub-list for field type_name
242}
243
244func init() { file_google_actions_sdk_v2_interactionmodel_type_type_proto_init() }
245func file_google_actions_sdk_v2_interactionmodel_type_type_proto_init() {
246	if File_google_actions_sdk_v2_interactionmodel_type_type_proto != nil {
247		return
248	}
249	file_google_actions_sdk_v2_interactionmodel_type_free_text_type_proto_init()
250	file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_init()
251	file_google_actions_sdk_v2_interactionmodel_type_synonym_type_proto_init()
252	if !protoimpl.UnsafeEnabled {
253		file_google_actions_sdk_v2_interactionmodel_type_type_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
254			switch v := v.(*Type); i {
255			case 0:
256				return &v.state
257			case 1:
258				return &v.sizeCache
259			case 2:
260				return &v.unknownFields
261			default:
262				return nil
263			}
264		}
265	}
266	file_google_actions_sdk_v2_interactionmodel_type_type_proto_msgTypes[0].OneofWrappers = []interface{}{
267		(*Type_Synonym)(nil),
268		(*Type_RegularExpression)(nil),
269		(*Type_FreeText)(nil),
270	}
271	type x struct{}
272	out := protoimpl.TypeBuilder{
273		File: protoimpl.DescBuilder{
274			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
275			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDesc,
276			NumEnums:      0,
277			NumMessages:   1,
278			NumExtensions: 0,
279			NumServices:   0,
280		},
281		GoTypes:           file_google_actions_sdk_v2_interactionmodel_type_type_proto_goTypes,
282		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_type_type_proto_depIdxs,
283		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_type_type_proto_msgTypes,
284	}.Build()
285	File_google_actions_sdk_v2_interactionmodel_type_type_proto = out.File
286	file_google_actions_sdk_v2_interactionmodel_type_type_proto_rawDesc = nil
287	file_google_actions_sdk_v2_interactionmodel_type_type_proto_goTypes = nil
288	file_google_actions_sdk_v2_interactionmodel_type_type_proto_depIdxs = nil
289}
290