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