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/type/regular_expression_type.proto
20
21package _type
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// Type that matches text by regular expressions.
45// **This message is localizable.**
46type RegularExpressionType struct {
47	state         protoimpl.MessageState
48	sizeCache     protoimpl.SizeCache
49	unknownFields protoimpl.UnknownFields
50
51	// Required. Named map of entities which each contain Regex strings.
52	Entities map[string]*RegularExpressionType_Entity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
53}
54
55func (x *RegularExpressionType) Reset() {
56	*x = RegularExpressionType{}
57	if protoimpl.UnsafeEnabled {
58		mi := &file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes[0]
59		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60		ms.StoreMessageInfo(mi)
61	}
62}
63
64func (x *RegularExpressionType) String() string {
65	return protoimpl.X.MessageStringOf(x)
66}
67
68func (*RegularExpressionType) ProtoMessage() {}
69
70func (x *RegularExpressionType) ProtoReflect() protoreflect.Message {
71	mi := &file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes[0]
72	if protoimpl.UnsafeEnabled && x != nil {
73		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74		if ms.LoadMessageInfo() == nil {
75			ms.StoreMessageInfo(mi)
76		}
77		return ms
78	}
79	return mi.MessageOf(x)
80}
81
82// Deprecated: Use RegularExpressionType.ProtoReflect.Descriptor instead.
83func (*RegularExpressionType) Descriptor() ([]byte, []int) {
84	return file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescGZIP(), []int{0}
85}
86
87func (x *RegularExpressionType) GetEntities() map[string]*RegularExpressionType_Entity {
88	if x != nil {
89		return x.Entities
90	}
91	return nil
92}
93
94// Represents an entity object that contains the regular expression that is
95// used for comparison.
96type RegularExpressionType_Entity struct {
97	state         protoimpl.MessageState
98	sizeCache     protoimpl.SizeCache
99	unknownFields protoimpl.UnknownFields
100
101	// Optional. Elements that will be displayed on the canvas once an entity is
102	// extracted from a query. Only relevant for canvas enabled apps.
103	Display *EntityDisplay `protobuf:"bytes,1,opt,name=display,proto3" json:"display,omitempty"`
104	// Required. Uses RE2 regex syntax (See
105	// https://github.com/google/re2/wiki/Syntax for more details)
106	RegularExpressions []string `protobuf:"bytes,2,rep,name=regular_expressions,json=regularExpressions,proto3" json:"regular_expressions,omitempty"`
107}
108
109func (x *RegularExpressionType_Entity) Reset() {
110	*x = RegularExpressionType_Entity{}
111	if protoimpl.UnsafeEnabled {
112		mi := &file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes[1]
113		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114		ms.StoreMessageInfo(mi)
115	}
116}
117
118func (x *RegularExpressionType_Entity) String() string {
119	return protoimpl.X.MessageStringOf(x)
120}
121
122func (*RegularExpressionType_Entity) ProtoMessage() {}
123
124func (x *RegularExpressionType_Entity) ProtoReflect() protoreflect.Message {
125	mi := &file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes[1]
126	if protoimpl.UnsafeEnabled && x != nil {
127		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128		if ms.LoadMessageInfo() == nil {
129			ms.StoreMessageInfo(mi)
130		}
131		return ms
132	}
133	return mi.MessageOf(x)
134}
135
136// Deprecated: Use RegularExpressionType_Entity.ProtoReflect.Descriptor instead.
137func (*RegularExpressionType_Entity) Descriptor() ([]byte, []int) {
138	return file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescGZIP(), []int{0, 0}
139}
140
141func (x *RegularExpressionType_Entity) GetDisplay() *EntityDisplay {
142	if x != nil {
143		return x.Display
144	}
145	return nil
146}
147
148func (x *RegularExpressionType_Entity) GetRegularExpressions() []string {
149	if x != nil {
150		return x.RegularExpressions
151	}
152	return nil
153}
154
155var File_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto protoreflect.FileDescriptor
156
157var file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDesc = []byte{
158	0x0a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
159	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
160	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x72, 0x65,
161	0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
162	0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2b, 0x67, 0x6f, 0x6f,
163	0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
164	0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f,
165	0x64, 0x65, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
166	0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f,
167	0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
168	0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x69, 0x73,
169	0x70, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
170	0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
171	0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x03, 0x0a, 0x15,
172	0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f,
173	0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x71, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65,
174	0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x50, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
175	0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e,
176	0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
177	0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x45, 0x78, 0x70,
178	0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x6e, 0x74, 0x69,
179	0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08,
180	0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x99, 0x01, 0x0a, 0x06, 0x45, 0x6e, 0x74,
181	0x69, 0x74, 0x79, 0x12, 0x59, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x01,
182	0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63,
183	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74,
184	0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x74, 0x79,
185	0x70, 0x65, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
186	0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x12, 0x34,
187	0x0a, 0x13, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73,
188	0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
189	0x52, 0x12, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73,
190	0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x86, 0x01, 0x0a, 0x0d, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65,
191	0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
192	0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x5f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
193	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
194	0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e,
195	0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
196	0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x45, 0x78, 0x70,
197	0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x6e, 0x74, 0x69,
198	0x74, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xa0, 0x01,
199	0x0a, 0x2f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
200	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65,
201	0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x74, 0x79, 0x70,
202	0x65, 0x42, 0x1a, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73,
203	0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
204	0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
205	0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
206	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
207	0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
208	0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x3b, 0x74, 0x79, 0x70, 0x65,
209	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
210}
211
212var (
213	file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescOnce sync.Once
214	file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDesc
215)
216
217func file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescGZIP() []byte {
218	file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescOnce.Do(func() {
219		file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescData)
220	})
221	return file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDescData
222}
223
224var file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
225var file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_goTypes = []interface{}{
226	(*RegularExpressionType)(nil),        // 0: google.actions.sdk.v2.interactionmodel.type.RegularExpressionType
227	(*RegularExpressionType_Entity)(nil), // 1: google.actions.sdk.v2.interactionmodel.type.RegularExpressionType.Entity
228	nil,                                  // 2: google.actions.sdk.v2.interactionmodel.type.RegularExpressionType.EntitiesEntry
229	(*EntityDisplay)(nil),                // 3: google.actions.sdk.v2.interactionmodel.type.EntityDisplay
230}
231var file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_depIdxs = []int32{
232	2, // 0: google.actions.sdk.v2.interactionmodel.type.RegularExpressionType.entities:type_name -> google.actions.sdk.v2.interactionmodel.type.RegularExpressionType.EntitiesEntry
233	3, // 1: google.actions.sdk.v2.interactionmodel.type.RegularExpressionType.Entity.display:type_name -> google.actions.sdk.v2.interactionmodel.type.EntityDisplay
234	1, // 2: google.actions.sdk.v2.interactionmodel.type.RegularExpressionType.EntitiesEntry.value:type_name -> google.actions.sdk.v2.interactionmodel.type.RegularExpressionType.Entity
235	3, // [3:3] is the sub-list for method output_type
236	3, // [3:3] is the sub-list for method input_type
237	3, // [3:3] is the sub-list for extension type_name
238	3, // [3:3] is the sub-list for extension extendee
239	0, // [0:3] is the sub-list for field type_name
240}
241
242func init() { file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_init() }
243func file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_init() {
244	if File_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto != nil {
245		return
246	}
247	file_google_actions_sdk_v2_interactionmodel_type_entity_display_proto_init()
248	if !protoimpl.UnsafeEnabled {
249		file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
250			switch v := v.(*RegularExpressionType); i {
251			case 0:
252				return &v.state
253			case 1:
254				return &v.sizeCache
255			case 2:
256				return &v.unknownFields
257			default:
258				return nil
259			}
260		}
261		file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
262			switch v := v.(*RegularExpressionType_Entity); i {
263			case 0:
264				return &v.state
265			case 1:
266				return &v.sizeCache
267			case 2:
268				return &v.unknownFields
269			default:
270				return nil
271			}
272		}
273	}
274	type x struct{}
275	out := protoimpl.TypeBuilder{
276		File: protoimpl.DescBuilder{
277			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
278			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDesc,
279			NumEnums:      0,
280			NumMessages:   3,
281			NumExtensions: 0,
282			NumServices:   0,
283		},
284		GoTypes:           file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_goTypes,
285		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_depIdxs,
286		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_msgTypes,
287	}.Build()
288	File_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto = out.File
289	file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_rawDesc = nil
290	file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_goTypes = nil
291	file_google_actions_sdk_v2_interactionmodel_type_regular_expression_type_proto_depIdxs = nil
292}
293