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