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/webhook.proto 20 21package sdk 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// Metadata for different types of webhooks. If you're using 45// `inlineCloudFunction`, your source code must be in a directory with the same 46// name as the value for the `executeFunction` key. 47// For example, a value of `my_webhook` for the`executeFunction` key would have 48// a code structure like this: 49// - `/webhooks/my_webhook.yaml` 50// - `/webhooks/my_webhook/index.js` 51// - `/webhooks/my_webhook/package.json` 52type Webhook struct { 53 state protoimpl.MessageState 54 sizeCache protoimpl.SizeCache 55 unknownFields protoimpl.UnknownFields 56 57 // List of handlers for this webhook. 58 Handlers []*Webhook_Handler `protobuf:"bytes,1,rep,name=handlers,proto3" json:"handlers,omitempty"` 59 // Only one webhook type is supported. 60 // 61 // Types that are assignable to WebhookType: 62 // *Webhook_HttpsEndpoint_ 63 // *Webhook_InlineCloudFunction_ 64 WebhookType isWebhook_WebhookType `protobuf_oneof:"webhook_type"` 65} 66 67func (x *Webhook) Reset() { 68 *x = Webhook{} 69 if protoimpl.UnsafeEnabled { 70 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[0] 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 ms.StoreMessageInfo(mi) 73 } 74} 75 76func (x *Webhook) String() string { 77 return protoimpl.X.MessageStringOf(x) 78} 79 80func (*Webhook) ProtoMessage() {} 81 82func (x *Webhook) ProtoReflect() protoreflect.Message { 83 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[0] 84 if protoimpl.UnsafeEnabled && x != nil { 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 86 if ms.LoadMessageInfo() == nil { 87 ms.StoreMessageInfo(mi) 88 } 89 return ms 90 } 91 return mi.MessageOf(x) 92} 93 94// Deprecated: Use Webhook.ProtoReflect.Descriptor instead. 95func (*Webhook) Descriptor() ([]byte, []int) { 96 return file_google_actions_sdk_v2_webhook_proto_rawDescGZIP(), []int{0} 97} 98 99func (x *Webhook) GetHandlers() []*Webhook_Handler { 100 if x != nil { 101 return x.Handlers 102 } 103 return nil 104} 105 106func (m *Webhook) GetWebhookType() isWebhook_WebhookType { 107 if m != nil { 108 return m.WebhookType 109 } 110 return nil 111} 112 113func (x *Webhook) GetHttpsEndpoint() *Webhook_HttpsEndpoint { 114 if x, ok := x.GetWebhookType().(*Webhook_HttpsEndpoint_); ok { 115 return x.HttpsEndpoint 116 } 117 return nil 118} 119 120func (x *Webhook) GetInlineCloudFunction() *Webhook_InlineCloudFunction { 121 if x, ok := x.GetWebhookType().(*Webhook_InlineCloudFunction_); ok { 122 return x.InlineCloudFunction 123 } 124 return nil 125} 126 127type isWebhook_WebhookType interface { 128 isWebhook_WebhookType() 129} 130 131type Webhook_HttpsEndpoint_ struct { 132 // Custom webhook HTTPS endpoint. 133 HttpsEndpoint *Webhook_HttpsEndpoint `protobuf:"bytes,2,opt,name=https_endpoint,json=httpsEndpoint,proto3,oneof"` 134} 135 136type Webhook_InlineCloudFunction_ struct { 137 // Metadata for cloud function deployed from code in the webhooks folder. 138 InlineCloudFunction *Webhook_InlineCloudFunction `protobuf:"bytes,3,opt,name=inline_cloud_function,json=inlineCloudFunction,proto3,oneof"` 139} 140 141func (*Webhook_HttpsEndpoint_) isWebhook_WebhookType() {} 142 143func (*Webhook_InlineCloudFunction_) isWebhook_WebhookType() {} 144 145// Declares the name of the webhoook handler. A webhook can have 146// multiple handlers registered. These handlers can be called from multiple 147// places in your Actions project. 148type Webhook_Handler struct { 149 state protoimpl.MessageState 150 sizeCache protoimpl.SizeCache 151 unknownFields protoimpl.UnknownFields 152 153 // Required. Name of the handler. Must be unique across all handlers the Actions 154 // project. You can check the name of this handler to invoke the correct 155 // function in your fulfillment source code. 156 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 157} 158 159func (x *Webhook_Handler) Reset() { 160 *x = Webhook_Handler{} 161 if protoimpl.UnsafeEnabled { 162 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[1] 163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 164 ms.StoreMessageInfo(mi) 165 } 166} 167 168func (x *Webhook_Handler) String() string { 169 return protoimpl.X.MessageStringOf(x) 170} 171 172func (*Webhook_Handler) ProtoMessage() {} 173 174func (x *Webhook_Handler) ProtoReflect() protoreflect.Message { 175 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[1] 176 if protoimpl.UnsafeEnabled && x != nil { 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 if ms.LoadMessageInfo() == nil { 179 ms.StoreMessageInfo(mi) 180 } 181 return ms 182 } 183 return mi.MessageOf(x) 184} 185 186// Deprecated: Use Webhook_Handler.ProtoReflect.Descriptor instead. 187func (*Webhook_Handler) Descriptor() ([]byte, []int) { 188 return file_google_actions_sdk_v2_webhook_proto_rawDescGZIP(), []int{0, 0} 189} 190 191func (x *Webhook_Handler) GetName() string { 192 if x != nil { 193 return x.Name 194 } 195 return "" 196} 197 198// REST endpoint to notify if you're not using the inline editor. 199type Webhook_HttpsEndpoint struct { 200 state protoimpl.MessageState 201 sizeCache protoimpl.SizeCache 202 unknownFields protoimpl.UnknownFields 203 204 // The HTTPS base URL for your fulfillment endpoint (HTTP is not supported). 205 // Handler names are appended to the base URL path after a colon 206 // (following the style guide in 207 // https://cloud.google.com/apis/design/custom_methods). 208 // For example a base URL of 'https://gactions.service.com/api' would 209 // receive requests with URL 'https://gactions.service.com/api:{method}'. 210 BaseUrl string `protobuf:"bytes,1,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"` 211 // Map of HTTP parameters to be included in the POST request. 212 HttpHeaders map[string]string `protobuf:"bytes,2,rep,name=http_headers,json=httpHeaders,proto3" json:"http_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 213 // Version of the protocol used by the endpoint. This is the protocol shared 214 // by all fulfillment types and not specific to Google fulfillment type. 215 EndpointApiVersion int32 `protobuf:"varint,3,opt,name=endpoint_api_version,json=endpointApiVersion,proto3" json:"endpoint_api_version,omitempty"` 216} 217 218func (x *Webhook_HttpsEndpoint) Reset() { 219 *x = Webhook_HttpsEndpoint{} 220 if protoimpl.UnsafeEnabled { 221 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[2] 222 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 223 ms.StoreMessageInfo(mi) 224 } 225} 226 227func (x *Webhook_HttpsEndpoint) String() string { 228 return protoimpl.X.MessageStringOf(x) 229} 230 231func (*Webhook_HttpsEndpoint) ProtoMessage() {} 232 233func (x *Webhook_HttpsEndpoint) ProtoReflect() protoreflect.Message { 234 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[2] 235 if protoimpl.UnsafeEnabled && x != nil { 236 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 237 if ms.LoadMessageInfo() == nil { 238 ms.StoreMessageInfo(mi) 239 } 240 return ms 241 } 242 return mi.MessageOf(x) 243} 244 245// Deprecated: Use Webhook_HttpsEndpoint.ProtoReflect.Descriptor instead. 246func (*Webhook_HttpsEndpoint) Descriptor() ([]byte, []int) { 247 return file_google_actions_sdk_v2_webhook_proto_rawDescGZIP(), []int{0, 1} 248} 249 250func (x *Webhook_HttpsEndpoint) GetBaseUrl() string { 251 if x != nil { 252 return x.BaseUrl 253 } 254 return "" 255} 256 257func (x *Webhook_HttpsEndpoint) GetHttpHeaders() map[string]string { 258 if x != nil { 259 return x.HttpHeaders 260 } 261 return nil 262} 263 264func (x *Webhook_HttpsEndpoint) GetEndpointApiVersion() int32 { 265 if x != nil { 266 return x.EndpointApiVersion 267 } 268 return 0 269} 270 271// Holds the metadata of an inline Cloud Function deployed from the 272// webhooks folder. 273type Webhook_InlineCloudFunction struct { 274 state protoimpl.MessageState 275 sizeCache protoimpl.SizeCache 276 unknownFields protoimpl.UnknownFields 277 278 // The name of the Cloud Function entry point. The value of this field 279 // should match the name of the method exported from the source code. 280 ExecuteFunction string `protobuf:"bytes,1,opt,name=execute_function,json=executeFunction,proto3" json:"execute_function,omitempty"` 281} 282 283func (x *Webhook_InlineCloudFunction) Reset() { 284 *x = Webhook_InlineCloudFunction{} 285 if protoimpl.UnsafeEnabled { 286 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[3] 287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 288 ms.StoreMessageInfo(mi) 289 } 290} 291 292func (x *Webhook_InlineCloudFunction) String() string { 293 return protoimpl.X.MessageStringOf(x) 294} 295 296func (*Webhook_InlineCloudFunction) ProtoMessage() {} 297 298func (x *Webhook_InlineCloudFunction) ProtoReflect() protoreflect.Message { 299 mi := &file_google_actions_sdk_v2_webhook_proto_msgTypes[3] 300 if protoimpl.UnsafeEnabled && x != nil { 301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 302 if ms.LoadMessageInfo() == nil { 303 ms.StoreMessageInfo(mi) 304 } 305 return ms 306 } 307 return mi.MessageOf(x) 308} 309 310// Deprecated: Use Webhook_InlineCloudFunction.ProtoReflect.Descriptor instead. 311func (*Webhook_InlineCloudFunction) Descriptor() ([]byte, []int) { 312 return file_google_actions_sdk_v2_webhook_proto_rawDescGZIP(), []int{0, 2} 313} 314 315func (x *Webhook_InlineCloudFunction) GetExecuteFunction() string { 316 if x != nil { 317 return x.ExecuteFunction 318 } 319 return "" 320} 321 322var File_google_actions_sdk_v2_webhook_proto protoreflect.FileDescriptor 323 324var file_google_actions_sdk_v2_webhook_proto_rawDesc = []byte{ 325 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 326 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 327 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 328 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 329 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 330 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x05, 331 0x0a, 0x07, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x42, 0x0a, 0x08, 0x68, 0x61, 0x6e, 332 0x64, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 333 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 334 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x48, 0x61, 0x6e, 0x64, 335 0x6c, 0x65, 0x72, 0x52, 0x08, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x55, 0x0a, 336 0x0e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 337 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 338 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x65, 339 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x73, 0x45, 0x6e, 0x64, 0x70, 0x6f, 340 0x69, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x73, 0x45, 0x6e, 0x64, 0x70, 341 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x68, 0x0a, 0x15, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x63, 342 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 343 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 344 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x65, 0x62, 0x68, 345 0x6f, 0x6f, 0x6b, 0x2e, 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x46, 346 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x13, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 347 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x22, 348 0x0a, 0x07, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 349 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 350 0x6d, 0x65, 0x1a, 0xfe, 0x01, 0x0a, 0x0d, 0x48, 0x74, 0x74, 0x70, 0x73, 0x45, 0x6e, 0x64, 0x70, 351 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 352 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 353 0x60, 0x0a, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 354 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 355 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x65, 356 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x73, 0x45, 0x6e, 0x64, 0x70, 0x6f, 357 0x69, 0x6e, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 358 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 359 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x61, 0x70, 360 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 361 0x12, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x41, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 362 0x69, 0x6f, 0x6e, 0x1a, 0x3e, 0x0a, 0x10, 0x48, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 363 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 364 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 365 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 366 0x02, 0x38, 0x01, 0x1a, 0x40, 0x0a, 0x13, 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6c, 0x6f, 367 0x75, 0x64, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x78, 368 0x65, 0x63, 0x75, 0x74, 0x65, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 369 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x75, 0x6e, 370 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 371 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x65, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 372 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 373 0x76, 0x32, 0x42, 0x0c, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 374 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 375 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 376 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 377 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x3b, 0x73, 0x64, 0x6b, 0x62, 0x06, 0x70, 0x72, 378 0x6f, 0x74, 0x6f, 0x33, 379} 380 381var ( 382 file_google_actions_sdk_v2_webhook_proto_rawDescOnce sync.Once 383 file_google_actions_sdk_v2_webhook_proto_rawDescData = file_google_actions_sdk_v2_webhook_proto_rawDesc 384) 385 386func file_google_actions_sdk_v2_webhook_proto_rawDescGZIP() []byte { 387 file_google_actions_sdk_v2_webhook_proto_rawDescOnce.Do(func() { 388 file_google_actions_sdk_v2_webhook_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_webhook_proto_rawDescData) 389 }) 390 return file_google_actions_sdk_v2_webhook_proto_rawDescData 391} 392 393var file_google_actions_sdk_v2_webhook_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 394var file_google_actions_sdk_v2_webhook_proto_goTypes = []interface{}{ 395 (*Webhook)(nil), // 0: google.actions.sdk.v2.Webhook 396 (*Webhook_Handler)(nil), // 1: google.actions.sdk.v2.Webhook.Handler 397 (*Webhook_HttpsEndpoint)(nil), // 2: google.actions.sdk.v2.Webhook.HttpsEndpoint 398 (*Webhook_InlineCloudFunction)(nil), // 3: google.actions.sdk.v2.Webhook.InlineCloudFunction 399 nil, // 4: google.actions.sdk.v2.Webhook.HttpsEndpoint.HttpHeadersEntry 400} 401var file_google_actions_sdk_v2_webhook_proto_depIdxs = []int32{ 402 1, // 0: google.actions.sdk.v2.Webhook.handlers:type_name -> google.actions.sdk.v2.Webhook.Handler 403 2, // 1: google.actions.sdk.v2.Webhook.https_endpoint:type_name -> google.actions.sdk.v2.Webhook.HttpsEndpoint 404 3, // 2: google.actions.sdk.v2.Webhook.inline_cloud_function:type_name -> google.actions.sdk.v2.Webhook.InlineCloudFunction 405 4, // 3: google.actions.sdk.v2.Webhook.HttpsEndpoint.http_headers:type_name -> google.actions.sdk.v2.Webhook.HttpsEndpoint.HttpHeadersEntry 406 4, // [4:4] is the sub-list for method output_type 407 4, // [4:4] is the sub-list for method input_type 408 4, // [4:4] is the sub-list for extension type_name 409 4, // [4:4] is the sub-list for extension extendee 410 0, // [0:4] is the sub-list for field type_name 411} 412 413func init() { file_google_actions_sdk_v2_webhook_proto_init() } 414func file_google_actions_sdk_v2_webhook_proto_init() { 415 if File_google_actions_sdk_v2_webhook_proto != nil { 416 return 417 } 418 if !protoimpl.UnsafeEnabled { 419 file_google_actions_sdk_v2_webhook_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 420 switch v := v.(*Webhook); i { 421 case 0: 422 return &v.state 423 case 1: 424 return &v.sizeCache 425 case 2: 426 return &v.unknownFields 427 default: 428 return nil 429 } 430 } 431 file_google_actions_sdk_v2_webhook_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 432 switch v := v.(*Webhook_Handler); i { 433 case 0: 434 return &v.state 435 case 1: 436 return &v.sizeCache 437 case 2: 438 return &v.unknownFields 439 default: 440 return nil 441 } 442 } 443 file_google_actions_sdk_v2_webhook_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 444 switch v := v.(*Webhook_HttpsEndpoint); i { 445 case 0: 446 return &v.state 447 case 1: 448 return &v.sizeCache 449 case 2: 450 return &v.unknownFields 451 default: 452 return nil 453 } 454 } 455 file_google_actions_sdk_v2_webhook_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 456 switch v := v.(*Webhook_InlineCloudFunction); i { 457 case 0: 458 return &v.state 459 case 1: 460 return &v.sizeCache 461 case 2: 462 return &v.unknownFields 463 default: 464 return nil 465 } 466 } 467 } 468 file_google_actions_sdk_v2_webhook_proto_msgTypes[0].OneofWrappers = []interface{}{ 469 (*Webhook_HttpsEndpoint_)(nil), 470 (*Webhook_InlineCloudFunction_)(nil), 471 } 472 type x struct{} 473 out := protoimpl.TypeBuilder{ 474 File: protoimpl.DescBuilder{ 475 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 476 RawDescriptor: file_google_actions_sdk_v2_webhook_proto_rawDesc, 477 NumEnums: 0, 478 NumMessages: 5, 479 NumExtensions: 0, 480 NumServices: 0, 481 }, 482 GoTypes: file_google_actions_sdk_v2_webhook_proto_goTypes, 483 DependencyIndexes: file_google_actions_sdk_v2_webhook_proto_depIdxs, 484 MessageInfos: file_google_actions_sdk_v2_webhook_proto_msgTypes, 485 }.Build() 486 File_google_actions_sdk_v2_webhook_proto = out.File 487 file_google_actions_sdk_v2_webhook_proto_rawDesc = nil 488 file_google_actions_sdk_v2_webhook_proto_goTypes = nil 489 file_google_actions_sdk_v2_webhook_proto_depIdxs = nil 490} 491