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/surface.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// Possible set of surface capabilities. 44type CapabilityRequirement_SurfaceCapability int32 45 46const ( 47 // Unknown / Unspecified. 48 CapabilityRequirement_SURFACE_CAPABILITY_UNSPECIFIED CapabilityRequirement_SurfaceCapability = 0 49 // Surface supports audio output. 50 CapabilityRequirement_AUDIO_OUTPUT CapabilityRequirement_SurfaceCapability = 1 51 // Surface supports screen/visual output. 52 CapabilityRequirement_SCREEN_OUTPUT CapabilityRequirement_SurfaceCapability = 2 53 // Surface supports media response audio. 54 CapabilityRequirement_MEDIA_RESPONSE_AUDIO CapabilityRequirement_SurfaceCapability = 3 55 // Surface supports web browsers. 56 CapabilityRequirement_WEB_BROWSER CapabilityRequirement_SurfaceCapability = 4 57 // Surface supports account linking. 58 CapabilityRequirement_ACCOUNT_LINKING CapabilityRequirement_SurfaceCapability = 7 59 // Surface supports Interactive Canvas. 60 CapabilityRequirement_INTERACTIVE_CANVAS CapabilityRequirement_SurfaceCapability = 8 61 // Surface supports home storage. 62 CapabilityRequirement_HOME_STORAGE CapabilityRequirement_SurfaceCapability = 9 63) 64 65// Enum value maps for CapabilityRequirement_SurfaceCapability. 66var ( 67 CapabilityRequirement_SurfaceCapability_name = map[int32]string{ 68 0: "SURFACE_CAPABILITY_UNSPECIFIED", 69 1: "AUDIO_OUTPUT", 70 2: "SCREEN_OUTPUT", 71 3: "MEDIA_RESPONSE_AUDIO", 72 4: "WEB_BROWSER", 73 7: "ACCOUNT_LINKING", 74 8: "INTERACTIVE_CANVAS", 75 9: "HOME_STORAGE", 76 } 77 CapabilityRequirement_SurfaceCapability_value = map[string]int32{ 78 "SURFACE_CAPABILITY_UNSPECIFIED": 0, 79 "AUDIO_OUTPUT": 1, 80 "SCREEN_OUTPUT": 2, 81 "MEDIA_RESPONSE_AUDIO": 3, 82 "WEB_BROWSER": 4, 83 "ACCOUNT_LINKING": 7, 84 "INTERACTIVE_CANVAS": 8, 85 "HOME_STORAGE": 9, 86 } 87) 88 89func (x CapabilityRequirement_SurfaceCapability) Enum() *CapabilityRequirement_SurfaceCapability { 90 p := new(CapabilityRequirement_SurfaceCapability) 91 *p = x 92 return p 93} 94 95func (x CapabilityRequirement_SurfaceCapability) String() string { 96 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 97} 98 99func (CapabilityRequirement_SurfaceCapability) Descriptor() protoreflect.EnumDescriptor { 100 return file_google_actions_sdk_v2_surface_proto_enumTypes[0].Descriptor() 101} 102 103func (CapabilityRequirement_SurfaceCapability) Type() protoreflect.EnumType { 104 return &file_google_actions_sdk_v2_surface_proto_enumTypes[0] 105} 106 107func (x CapabilityRequirement_SurfaceCapability) Number() protoreflect.EnumNumber { 108 return protoreflect.EnumNumber(x) 109} 110 111// Deprecated: Use CapabilityRequirement_SurfaceCapability.Descriptor instead. 112func (CapabilityRequirement_SurfaceCapability) EnumDescriptor() ([]byte, []int) { 113 return file_google_actions_sdk_v2_surface_proto_rawDescGZIP(), []int{1, 0} 114} 115 116// Contains a set of requirements that the client surface must support to invoke 117// Actions in your project. 118type SurfaceRequirements struct { 119 state protoimpl.MessageState 120 sizeCache protoimpl.SizeCache 121 unknownFields protoimpl.UnknownFields 122 123 // The minimum set of capabilities needed to invoke the Actions in your 124 // project. If the surface is missing any of these, the Action will not be 125 // triggered. 126 MinimumRequirements []*CapabilityRequirement `protobuf:"bytes,1,rep,name=minimum_requirements,json=minimumRequirements,proto3" json:"minimum_requirements,omitempty"` 127} 128 129func (x *SurfaceRequirements) Reset() { 130 *x = SurfaceRequirements{} 131 if protoimpl.UnsafeEnabled { 132 mi := &file_google_actions_sdk_v2_surface_proto_msgTypes[0] 133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 134 ms.StoreMessageInfo(mi) 135 } 136} 137 138func (x *SurfaceRequirements) String() string { 139 return protoimpl.X.MessageStringOf(x) 140} 141 142func (*SurfaceRequirements) ProtoMessage() {} 143 144func (x *SurfaceRequirements) ProtoReflect() protoreflect.Message { 145 mi := &file_google_actions_sdk_v2_surface_proto_msgTypes[0] 146 if protoimpl.UnsafeEnabled && x != nil { 147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 148 if ms.LoadMessageInfo() == nil { 149 ms.StoreMessageInfo(mi) 150 } 151 return ms 152 } 153 return mi.MessageOf(x) 154} 155 156// Deprecated: Use SurfaceRequirements.ProtoReflect.Descriptor instead. 157func (*SurfaceRequirements) Descriptor() ([]byte, []int) { 158 return file_google_actions_sdk_v2_surface_proto_rawDescGZIP(), []int{0} 159} 160 161func (x *SurfaceRequirements) GetMinimumRequirements() []*CapabilityRequirement { 162 if x != nil { 163 return x.MinimumRequirements 164 } 165 return nil 166} 167 168// Represents a requirement about the availability of a given capability. 169type CapabilityRequirement struct { 170 state protoimpl.MessageState 171 sizeCache protoimpl.SizeCache 172 unknownFields protoimpl.UnknownFields 173 174 // The type of capability. 175 Capability CapabilityRequirement_SurfaceCapability `protobuf:"varint,1,opt,name=capability,proto3,enum=google.actions.sdk.v2.CapabilityRequirement_SurfaceCapability" json:"capability,omitempty"` 176} 177 178func (x *CapabilityRequirement) Reset() { 179 *x = CapabilityRequirement{} 180 if protoimpl.UnsafeEnabled { 181 mi := &file_google_actions_sdk_v2_surface_proto_msgTypes[1] 182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 183 ms.StoreMessageInfo(mi) 184 } 185} 186 187func (x *CapabilityRequirement) String() string { 188 return protoimpl.X.MessageStringOf(x) 189} 190 191func (*CapabilityRequirement) ProtoMessage() {} 192 193func (x *CapabilityRequirement) ProtoReflect() protoreflect.Message { 194 mi := &file_google_actions_sdk_v2_surface_proto_msgTypes[1] 195 if protoimpl.UnsafeEnabled && x != nil { 196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 197 if ms.LoadMessageInfo() == nil { 198 ms.StoreMessageInfo(mi) 199 } 200 return ms 201 } 202 return mi.MessageOf(x) 203} 204 205// Deprecated: Use CapabilityRequirement.ProtoReflect.Descriptor instead. 206func (*CapabilityRequirement) Descriptor() ([]byte, []int) { 207 return file_google_actions_sdk_v2_surface_proto_rawDescGZIP(), []int{1} 208} 209 210func (x *CapabilityRequirement) GetCapability() CapabilityRequirement_SurfaceCapability { 211 if x != nil { 212 return x.Capability 213 } 214 return CapabilityRequirement_SURFACE_CAPABILITY_UNSPECIFIED 215} 216 217var File_google_actions_sdk_v2_surface_proto protoreflect.FileDescriptor 218 219var file_google_actions_sdk_v2_surface_proto_rawDesc = []byte{ 220 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 221 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 222 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 223 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x22, 0x76, 0x0a, 0x13, 224 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 225 0x6e, 0x74, 0x73, 0x12, 0x5f, 0x0a, 0x14, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 226 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 227 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 228 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 229 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 230 0x13, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 231 0x65, 0x6e, 0x74, 0x73, 0x22, 0xc0, 0x02, 0x0a, 0x15, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 232 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x5e, 233 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 234 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 235 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 236 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 237 0x2e, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 238 0x74, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0xc6, 239 0x01, 0x0a, 0x11, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 240 0x6c, 0x69, 0x74, 0x79, 0x12, 0x22, 0x0a, 0x1e, 0x53, 0x55, 0x52, 0x46, 0x41, 0x43, 0x45, 0x5f, 241 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 242 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x55, 0x44, 0x49, 243 0x4f, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x43, 244 0x52, 0x45, 0x45, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x18, 0x0a, 245 0x14, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x5f, 246 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x45, 0x42, 0x5f, 0x42, 247 0x52, 0x4f, 0x57, 0x53, 0x45, 0x52, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x43, 0x43, 0x4f, 248 0x55, 0x4e, 0x54, 0x5f, 0x4c, 0x49, 0x4e, 0x4b, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x12, 0x16, 0x0a, 249 0x12, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x43, 0x41, 0x4e, 250 0x56, 0x41, 0x53, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x48, 0x4f, 0x4d, 0x45, 0x5f, 0x53, 0x54, 251 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x09, 0x42, 0x65, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 252 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 253 0x6b, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 254 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 255 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 256 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 257 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x3b, 0x73, 0x64, 0x6b, 0x62, 0x06, 258 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 259} 260 261var ( 262 file_google_actions_sdk_v2_surface_proto_rawDescOnce sync.Once 263 file_google_actions_sdk_v2_surface_proto_rawDescData = file_google_actions_sdk_v2_surface_proto_rawDesc 264) 265 266func file_google_actions_sdk_v2_surface_proto_rawDescGZIP() []byte { 267 file_google_actions_sdk_v2_surface_proto_rawDescOnce.Do(func() { 268 file_google_actions_sdk_v2_surface_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_surface_proto_rawDescData) 269 }) 270 return file_google_actions_sdk_v2_surface_proto_rawDescData 271} 272 273var file_google_actions_sdk_v2_surface_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 274var file_google_actions_sdk_v2_surface_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 275var file_google_actions_sdk_v2_surface_proto_goTypes = []interface{}{ 276 (CapabilityRequirement_SurfaceCapability)(0), // 0: google.actions.sdk.v2.CapabilityRequirement.SurfaceCapability 277 (*SurfaceRequirements)(nil), // 1: google.actions.sdk.v2.SurfaceRequirements 278 (*CapabilityRequirement)(nil), // 2: google.actions.sdk.v2.CapabilityRequirement 279} 280var file_google_actions_sdk_v2_surface_proto_depIdxs = []int32{ 281 2, // 0: google.actions.sdk.v2.SurfaceRequirements.minimum_requirements:type_name -> google.actions.sdk.v2.CapabilityRequirement 282 0, // 1: google.actions.sdk.v2.CapabilityRequirement.capability:type_name -> google.actions.sdk.v2.CapabilityRequirement.SurfaceCapability 283 2, // [2:2] is the sub-list for method output_type 284 2, // [2:2] is the sub-list for method input_type 285 2, // [2:2] is the sub-list for extension type_name 286 2, // [2:2] is the sub-list for extension extendee 287 0, // [0:2] is the sub-list for field type_name 288} 289 290func init() { file_google_actions_sdk_v2_surface_proto_init() } 291func file_google_actions_sdk_v2_surface_proto_init() { 292 if File_google_actions_sdk_v2_surface_proto != nil { 293 return 294 } 295 if !protoimpl.UnsafeEnabled { 296 file_google_actions_sdk_v2_surface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 297 switch v := v.(*SurfaceRequirements); i { 298 case 0: 299 return &v.state 300 case 1: 301 return &v.sizeCache 302 case 2: 303 return &v.unknownFields 304 default: 305 return nil 306 } 307 } 308 file_google_actions_sdk_v2_surface_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 309 switch v := v.(*CapabilityRequirement); i { 310 case 0: 311 return &v.state 312 case 1: 313 return &v.sizeCache 314 case 2: 315 return &v.unknownFields 316 default: 317 return nil 318 } 319 } 320 } 321 type x struct{} 322 out := protoimpl.TypeBuilder{ 323 File: protoimpl.DescBuilder{ 324 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 325 RawDescriptor: file_google_actions_sdk_v2_surface_proto_rawDesc, 326 NumEnums: 1, 327 NumMessages: 2, 328 NumExtensions: 0, 329 NumServices: 0, 330 }, 331 GoTypes: file_google_actions_sdk_v2_surface_proto_goTypes, 332 DependencyIndexes: file_google_actions_sdk_v2_surface_proto_depIdxs, 333 EnumInfos: file_google_actions_sdk_v2_surface_proto_enumTypes, 334 MessageInfos: file_google_actions_sdk_v2_surface_proto_msgTypes, 335 }.Build() 336 File_google_actions_sdk_v2_surface_proto = out.File 337 file_google_actions_sdk_v2_surface_proto_rawDesc = nil 338 file_google_actions_sdk_v2_surface_proto_goTypes = nil 339 file_google_actions_sdk_v2_surface_proto_depIdxs = nil 340} 341