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/validation_results.proto 20 21package sdk 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// Wrapper for repeated validation result. 44type ValidationResults struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 // Multiple validation results. 50 Results []*ValidationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 51} 52 53func (x *ValidationResults) Reset() { 54 *x = ValidationResults{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_google_actions_sdk_v2_validation_results_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60} 61 62func (x *ValidationResults) String() string { 63 return protoimpl.X.MessageStringOf(x) 64} 65 66func (*ValidationResults) ProtoMessage() {} 67 68func (x *ValidationResults) ProtoReflect() protoreflect.Message { 69 mi := &file_google_actions_sdk_v2_validation_results_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78} 79 80// Deprecated: Use ValidationResults.ProtoReflect.Descriptor instead. 81func (*ValidationResults) Descriptor() ([]byte, []int) { 82 return file_google_actions_sdk_v2_validation_results_proto_rawDescGZIP(), []int{0} 83} 84 85func (x *ValidationResults) GetResults() []*ValidationResult { 86 if x != nil { 87 return x.Results 88 } 89 return nil 90} 91 92// Represents a validation result associated with the app content. 93type ValidationResult struct { 94 state protoimpl.MessageState 95 sizeCache protoimpl.SizeCache 96 unknownFields protoimpl.UnknownFields 97 98 // Holds the validation message. 99 ValidationMessage string `protobuf:"bytes,1,opt,name=validation_message,json=validationMessage,proto3" json:"validation_message,omitempty"` 100 // Context to identify the resource the validation message relates to. 101 ValidationContext *ValidationResult_ValidationContext `protobuf:"bytes,2,opt,name=validation_context,json=validationContext,proto3" json:"validation_context,omitempty"` 102} 103 104func (x *ValidationResult) Reset() { 105 *x = ValidationResult{} 106 if protoimpl.UnsafeEnabled { 107 mi := &file_google_actions_sdk_v2_validation_results_proto_msgTypes[1] 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 ms.StoreMessageInfo(mi) 110 } 111} 112 113func (x *ValidationResult) String() string { 114 return protoimpl.X.MessageStringOf(x) 115} 116 117func (*ValidationResult) ProtoMessage() {} 118 119func (x *ValidationResult) ProtoReflect() protoreflect.Message { 120 mi := &file_google_actions_sdk_v2_validation_results_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 ValidationResult.ProtoReflect.Descriptor instead. 132func (*ValidationResult) Descriptor() ([]byte, []int) { 133 return file_google_actions_sdk_v2_validation_results_proto_rawDescGZIP(), []int{1} 134} 135 136func (x *ValidationResult) GetValidationMessage() string { 137 if x != nil { 138 return x.ValidationMessage 139 } 140 return "" 141} 142 143func (x *ValidationResult) GetValidationContext() *ValidationResult_ValidationContext { 144 if x != nil { 145 return x.ValidationContext 146 } 147 return nil 148} 149 150// Context to identify the resource the validation message relates to. 151type ValidationResult_ValidationContext struct { 152 state protoimpl.MessageState 153 sizeCache protoimpl.SizeCache 154 unknownFields protoimpl.UnknownFields 155 156 // Language code of the lozalized resource. 157 // Empty if the error is for non-localized resource. 158 // See the list of supported languages in 159 // https://developers.google.com/assistant/console/languages-locales 160 LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 161} 162 163func (x *ValidationResult_ValidationContext) Reset() { 164 *x = ValidationResult_ValidationContext{} 165 if protoimpl.UnsafeEnabled { 166 mi := &file_google_actions_sdk_v2_validation_results_proto_msgTypes[2] 167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 168 ms.StoreMessageInfo(mi) 169 } 170} 171 172func (x *ValidationResult_ValidationContext) String() string { 173 return protoimpl.X.MessageStringOf(x) 174} 175 176func (*ValidationResult_ValidationContext) ProtoMessage() {} 177 178func (x *ValidationResult_ValidationContext) ProtoReflect() protoreflect.Message { 179 mi := &file_google_actions_sdk_v2_validation_results_proto_msgTypes[2] 180 if protoimpl.UnsafeEnabled && x != nil { 181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 182 if ms.LoadMessageInfo() == nil { 183 ms.StoreMessageInfo(mi) 184 } 185 return ms 186 } 187 return mi.MessageOf(x) 188} 189 190// Deprecated: Use ValidationResult_ValidationContext.ProtoReflect.Descriptor instead. 191func (*ValidationResult_ValidationContext) Descriptor() ([]byte, []int) { 192 return file_google_actions_sdk_v2_validation_results_proto_rawDescGZIP(), []int{1, 0} 193} 194 195func (x *ValidationResult_ValidationContext) GetLanguageCode() string { 196 if x != nil { 197 return x.LanguageCode 198 } 199 return "" 200} 201 202var File_google_actions_sdk_v2_validation_results_proto protoreflect.FileDescriptor 203 204var file_google_actions_sdk_v2_validation_results_proto_rawDesc = []byte{ 205 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 206 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 207 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 208 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 209 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x22, 0x56, 0x0a, 0x11, 0x56, 0x61, 0x6c, 0x69, 0x64, 210 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x07, 211 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 212 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 213 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 214 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 215 0xe5, 0x01, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 216 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 217 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 218 0x52, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 219 0x61, 0x67, 0x65, 0x12, 0x68, 0x0a, 0x12, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 220 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 221 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 222 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 223 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 224 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x11, 0x76, 0x61, 0x6c, 0x69, 225 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x38, 0x0a, 226 0x11, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 227 0x78, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 228 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 229 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x6f, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 230 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 231 0x6b, 0x2e, 0x76, 0x32, 0x42, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 232 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 233 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 234 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 235 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 236 0x6b, 0x2f, 0x76, 0x32, 0x3b, 0x73, 0x64, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 237} 238 239var ( 240 file_google_actions_sdk_v2_validation_results_proto_rawDescOnce sync.Once 241 file_google_actions_sdk_v2_validation_results_proto_rawDescData = file_google_actions_sdk_v2_validation_results_proto_rawDesc 242) 243 244func file_google_actions_sdk_v2_validation_results_proto_rawDescGZIP() []byte { 245 file_google_actions_sdk_v2_validation_results_proto_rawDescOnce.Do(func() { 246 file_google_actions_sdk_v2_validation_results_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_validation_results_proto_rawDescData) 247 }) 248 return file_google_actions_sdk_v2_validation_results_proto_rawDescData 249} 250 251var file_google_actions_sdk_v2_validation_results_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 252var file_google_actions_sdk_v2_validation_results_proto_goTypes = []interface{}{ 253 (*ValidationResults)(nil), // 0: google.actions.sdk.v2.ValidationResults 254 (*ValidationResult)(nil), // 1: google.actions.sdk.v2.ValidationResult 255 (*ValidationResult_ValidationContext)(nil), // 2: google.actions.sdk.v2.ValidationResult.ValidationContext 256} 257var file_google_actions_sdk_v2_validation_results_proto_depIdxs = []int32{ 258 1, // 0: google.actions.sdk.v2.ValidationResults.results:type_name -> google.actions.sdk.v2.ValidationResult 259 2, // 1: google.actions.sdk.v2.ValidationResult.validation_context:type_name -> google.actions.sdk.v2.ValidationResult.ValidationContext 260 2, // [2:2] is the sub-list for method output_type 261 2, // [2:2] is the sub-list for method input_type 262 2, // [2:2] is the sub-list for extension type_name 263 2, // [2:2] is the sub-list for extension extendee 264 0, // [0:2] is the sub-list for field type_name 265} 266 267func init() { file_google_actions_sdk_v2_validation_results_proto_init() } 268func file_google_actions_sdk_v2_validation_results_proto_init() { 269 if File_google_actions_sdk_v2_validation_results_proto != nil { 270 return 271 } 272 if !protoimpl.UnsafeEnabled { 273 file_google_actions_sdk_v2_validation_results_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 274 switch v := v.(*ValidationResults); i { 275 case 0: 276 return &v.state 277 case 1: 278 return &v.sizeCache 279 case 2: 280 return &v.unknownFields 281 default: 282 return nil 283 } 284 } 285 file_google_actions_sdk_v2_validation_results_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 286 switch v := v.(*ValidationResult); i { 287 case 0: 288 return &v.state 289 case 1: 290 return &v.sizeCache 291 case 2: 292 return &v.unknownFields 293 default: 294 return nil 295 } 296 } 297 file_google_actions_sdk_v2_validation_results_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 298 switch v := v.(*ValidationResult_ValidationContext); i { 299 case 0: 300 return &v.state 301 case 1: 302 return &v.sizeCache 303 case 2: 304 return &v.unknownFields 305 default: 306 return nil 307 } 308 } 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_validation_results_proto_rawDesc, 315 NumEnums: 0, 316 NumMessages: 3, 317 NumExtensions: 0, 318 NumServices: 0, 319 }, 320 GoTypes: file_google_actions_sdk_v2_validation_results_proto_goTypes, 321 DependencyIndexes: file_google_actions_sdk_v2_validation_results_proto_depIdxs, 322 MessageInfos: file_google_actions_sdk_v2_validation_results_proto_msgTypes, 323 }.Build() 324 File_google_actions_sdk_v2_validation_results_proto = out.File 325 file_google_actions_sdk_v2_validation_results_proto_rawDesc = nil 326 file_google_actions_sdk_v2_validation_results_proto_goTypes = nil 327 file_google_actions_sdk_v2_validation_results_proto_depIdxs = nil 328} 329