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