| 1 |
// Copyright 2025 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.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/tasks/v2beta2/target.proto |
| 20 |
|
| 21 |
package cloudtaskspb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
reflect "reflect" |
| 28 |
sync "sync" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 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 |
// The HTTP method used to execute the task. |
| 39 |
type HttpMethod int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// HTTP method unspecified |
| 43 |
HttpMethod_HTTP_METHOD_UNSPECIFIED HttpMethod = 0 |
| 44 |
// HTTP POST |
| 45 |
HttpMethod_POST HttpMethod = 1 |
| 46 |
// HTTP GET |
| 47 |
HttpMethod_GET HttpMethod = 2 |
| 48 |
// HTTP HEAD |
| 49 |
HttpMethod_HEAD HttpMethod = 3 |
| 50 |
// HTTP PUT |
| 51 |
HttpMethod_PUT HttpMethod = 4 |
| 52 |
// HTTP DELETE |
| 53 |
HttpMethod_DELETE HttpMethod = 5 |
| 54 |
// HTTP PATCH |
| 55 |
HttpMethod_PATCH HttpMethod = 6 |
| 56 |
// HTTP OPTIONS |
| 57 |
HttpMethod_OPTIONS HttpMethod = 7 |
| 58 |
) |
| 59 |
|
| 60 |
// Enum value maps for HttpMethod. |
| 61 |
var ( |
| 62 |
HttpMethod_name = map[int32]string{ |
| 63 |
0: "HTTP_METHOD_UNSPECIFIED", |
| 64 |
1: "POST", |
| 65 |
2: "GET", |
| 66 |
3: "HEAD", |
| 67 |
4: "PUT", |
| 68 |
5: "DELETE", |
| 69 |
6: "PATCH", |
| 70 |
7: "OPTIONS", |
| 71 |
} |
| 72 |
HttpMethod_value = map[string]int32{ |
| 73 |
"HTTP_METHOD_UNSPECIFIED": 0, |
| 74 |
"POST": 1, |
| 75 |
"GET": 2, |
| 76 |
"HEAD": 3, |
| 77 |
"PUT": 4, |
| 78 |
"DELETE": 5, |
| 79 |
"PATCH": 6, |
| 80 |
"OPTIONS": 7, |
| 81 |
} |
| 82 |
) |
| 83 |
|
| 84 |
func (x HttpMethod) Enum() *HttpMethod { |
| 85 |
p := new(HttpMethod) |
| 86 |
*p = x |
| 87 |
return p |
| 88 |
} |
| 89 |
|
| 90 |
func (x HttpMethod) String() string { |
| 91 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 92 |
} |
| 93 |
|
| 94 |
func (HttpMethod) Descriptor() protoreflect.EnumDescriptor { |
| 95 |
return file_google_cloud_tasks_v2beta2_target_proto_enumTypes[0].Descriptor() |
| 96 |
} |
| 97 |
|
| 98 |
func (HttpMethod) Type() protoreflect.EnumType { |
| 99 |
return &file_google_cloud_tasks_v2beta2_target_proto_enumTypes[0] |
| 100 |
} |
| 101 |
|
| 102 |
func (x HttpMethod) Number() protoreflect.EnumNumber { |
| 103 |
return protoreflect.EnumNumber(x) |
| 104 |
} |
| 105 |
|
| 106 |
// Deprecated: Use HttpMethod.Descriptor instead. |
| 107 |
func (HttpMethod) EnumDescriptor() ([]byte, []int) { |
| 108 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{0} |
| 109 |
} |
| 110 |
|
| 111 |
// The Scheme for an HTTP request. By default, it is HTTPS. |
| 112 |
type UriOverride_Scheme int32 |
| 113 |
|
| 114 |
const ( |
| 115 |
// Scheme unspecified. Defaults to HTTPS. |
| 116 |
UriOverride_SCHEME_UNSPECIFIED UriOverride_Scheme = 0 |
| 117 |
// Convert the scheme to HTTP, e.g., https://www.google.ca will change to |
| 118 |
// http://www.google.ca. |
| 119 |
UriOverride_HTTP UriOverride_Scheme = 1 |
| 120 |
// Convert the scheme to HTTPS, e.g., http://www.google.ca will change to |
| 121 |
// https://www.google.ca. |
| 122 |
UriOverride_HTTPS UriOverride_Scheme = 2 |
| 123 |
) |
| 124 |
|
| 125 |
// Enum value maps for UriOverride_Scheme. |
| 126 |
var ( |
| 127 |
UriOverride_Scheme_name = map[int32]string{ |
| 128 |
0: "SCHEME_UNSPECIFIED", |
| 129 |
1: "HTTP", |
| 130 |
2: "HTTPS", |
| 131 |
} |
| 132 |
UriOverride_Scheme_value = map[string]int32{ |
| 133 |
"SCHEME_UNSPECIFIED": 0, |
| 134 |
"HTTP": 1, |
| 135 |
"HTTPS": 2, |
| 136 |
} |
| 137 |
) |
| 138 |
|
| 139 |
func (x UriOverride_Scheme) Enum() *UriOverride_Scheme { |
| 140 |
p := new(UriOverride_Scheme) |
| 141 |
*p = x |
| 142 |
return p |
| 143 |
} |
| 144 |
|
| 145 |
func (x UriOverride_Scheme) String() string { |
| 146 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 147 |
} |
| 148 |
|
| 149 |
func (UriOverride_Scheme) Descriptor() protoreflect.EnumDescriptor { |
| 150 |
return file_google_cloud_tasks_v2beta2_target_proto_enumTypes[1].Descriptor() |
| 151 |
} |
| 152 |
|
| 153 |
func (UriOverride_Scheme) Type() protoreflect.EnumType { |
| 154 |
return &file_google_cloud_tasks_v2beta2_target_proto_enumTypes[1] |
| 155 |
} |
| 156 |
|
| 157 |
func (x UriOverride_Scheme) Number() protoreflect.EnumNumber { |
| 158 |
return protoreflect.EnumNumber(x) |
| 159 |
} |
| 160 |
|
| 161 |
// Deprecated: Use UriOverride_Scheme.Descriptor instead. |
| 162 |
func (UriOverride_Scheme) EnumDescriptor() ([]byte, []int) { |
| 163 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{8, 0} |
| 164 |
} |
| 165 |
|
| 166 |
// UriOverrideEnforceMode mode is to define enforcing mode for the override |
| 167 |
// modes. |
| 168 |
type UriOverride_UriOverrideEnforceMode int32 |
| 169 |
|
| 170 |
const ( |
| 171 |
// OverrideMode Unspecified. Defaults to ALWAYS. |
| 172 |
UriOverride_URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED UriOverride_UriOverrideEnforceMode = 0 |
| 173 |
// In the IF_NOT_EXISTS mode, queue-level configuration is only |
| 174 |
// applied where task-level configuration does not exist. |
| 175 |
UriOverride_IF_NOT_EXISTS UriOverride_UriOverrideEnforceMode = 1 |
| 176 |
// In the ALWAYS mode, queue-level configuration overrides all |
| 177 |
// task-level configuration |
| 178 |
UriOverride_ALWAYS UriOverride_UriOverrideEnforceMode = 2 |
| 179 |
) |
| 180 |
|
| 181 |
// Enum value maps for UriOverride_UriOverrideEnforceMode. |
| 182 |
var ( |
| 183 |
UriOverride_UriOverrideEnforceMode_name = map[int32]string{ |
| 184 |
0: "URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED", |
| 185 |
1: "IF_NOT_EXISTS", |
| 186 |
2: "ALWAYS", |
| 187 |
} |
| 188 |
UriOverride_UriOverrideEnforceMode_value = map[string]int32{ |
| 189 |
"URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED": 0, |
| 190 |
"IF_NOT_EXISTS": 1, |
| 191 |
"ALWAYS": 2, |
| 192 |
} |
| 193 |
) |
| 194 |
|
| 195 |
func (x UriOverride_UriOverrideEnforceMode) Enum() *UriOverride_UriOverrideEnforceMode { |
| 196 |
p := new(UriOverride_UriOverrideEnforceMode) |
| 197 |
*p = x |
| 198 |
return p |
| 199 |
} |
| 200 |
|
| 201 |
func (x UriOverride_UriOverrideEnforceMode) String() string { |
| 202 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 203 |
} |
| 204 |
|
| 205 |
func (UriOverride_UriOverrideEnforceMode) Descriptor() protoreflect.EnumDescriptor { |
| 206 |
return file_google_cloud_tasks_v2beta2_target_proto_enumTypes[2].Descriptor() |
| 207 |
} |
| 208 |
|
| 209 |
func (UriOverride_UriOverrideEnforceMode) Type() protoreflect.EnumType { |
| 210 |
return &file_google_cloud_tasks_v2beta2_target_proto_enumTypes[2] |
| 211 |
} |
| 212 |
|
| 213 |
func (x UriOverride_UriOverrideEnforceMode) Number() protoreflect.EnumNumber { |
| 214 |
return protoreflect.EnumNumber(x) |
| 215 |
} |
| 216 |
|
| 217 |
// Deprecated: Use UriOverride_UriOverrideEnforceMode.Descriptor instead. |
| 218 |
func (UriOverride_UriOverrideEnforceMode) EnumDescriptor() ([]byte, []int) { |
| 219 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{8, 1} |
| 220 |
} |
| 221 |
|
| 222 |
// Pull target. |
| 223 |
type PullTarget struct { |
| 224 |
state protoimpl.MessageState |
| 225 |
sizeCache protoimpl.SizeCache |
| 226 |
unknownFields protoimpl.UnknownFields |
| 227 |
} |
| 228 |
|
| 229 |
func (x *PullTarget) Reset() { |
| 230 |
*x = PullTarget{} |
| 231 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[0] |
| 232 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 233 |
ms.StoreMessageInfo(mi) |
| 234 |
} |
| 235 |
|
| 236 |
func (x *PullTarget) String() string { |
| 237 |
return protoimpl.X.MessageStringOf(x) |
| 238 |
} |
| 239 |
|
| 240 |
func (*PullTarget) ProtoMessage() {} |
| 241 |
|
| 242 |
func (x *PullTarget) ProtoReflect() protoreflect.Message { |
| 243 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[0] |
| 244 |
if x != nil { |
| 245 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 246 |
if ms.LoadMessageInfo() == nil { |
| 247 |
ms.StoreMessageInfo(mi) |
| 248 |
} |
| 249 |
return ms |
| 250 |
} |
| 251 |
return mi.MessageOf(x) |
| 252 |
} |
| 253 |
|
| 254 |
// Deprecated: Use PullTarget.ProtoReflect.Descriptor instead. |
| 255 |
func (*PullTarget) Descriptor() ([]byte, []int) { |
| 256 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{0} |
| 257 |
} |
| 258 |
|
| 259 |
// The pull message contains data that can be used by the caller of |
| 260 |
// [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the |
| 261 |
// task. |
| 262 |
// |
| 263 |
// This proto can only be used for tasks in a queue which has |
| 264 |
// [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] set. |
| 265 |
type PullMessage struct { |
| 266 |
state protoimpl.MessageState |
| 267 |
sizeCache protoimpl.SizeCache |
| 268 |
unknownFields protoimpl.UnknownFields |
| 269 |
|
| 270 |
// A data payload consumed by the worker to execute the task. |
| 271 |
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` |
| 272 |
// The task's tag. |
| 273 |
// |
| 274 |
// Tags allow similar tasks to be processed in a batch. If you label |
| 275 |
// tasks with a tag, your worker can |
| 276 |
// [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the |
| 277 |
// same tag using |
| 278 |
// [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, |
| 279 |
// if you want to aggregate the events associated with a specific user once a |
| 280 |
// day, you could tag tasks with the user ID. |
| 281 |
// |
| 282 |
// The task's tag can only be set when the |
| 283 |
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. |
| 284 |
// |
| 285 |
// The tag must be less than 500 characters. |
| 286 |
// |
| 287 |
// SDK compatibility: Although the SDK allows tags to be either |
| 288 |
// string or |
| 289 |
// [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), |
| 290 |
// only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8 |
| 291 |
// encoded, the tag will be empty when the task is returned by Cloud Tasks. |
| 292 |
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` |
| 293 |
} |
| 294 |
|
| 295 |
func (x *PullMessage) Reset() { |
| 296 |
*x = PullMessage{} |
| 297 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[1] |
| 298 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 299 |
ms.StoreMessageInfo(mi) |
| 300 |
} |
| 301 |
|
| 302 |
func (x *PullMessage) String() string { |
| 303 |
return protoimpl.X.MessageStringOf(x) |
| 304 |
} |
| 305 |
|
| 306 |
func (*PullMessage) ProtoMessage() {} |
| 307 |
|
| 308 |
func (x *PullMessage) ProtoReflect() protoreflect.Message { |
| 309 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[1] |
| 310 |
if x != nil { |
| 311 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 312 |
if ms.LoadMessageInfo() == nil { |
| 313 |
ms.StoreMessageInfo(mi) |
| 314 |
} |
| 315 |
return ms |
| 316 |
} |
| 317 |
return mi.MessageOf(x) |
| 318 |
} |
| 319 |
|
| 320 |
// Deprecated: Use PullMessage.ProtoReflect.Descriptor instead. |
| 321 |
func (*PullMessage) Descriptor() ([]byte, []int) { |
| 322 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{1} |
| 323 |
} |
| 324 |
|
| 325 |
func (x *PullMessage) GetPayload() []byte { |
| 326 |
if x != nil { |
| 327 |
return x.Payload |
| 328 |
} |
| 329 |
return nil |
| 330 |
} |
| 331 |
|
| 332 |
func (x *PullMessage) GetTag() string { |
| 333 |
if x != nil { |
| 334 |
return x.Tag |
| 335 |
} |
| 336 |
return "" |
| 337 |
} |
| 338 |
|
| 339 |
// App Engine HTTP target. |
| 340 |
// |
| 341 |
// The task will be delivered to the App Engine application hostname |
| 342 |
// specified by its |
| 343 |
// [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] and |
| 344 |
// [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]. The |
| 345 |
// documentation for |
| 346 |
// [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] |
| 347 |
// explains how the task's host URL is constructed. |
| 348 |
// |
| 349 |
// Using [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] |
| 350 |
// requires |
| 351 |
// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) |
| 352 |
// Google IAM permission for the project |
| 353 |
// and the following scope: |
| 354 |
// |
| 355 |
// `https://www.googleapis.com/auth/cloud-platform` |
| 356 |
type AppEngineHttpTarget struct { |
| 357 |
state protoimpl.MessageState |
| 358 |
sizeCache protoimpl.SizeCache |
| 359 |
unknownFields protoimpl.UnknownFields |
| 360 |
|
| 361 |
// Overrides for the |
| 362 |
// [task-level |
| 363 |
// app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. |
| 364 |
// |
| 365 |
// If set, `app_engine_routing_override` is used for all tasks in |
| 366 |
// the queue, no matter what the setting is for the |
| 367 |
// [task-level |
| 368 |
// app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. |
| 369 |
AppEngineRoutingOverride *AppEngineRouting `protobuf:"bytes,1,opt,name=app_engine_routing_override,json=appEngineRoutingOverride,proto3" json:"app_engine_routing_override,omitempty"` |
| 370 |
} |
| 371 |
|
| 372 |
func (x *AppEngineHttpTarget) Reset() { |
| 373 |
*x = AppEngineHttpTarget{} |
| 374 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[2] |
| 375 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 376 |
ms.StoreMessageInfo(mi) |
| 377 |
} |
| 378 |
|
| 379 |
func (x *AppEngineHttpTarget) String() string { |
| 380 |
return protoimpl.X.MessageStringOf(x) |
| 381 |
} |
| 382 |
|
| 383 |
func (*AppEngineHttpTarget) ProtoMessage() {} |
| 384 |
|
| 385 |
func (x *AppEngineHttpTarget) ProtoReflect() protoreflect.Message { |
| 386 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[2] |
| 387 |
if x != nil { |
| 388 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 389 |
if ms.LoadMessageInfo() == nil { |
| 390 |
ms.StoreMessageInfo(mi) |
| 391 |
} |
| 392 |
return ms |
| 393 |
} |
| 394 |
return mi.MessageOf(x) |
| 395 |
} |
| 396 |
|
| 397 |
// Deprecated: Use AppEngineHttpTarget.ProtoReflect.Descriptor instead. |
| 398 |
func (*AppEngineHttpTarget) Descriptor() ([]byte, []int) { |
| 399 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{2} |
| 400 |
} |
| 401 |
|
| 402 |
func (x *AppEngineHttpTarget) GetAppEngineRoutingOverride() *AppEngineRouting { |
| 403 |
if x != nil { |
| 404 |
return x.AppEngineRoutingOverride |
| 405 |
} |
| 406 |
return nil |
| 407 |
} |
| 408 |
|
| 409 |
// App Engine HTTP request. |
| 410 |
// |
| 411 |
// The message defines the HTTP request that is sent to an App Engine app when |
| 412 |
// the task is dispatched. |
| 413 |
// |
| 414 |
// This proto can only be used for tasks in a queue which has |
| 415 |
// [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] |
| 416 |
// set. |
| 417 |
// |
| 418 |
// Using [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] |
| 419 |
// requires |
| 420 |
// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) |
| 421 |
// Google IAM permission for the project |
| 422 |
// and the following scope: |
| 423 |
// |
| 424 |
// `https://www.googleapis.com/auth/cloud-platform` |
| 425 |
// |
| 426 |
// The task will be delivered to the App Engine app which belongs to the same |
| 427 |
// project as the queue. For more information, see |
| 428 |
// [How Requests are |
| 429 |
// Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) |
| 430 |
// and how routing is affected by |
| 431 |
// [dispatch |
| 432 |
// files](https://cloud.google.com/appengine/docs/python/config/dispatchref). |
| 433 |
// Traffic is encrypted during transport and never leaves Google datacenters. |
| 434 |
// Because this traffic is carried over a communication mechanism internal to |
| 435 |
// Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). |
| 436 |
// The request to the handler, however, will appear to have used the HTTP |
| 437 |
// protocol. |
| 438 |
// |
| 439 |
// The [AppEngineRouting][google.cloud.tasks.v2beta2.AppEngineRouting] used to |
| 440 |
// construct the URL that the task is delivered to can be set at the queue-level |
| 441 |
// or task-level: |
| 442 |
// |
| 443 |
// - If set, |
| 444 |
// [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override] |
| 445 |
// is used for all tasks in the queue, no matter what the setting |
| 446 |
// is for the |
| 447 |
// [task-level |
| 448 |
// app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. |
| 449 |
// |
| 450 |
// The `url` that the task will be sent to is: |
| 451 |
// |
| 452 |
// - `url =` [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] `+` |
| 453 |
// [relative_url][google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url] |
| 454 |
// |
| 455 |
// Tasks can be dispatched to secure app handlers, unsecure app handlers, and |
| 456 |
// URIs restricted with |
| 457 |
// [`login: |
| 458 |
// admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). |
| 459 |
// Because tasks are not run as any user, they cannot be dispatched to URIs |
| 460 |
// restricted with |
| 461 |
// [`login: |
| 462 |
// required`](https://cloud.google.com/appengine/docs/standard/python/config/appref) |
| 463 |
// Task dispatches also do not follow redirects. |
| 464 |
// |
| 465 |
// The task attempt has succeeded if the app's request handler returns an HTTP |
| 466 |
// response code in the range [`200` - `299`]. The task attempt has failed if |
| 467 |
// the app's handler returns a non-2xx response code or Cloud Tasks does |
| 468 |
// not receive response before the [deadline][Task.dispatch_deadline]. Failed |
| 469 |
// tasks will be retried according to the |
| 470 |
// [retry configuration][google.cloud.tasks.v2beta2.Queue.retry_config]. `503` |
| 471 |
// (Service Unavailable) is considered an App Engine system error instead of an |
| 472 |
// application error and will cause Cloud Tasks' traffic congestion control to |
| 473 |
// temporarily throttle the queue's dispatches. Unlike other types of task |
| 474 |
// targets, a `429` (Too Many Requests) response from an app handler does not |
| 475 |
// cause traffic congestion control to throttle the queue. |
| 476 |
type AppEngineHttpRequest struct { |
| 477 |
state protoimpl.MessageState |
| 478 |
sizeCache protoimpl.SizeCache |
| 479 |
unknownFields protoimpl.UnknownFields |
| 480 |
|
| 481 |
// The HTTP method to use for the request. The default is POST. |
| 482 |
// |
| 483 |
// The app's request handler for the task's target URL must be able to handle |
| 484 |
// HTTP requests with this http_method, otherwise the task attempt fails with |
| 485 |
// error code 405 (Method Not Allowed). See [Writing a push task request |
| 486 |
// handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) |
| 487 |
// and the App Engine documentation for your runtime on [How Requests are |
| 488 |
// Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). |
| 489 |
HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.tasks.v2beta2.HttpMethod" json:"http_method,omitempty"` |
| 490 |
// Task-level setting for App Engine routing. |
| 491 |
// |
| 492 |
// If set, |
| 493 |
// [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override] |
| 494 |
// is used for all tasks in the queue, no matter what the setting is for the |
| 495 |
// [task-level |
| 496 |
// app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. |
| 497 |
AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"` |
| 498 |
// The relative URL. |
| 499 |
// |
| 500 |
// The relative URL must begin with "/" and must be a valid HTTP relative URL. |
| 501 |
// It can contain a path and query string arguments. |
| 502 |
// If the relative URL is empty, then the root path "/" will be used. |
| 503 |
// No spaces are allowed, and the maximum length allowed is 2083 characters. |
| 504 |
RelativeUrl string `protobuf:"bytes,3,opt,name=relative_url,json=relativeUrl,proto3" json:"relative_url,omitempty"` |
| 505 |
// HTTP request headers. |
| 506 |
// |
| 507 |
// This map contains the header field names and values. |
| 508 |
// Headers can be set when the |
| 509 |
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. |
| 510 |
// Repeated headers are not supported but a header value can contain commas. |
| 511 |
// |
| 512 |
// Cloud Tasks sets some headers to default values: |
| 513 |
// |
| 514 |
// - `User-Agent`: By default, this header is |
| 515 |
// `"AppEngine-Google; (+http://code.google.com/appengine)"`. |
| 516 |
// This header can be modified, but Cloud Tasks will append |
| 517 |
// `"AppEngine-Google; (+http://code.google.com/appengine)"` to the |
| 518 |
// modified `User-Agent`. |
| 519 |
// |
| 520 |
// If the task has a |
| 521 |
// [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud |
| 522 |
// Tasks sets the following headers: |
| 523 |
// |
| 524 |
// - `Content-Type`: By default, the `Content-Type` header is set to |
| 525 |
// `"application/octet-stream"`. The default can be overridden by explicitly |
| 526 |
// setting `Content-Type` to a particular media type when the |
| 527 |
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. |
| 528 |
// For example, `Content-Type` can be set to `"application/json"`. |
| 529 |
// - `Content-Length`: This is computed by Cloud Tasks. This value is |
| 530 |
// output only. It cannot be changed. |
| 531 |
// |
| 532 |
// The headers below cannot be set or overridden: |
| 533 |
// |
| 534 |
// * `Host` |
| 535 |
// * `X-Google-*` |
| 536 |
// * `X-AppEngine-*` |
| 537 |
// |
| 538 |
// In addition, Cloud Tasks sets some headers when the task is dispatched, |
| 539 |
// such as headers containing information about the task; see |
| 540 |
// [request |
| 541 |
// headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). |
| 542 |
// These headers are set only when the task is dispatched, so they are not |
| 543 |
// visible when the task is returned in a Cloud Tasks response. |
| 544 |
// |
| 545 |
// Although there is no specific limit for the maximum number of headers or |
| 546 |
// the size, there is a limit on the maximum size of the |
| 547 |
// [Task][google.cloud.tasks.v2beta2.Task]. For more information, see the |
| 548 |
// [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] |
| 549 |
// documentation. |
| 550 |
Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 551 |
// Payload. |
| 552 |
// |
| 553 |
// The payload will be sent as the HTTP message body. A message |
| 554 |
// body, and thus a payload, is allowed only if the HTTP method is |
| 555 |
// POST or PUT. It is an error to set a data payload on a task with |
| 556 |
// an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod]. |
| 557 |
Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` |
| 558 |
} |
| 559 |
|
| 560 |
func (x *AppEngineHttpRequest) Reset() { |
| 561 |
*x = AppEngineHttpRequest{} |
| 562 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[3] |
| 563 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 564 |
ms.StoreMessageInfo(mi) |
| 565 |
} |
| 566 |
|
| 567 |
func (x *AppEngineHttpRequest) String() string { |
| 568 |
return protoimpl.X.MessageStringOf(x) |
| 569 |
} |
| 570 |
|
| 571 |
func (*AppEngineHttpRequest) ProtoMessage() {} |
| 572 |
|
| 573 |
func (x *AppEngineHttpRequest) ProtoReflect() protoreflect.Message { |
| 574 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[3] |
| 575 |
if x != nil { |
| 576 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 577 |
if ms.LoadMessageInfo() == nil { |
| 578 |
ms.StoreMessageInfo(mi) |
| 579 |
} |
| 580 |
return ms |
| 581 |
} |
| 582 |
return mi.MessageOf(x) |
| 583 |
} |
| 584 |
|
| 585 |
// Deprecated: Use AppEngineHttpRequest.ProtoReflect.Descriptor instead. |
| 586 |
func (*AppEngineHttpRequest) Descriptor() ([]byte, []int) { |
| 587 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{3} |
| 588 |
} |
| 589 |
|
| 590 |
func (x *AppEngineHttpRequest) GetHttpMethod() HttpMethod { |
| 591 |
if x != nil { |
| 592 |
return x.HttpMethod |
| 593 |
} |
| 594 |
return HttpMethod_HTTP_METHOD_UNSPECIFIED |
| 595 |
} |
| 596 |
|
| 597 |
func (x *AppEngineHttpRequest) GetAppEngineRouting() *AppEngineRouting { |
| 598 |
if x != nil { |
| 599 |
return x.AppEngineRouting |
| 600 |
} |
| 601 |
return nil |
| 602 |
} |
| 603 |
|
| 604 |
func (x *AppEngineHttpRequest) GetRelativeUrl() string { |
| 605 |
if x != nil { |
| 606 |
return x.RelativeUrl |
| 607 |
} |
| 608 |
return "" |
| 609 |
} |
| 610 |
|
| 611 |
func (x *AppEngineHttpRequest) GetHeaders() map[string]string { |
| 612 |
if x != nil { |
| 613 |
return x.Headers |
| 614 |
} |
| 615 |
return nil |
| 616 |
} |
| 617 |
|
| 618 |
func (x *AppEngineHttpRequest) GetPayload() []byte { |
| 619 |
if x != nil { |
| 620 |
return x.Payload |
| 621 |
} |
| 622 |
return nil |
| 623 |
} |
| 624 |
|
| 625 |
// App Engine Routing. |
| 626 |
// |
| 627 |
// Defines routing characteristics specific to App Engine - service, version, |
| 628 |
// and instance. |
| 629 |
// |
| 630 |
// For more information about services, versions, and instances see |
| 631 |
// [An Overview of App |
| 632 |
// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), |
| 633 |
// [Microservices Architecture on Google App |
| 634 |
// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), |
| 635 |
// [App Engine Standard request |
| 636 |
// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), |
| 637 |
// and [App Engine Flex request |
| 638 |
// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). |
| 639 |
type AppEngineRouting struct { |
| 640 |
state protoimpl.MessageState |
| 641 |
sizeCache protoimpl.SizeCache |
| 642 |
unknownFields protoimpl.UnknownFields |
| 643 |
|
| 644 |
// App service. |
| 645 |
// |
| 646 |
// By default, the task is sent to the service which is the default |
| 647 |
// service when the task is attempted. |
| 648 |
// |
| 649 |
// For some queues or tasks which were created using the App Engine |
| 650 |
// Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is |
| 651 |
// not parsable into |
| 652 |
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], |
| 653 |
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and |
| 654 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For |
| 655 |
// example, some tasks which were created using the App Engine SDK use a |
| 656 |
// custom domain name; custom domains are not parsed by Cloud Tasks. If |
| 657 |
// [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, |
| 658 |
// then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], |
| 659 |
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and |
| 660 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the |
| 661 |
// empty string. |
| 662 |
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` |
| 663 |
// App version. |
| 664 |
// |
| 665 |
// By default, the task is sent to the version which is the default |
| 666 |
// version when the task is attempted. |
| 667 |
// |
| 668 |
// For some queues or tasks which were created using the App Engine |
| 669 |
// Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is |
| 670 |
// not parsable into |
| 671 |
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], |
| 672 |
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and |
| 673 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For |
| 674 |
// example, some tasks which were created using the App Engine SDK use a |
| 675 |
// custom domain name; custom domains are not parsed by Cloud Tasks. If |
| 676 |
// [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, |
| 677 |
// then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], |
| 678 |
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and |
| 679 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the |
| 680 |
// empty string. |
| 681 |
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 682 |
// App instance. |
| 683 |
// |
| 684 |
// By default, the task is sent to an instance which is available when |
| 685 |
// the task is attempted. |
| 686 |
// |
| 687 |
// Requests can only be sent to a specific instance if |
| 688 |
// [manual scaling is used in App Engine |
| 689 |
// Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). |
| 690 |
// App Engine Flex does not support instances. For more information, see |
| 691 |
// [App Engine Standard request |
| 692 |
// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) |
| 693 |
// and [App Engine Flex request |
| 694 |
// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). |
| 695 |
Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` |
| 696 |
// Output only. The host that the task is sent to. |
| 697 |
// |
| 698 |
// For more information, see |
| 699 |
// [How Requests are |
| 700 |
// Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). |
| 701 |
// |
| 702 |
// The host is constructed as: |
| 703 |
// |
| 704 |
// - `host = [application_domain_name]`</br> |
| 705 |
// `| [service] + '.' + [application_domain_name]`</br> |
| 706 |
// `| [version] + '.' + [application_domain_name]`</br> |
| 707 |
// `| [version_dot_service]+ '.' + [application_domain_name]`</br> |
| 708 |
// `| [instance] + '.' + [application_domain_name]`</br> |
| 709 |
// `| [instance_dot_service] + '.' + [application_domain_name]`</br> |
| 710 |
// `| [instance_dot_version] + '.' + [application_domain_name]`</br> |
| 711 |
// `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` |
| 712 |
// |
| 713 |
// - `application_domain_name` = The domain name of the app, for |
| 714 |
// example <app-id>.appspot.com, which is associated with the |
| 715 |
// queue's project ID. Some tasks which were created using the App Engine |
| 716 |
// SDK use a custom domain name. |
| 717 |
// |
| 718 |
// * `service =` |
| 719 |
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] |
| 720 |
// |
| 721 |
// * `version =` |
| 722 |
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] |
| 723 |
// |
| 724 |
// - `version_dot_service =` |
| 725 |
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +` |
| 726 |
// [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] |
| 727 |
// |
| 728 |
// * `instance =` |
| 729 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] |
| 730 |
// |
| 731 |
// - `instance_dot_service =` |
| 732 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' |
| 733 |
// +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] |
| 734 |
// |
| 735 |
// - `instance_dot_version =` |
| 736 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' |
| 737 |
// +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] |
| 738 |
// |
| 739 |
// - `instance_dot_version_dot_service =` |
| 740 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' |
| 741 |
// +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' |
| 742 |
// +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] |
| 743 |
// |
| 744 |
// If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, |
| 745 |
// then the task will be sent to the service which is the default service when |
| 746 |
// the task is attempted. |
| 747 |
// |
| 748 |
// If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, |
| 749 |
// then the task will be sent to the version which is the default version when |
| 750 |
// the task is attempted. |
| 751 |
// |
| 752 |
// If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is |
| 753 |
// empty, then the task will be sent to an instance which is available when |
| 754 |
// the task is attempted. |
| 755 |
// |
| 756 |
// If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], |
| 757 |
// [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or |
| 758 |
// [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is |
| 759 |
// invalid, then the task will be sent to the default version of the default |
| 760 |
// service when the task is attempted. |
| 761 |
Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` |
| 762 |
} |
| 763 |
|
| 764 |
func (x *AppEngineRouting) Reset() { |
| 765 |
*x = AppEngineRouting{} |
| 766 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[4] |
| 767 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 768 |
ms.StoreMessageInfo(mi) |
| 769 |
} |
| 770 |
|
| 771 |
func (x *AppEngineRouting) String() string { |
| 772 |
return protoimpl.X.MessageStringOf(x) |
| 773 |
} |
| 774 |
|
| 775 |
func (*AppEngineRouting) ProtoMessage() {} |
| 776 |
|
| 777 |
func (x *AppEngineRouting) ProtoReflect() protoreflect.Message { |
| 778 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[4] |
| 779 |
if x != nil { |
| 780 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 781 |
if ms.LoadMessageInfo() == nil { |
| 782 |
ms.StoreMessageInfo(mi) |
| 783 |
} |
| 784 |
return ms |
| 785 |
} |
| 786 |
return mi.MessageOf(x) |
| 787 |
} |
| 788 |
|
| 789 |
// Deprecated: Use AppEngineRouting.ProtoReflect.Descriptor instead. |
| 790 |
func (*AppEngineRouting) Descriptor() ([]byte, []int) { |
| 791 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{4} |
| 792 |
} |
| 793 |
|
| 794 |
func (x *AppEngineRouting) GetService() string { |
| 795 |
if x != nil { |
| 796 |
return x.Service |
| 797 |
} |
| 798 |
return "" |
| 799 |
} |
| 800 |
|
| 801 |
func (x *AppEngineRouting) GetVersion() string { |
| 802 |
if x != nil { |
| 803 |
return x.Version |
| 804 |
} |
| 805 |
return "" |
| 806 |
} |
| 807 |
|
| 808 |
func (x *AppEngineRouting) GetInstance() string { |
| 809 |
if x != nil { |
| 810 |
return x.Instance |
| 811 |
} |
| 812 |
return "" |
| 813 |
} |
| 814 |
|
| 815 |
func (x *AppEngineRouting) GetHost() string { |
| 816 |
if x != nil { |
| 817 |
return x.Host |
| 818 |
} |
| 819 |
return "" |
| 820 |
} |
| 821 |
|
| 822 |
// HTTP request. |
| 823 |
// |
| 824 |
// The task will be pushed to the worker as an HTTP request. An HTTP request |
| 825 |
// embodies a url, an http method, headers, body and authorization for the http |
| 826 |
// task. |
| 827 |
type HttpRequest struct { |
| 828 |
state protoimpl.MessageState |
| 829 |
sizeCache protoimpl.SizeCache |
| 830 |
unknownFields protoimpl.UnknownFields |
| 831 |
|
| 832 |
// Required. The full url path that the request will be sent to. |
| 833 |
// |
| 834 |
// This string must begin with either "http://" or "https://". Some examples |
| 835 |
// are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will |
| 836 |
// encode some characters for safety and compatibility. The maximum allowed |
| 837 |
// URL length is 2083 characters after encoding. |
| 838 |
// |
| 839 |
// The `Location` header response from a redirect response [`300` - `399`] |
| 840 |
// may be followed. The redirect is not counted as a separate attempt. |
| 841 |
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` |
| 842 |
// The HTTP method to use for the request. The default is POST. |
| 843 |
HttpMethod HttpMethod `protobuf:"varint,2,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.tasks.v2beta2.HttpMethod" json:"http_method,omitempty"` |
| 844 |
// HTTP request headers. |
| 845 |
// |
| 846 |
// This map contains the header field names and values. |
| 847 |
// Headers can be set when running the |
| 848 |
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] or |
| 849 |
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.BufferTask]. |
| 850 |
// |
| 851 |
// These headers represent a subset of the headers that will accompany the |
| 852 |
// task's HTTP request. Some HTTP request headers will be ignored or replaced. |
| 853 |
// |
| 854 |
// A partial list of headers that will be ignored or replaced is: |
| 855 |
// |
| 856 |
// * Any header that is prefixed with "X-CloudTasks-" will be treated |
| 857 |
// as service header. Service headers define properties of the task and are |
| 858 |
// predefined in CloudTask. |
| 859 |
// - Host: This will be computed by Cloud Tasks and derived from |
| 860 |
// [HttpRequest.url][google.cloud.tasks.v2beta2.HttpRequest.url]. |
| 861 |
// - Content-Length: This will be computed by Cloud Tasks. |
| 862 |
// - User-Agent: This will be set to `"Google-Cloud-Tasks"`. |
| 863 |
// - `X-Google-*`: Google use only. |
| 864 |
// - `X-AppEngine-*`: Google use only. |
| 865 |
// |
| 866 |
// `Content-Type` won't be set by Cloud Tasks. You can explicitly set |
| 867 |
// `Content-Type` to a media type when the |
| 868 |
// |
| 869 |
// [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. |
| 870 |
// For example, `Content-Type` can be set to `"application/octet-stream"` or |
| 871 |
// `"application/json"`. |
| 872 |
// |
| 873 |
// Headers which can have multiple values (according to RFC2616) can be |
| 874 |
// specified using comma-separated values. |
| 875 |
// |
| 876 |
// The size of the headers must be less than 80KB. |
| 877 |
Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 878 |
// HTTP request body. |
| 879 |
// |
| 880 |
// A request body is allowed only if the |
| 881 |
// [HTTP method][google.cloud.tasks.v2beta2.HttpRequest.http_method] is POST, |
| 882 |
// PUT, or PATCH. It is an error to set body on a task with an incompatible |
| 883 |
// [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod]. |
| 884 |
Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` |
| 885 |
// The mode for generating an `Authorization` header for HTTP requests. |
| 886 |
// |
| 887 |
// If specified, all `Authorization` headers in the |
| 888 |
// [HttpRequest.headers][google.cloud.tasks.v2beta2.HttpRequest.headers] field |
| 889 |
// will be overridden. |
| 890 |
// |
| 891 |
// Types that are assignable to AuthorizationHeader: |
| 892 |
// |
| 893 |
// *HttpRequest_OauthToken |
| 894 |
// *HttpRequest_OidcToken |
| 895 |
AuthorizationHeader isHttpRequest_AuthorizationHeader `protobuf_oneof:"authorization_header"` |
| 896 |
} |
| 897 |
|
| 898 |
func (x *HttpRequest) Reset() { |
| 899 |
*x = HttpRequest{} |
| 900 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[5] |
| 901 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 902 |
ms.StoreMessageInfo(mi) |
| 903 |
} |
| 904 |
|
| 905 |
func (x *HttpRequest) String() string { |
| 906 |
return protoimpl.X.MessageStringOf(x) |
| 907 |
} |
| 908 |
|
| 909 |
func (*HttpRequest) ProtoMessage() {} |
| 910 |
|
| 911 |
func (x *HttpRequest) ProtoReflect() protoreflect.Message { |
| 912 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[5] |
| 913 |
if x != nil { |
| 914 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 915 |
if ms.LoadMessageInfo() == nil { |
| 916 |
ms.StoreMessageInfo(mi) |
| 917 |
} |
| 918 |
return ms |
| 919 |
} |
| 920 |
return mi.MessageOf(x) |
| 921 |
} |
| 922 |
|
| 923 |
// Deprecated: Use HttpRequest.ProtoReflect.Descriptor instead. |
| 924 |
func (*HttpRequest) Descriptor() ([]byte, []int) { |
| 925 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{5} |
| 926 |
} |
| 927 |
|
| 928 |
func (x *HttpRequest) GetUrl() string { |
| 929 |
if x != nil { |
| 930 |
return x.Url |
| 931 |
} |
| 932 |
return "" |
| 933 |
} |
| 934 |
|
| 935 |
func (x *HttpRequest) GetHttpMethod() HttpMethod { |
| 936 |
if x != nil { |
| 937 |
return x.HttpMethod |
| 938 |
} |
| 939 |
return HttpMethod_HTTP_METHOD_UNSPECIFIED |
| 940 |
} |
| 941 |
|
| 942 |
func (x *HttpRequest) GetHeaders() map[string]string { |
| 943 |
if x != nil { |
| 944 |
return x.Headers |
| 945 |
} |
| 946 |
return nil |
| 947 |
} |
| 948 |
|
| 949 |
func (x *HttpRequest) GetBody() []byte { |
| 950 |
if x != nil { |
| 951 |
return x.Body |
| 952 |
} |
| 953 |
return nil |
| 954 |
} |
| 955 |
|
| 956 |
func (m *HttpRequest) GetAuthorizationHeader() isHttpRequest_AuthorizationHeader { |
| 957 |
if m != nil { |
| 958 |
return m.AuthorizationHeader |
| 959 |
} |
| 960 |
return nil |
| 961 |
} |
| 962 |
|
| 963 |
func (x *HttpRequest) GetOauthToken() *OAuthToken { |
| 964 |
if x, ok := x.GetAuthorizationHeader().(*HttpRequest_OauthToken); ok { |
| 965 |
return x.OauthToken |
| 966 |
} |
| 967 |
return nil |
| 968 |
} |
| 969 |
|
| 970 |
func (x *HttpRequest) GetOidcToken() *OidcToken { |
| 971 |
if x, ok := x.GetAuthorizationHeader().(*HttpRequest_OidcToken); ok { |
| 972 |
return x.OidcToken |
| 973 |
} |
| 974 |
return nil |
| 975 |
} |
| 976 |
|
| 977 |
type isHttpRequest_AuthorizationHeader interface { |
| 978 |
isHttpRequest_AuthorizationHeader() |
| 979 |
} |
| 980 |
|
| 981 |
type HttpRequest_OauthToken struct { |
| 982 |
// If specified, an |
| 983 |
// [OAuth token](https://developers.google.com/identity/protocols/OAuth2) |
| 984 |
// will be generated and attached as an `Authorization` header in the HTTP |
| 985 |
// request. |
| 986 |
// |
| 987 |
// This type of authorization should generally only be used when calling |
| 988 |
// Google APIs hosted on *.googleapis.com. |
| 989 |
OauthToken *OAuthToken `protobuf:"bytes,5,opt,name=oauth_token,json=oauthToken,proto3,oneof"` |
| 990 |
} |
| 991 |
|
| 992 |
type HttpRequest_OidcToken struct { |
| 993 |
// If specified, an |
| 994 |
// [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) |
| 995 |
// token will be generated and attached as an `Authorization` header in the |
| 996 |
// HTTP request. |
| 997 |
// |
| 998 |
// This type of authorization can be used for many scenarios, including |
| 999 |
// calling Cloud Run, or endpoints where you intend to validate the token |
| 1000 |
// yourself. |
| 1001 |
OidcToken *OidcToken `protobuf:"bytes,6,opt,name=oidc_token,json=oidcToken,proto3,oneof"` |
| 1002 |
} |
| 1003 |
|
| 1004 |
func (*HttpRequest_OauthToken) isHttpRequest_AuthorizationHeader() {} |
| 1005 |
|
| 1006 |
func (*HttpRequest_OidcToken) isHttpRequest_AuthorizationHeader() {} |
| 1007 |
|
| 1008 |
// PathOverride. |
| 1009 |
// |
| 1010 |
// Path message defines path override for HTTP targets. |
| 1011 |
type PathOverride struct { |
| 1012 |
state protoimpl.MessageState |
| 1013 |
sizeCache protoimpl.SizeCache |
| 1014 |
unknownFields protoimpl.UnknownFields |
| 1015 |
|
| 1016 |
// The URI path (e.g., /users/1234). Default is an empty string. |
| 1017 |
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` |
| 1018 |
} |
| 1019 |
|
| 1020 |
func (x *PathOverride) Reset() { |
| 1021 |
*x = PathOverride{} |
| 1022 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[6] |
| 1023 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1024 |
ms.StoreMessageInfo(mi) |
| 1025 |
} |
| 1026 |
|
| 1027 |
func (x *PathOverride) String() string { |
| 1028 |
return protoimpl.X.MessageStringOf(x) |
| 1029 |
} |
| 1030 |
|
| 1031 |
func (*PathOverride) ProtoMessage() {} |
| 1032 |
|
| 1033 |
func (x *PathOverride) ProtoReflect() protoreflect.Message { |
| 1034 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[6] |
| 1035 |
if x != nil { |
| 1036 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1037 |
if ms.LoadMessageInfo() == nil { |
| 1038 |
ms.StoreMessageInfo(mi) |
| 1039 |
} |
| 1040 |
return ms |
| 1041 |
} |
| 1042 |
return mi.MessageOf(x) |
| 1043 |
} |
| 1044 |
|
| 1045 |
// Deprecated: Use PathOverride.ProtoReflect.Descriptor instead. |
| 1046 |
func (*PathOverride) Descriptor() ([]byte, []int) { |
| 1047 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{6} |
| 1048 |
} |
| 1049 |
|
| 1050 |
func (x *PathOverride) GetPath() string { |
| 1051 |
if x != nil { |
| 1052 |
return x.Path |
| 1053 |
} |
| 1054 |
return "" |
| 1055 |
} |
| 1056 |
|
| 1057 |
// QueryOverride. |
| 1058 |
// |
| 1059 |
// Query message defines query override for HTTP targets. |
| 1060 |
type QueryOverride struct { |
| 1061 |
state protoimpl.MessageState |
| 1062 |
sizeCache protoimpl.SizeCache |
| 1063 |
unknownFields protoimpl.UnknownFields |
| 1064 |
|
| 1065 |
// The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty |
| 1066 |
// string. |
| 1067 |
QueryParams string `protobuf:"bytes,1,opt,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"` |
| 1068 |
} |
| 1069 |
|
| 1070 |
func (x *QueryOverride) Reset() { |
| 1071 |
*x = QueryOverride{} |
| 1072 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[7] |
| 1073 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1074 |
ms.StoreMessageInfo(mi) |
| 1075 |
} |
| 1076 |
|
| 1077 |
func (x *QueryOverride) String() string { |
| 1078 |
return protoimpl.X.MessageStringOf(x) |
| 1079 |
} |
| 1080 |
|
| 1081 |
func (*QueryOverride) ProtoMessage() {} |
| 1082 |
|
| 1083 |
func (x *QueryOverride) ProtoReflect() protoreflect.Message { |
| 1084 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[7] |
| 1085 |
if x != nil { |
| 1086 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1087 |
if ms.LoadMessageInfo() == nil { |
| 1088 |
ms.StoreMessageInfo(mi) |
| 1089 |
} |
| 1090 |
return ms |
| 1091 |
} |
| 1092 |
return mi.MessageOf(x) |
| 1093 |
} |
| 1094 |
|
| 1095 |
// Deprecated: Use QueryOverride.ProtoReflect.Descriptor instead. |
| 1096 |
func (*QueryOverride) Descriptor() ([]byte, []int) { |
| 1097 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{7} |
| 1098 |
} |
| 1099 |
|
| 1100 |
func (x *QueryOverride) GetQueryParams() string { |
| 1101 |
if x != nil { |
| 1102 |
return x.QueryParams |
| 1103 |
} |
| 1104 |
return "" |
| 1105 |
} |
| 1106 |
|
| 1107 |
// Uri Override. |
| 1108 |
// |
| 1109 |
// When specified, all the HTTP tasks inside the queue will be partially or |
| 1110 |
// fully overridden depending on the configured values. |
| 1111 |
type UriOverride struct { |
| 1112 |
state protoimpl.MessageState |
| 1113 |
sizeCache protoimpl.SizeCache |
| 1114 |
unknownFields protoimpl.UnknownFields |
| 1115 |
|
| 1116 |
// Scheme override. |
| 1117 |
// |
| 1118 |
// When specified, the task URI scheme is replaced by the provided value (HTTP |
| 1119 |
// or HTTPS). |
| 1120 |
Scheme *UriOverride_Scheme `protobuf:"varint,1,opt,name=scheme,proto3,enum=google.cloud.tasks.v2beta2.UriOverride_Scheme,oneof" json:"scheme,omitempty"` |
| 1121 |
// Host override. |
| 1122 |
// |
| 1123 |
// When specified, replaces the host part of the task URL. For example, |
| 1124 |
// if the task URL is "https://www.google.com," and host value is set to |
| 1125 |
// "example.net", the overridden URI will be changed to "https://example.net." |
| 1126 |
// Host value cannot be an empty string (INVALID_ARGUMENT). |
| 1127 |
Host *string `protobuf:"bytes,2,opt,name=host,proto3,oneof" json:"host,omitempty"` |
| 1128 |
// Port override. |
| 1129 |
// |
| 1130 |
// When specified, replaces the port part of the task URI. For instance, |
| 1131 |
// for a URI http://www.google.com/foo and port=123, the overridden URI |
| 1132 |
// becomes http://www.google.com:123/foo. Note that the port value must be a |
| 1133 |
// positive integer. Setting the port to 0 (Zero) clears the URI port. |
| 1134 |
Port *int64 `protobuf:"varint,3,opt,name=port,proto3,oneof" json:"port,omitempty"` |
| 1135 |
// URI path. |
| 1136 |
// |
| 1137 |
// When specified, replaces the existing path of the task URL. Setting the |
| 1138 |
// path value to an empty string clears the URI path segment. |
| 1139 |
PathOverride *PathOverride `protobuf:"bytes,4,opt,name=path_override,json=pathOverride,proto3" json:"path_override,omitempty"` |
| 1140 |
// URI Query. |
| 1141 |
// |
| 1142 |
// When specified, replaces the query part of the task URI. Setting the |
| 1143 |
// query value to an empty string clears the URI query segment. |
| 1144 |
QueryOverride *QueryOverride `protobuf:"bytes,5,opt,name=query_override,json=queryOverride,proto3" json:"query_override,omitempty"` |
| 1145 |
// URI Override Enforce Mode |
| 1146 |
// |
| 1147 |
// When specified, determines the Target UriOverride mode. If not specified, |
| 1148 |
// it defaults to ALWAYS. |
| 1149 |
UriOverrideEnforceMode UriOverride_UriOverrideEnforceMode `protobuf:"varint,6,opt,name=uri_override_enforce_mode,json=uriOverrideEnforceMode,proto3,enum=google.cloud.tasks.v2beta2.UriOverride_UriOverrideEnforceMode" json:"uri_override_enforce_mode,omitempty"` |
| 1150 |
} |
| 1151 |
|
| 1152 |
func (x *UriOverride) Reset() { |
| 1153 |
*x = UriOverride{} |
| 1154 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[8] |
| 1155 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1156 |
ms.StoreMessageInfo(mi) |
| 1157 |
} |
| 1158 |
|
| 1159 |
func (x *UriOverride) String() string { |
| 1160 |
return protoimpl.X.MessageStringOf(x) |
| 1161 |
} |
| 1162 |
|
| 1163 |
func (*UriOverride) ProtoMessage() {} |
| 1164 |
|
| 1165 |
func (x *UriOverride) ProtoReflect() protoreflect.Message { |
| 1166 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[8] |
| 1167 |
if x != nil { |
| 1168 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1169 |
if ms.LoadMessageInfo() == nil { |
| 1170 |
ms.StoreMessageInfo(mi) |
| 1171 |
} |
| 1172 |
return ms |
| 1173 |
} |
| 1174 |
return mi.MessageOf(x) |
| 1175 |
} |
| 1176 |
|
| 1177 |
// Deprecated: Use UriOverride.ProtoReflect.Descriptor instead. |
| 1178 |
func (*UriOverride) Descriptor() ([]byte, []int) { |
| 1179 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{8} |
| 1180 |
} |
| 1181 |
|
| 1182 |
func (x *UriOverride) GetScheme() UriOverride_Scheme { |
| 1183 |
if x != nil && x.Scheme != nil { |
| 1184 |
return *x.Scheme |
| 1185 |
} |
| 1186 |
return UriOverride_SCHEME_UNSPECIFIED |
| 1187 |
} |
| 1188 |
|
| 1189 |
func (x *UriOverride) GetHost() string { |
| 1190 |
if x != nil && x.Host != nil { |
| 1191 |
return *x.Host |
| 1192 |
} |
| 1193 |
return "" |
| 1194 |
} |
| 1195 |
|
| 1196 |
func (x *UriOverride) GetPort() int64 { |
| 1197 |
if x != nil && x.Port != nil { |
| 1198 |
return *x.Port |
| 1199 |
} |
| 1200 |
return 0 |
| 1201 |
} |
| 1202 |
|
| 1203 |
func (x *UriOverride) GetPathOverride() *PathOverride { |
| 1204 |
if x != nil { |
| 1205 |
return x.PathOverride |
| 1206 |
} |
| 1207 |
return nil |
| 1208 |
} |
| 1209 |
|
| 1210 |
func (x *UriOverride) GetQueryOverride() *QueryOverride { |
| 1211 |
if x != nil { |
| 1212 |
return x.QueryOverride |
| 1213 |
} |
| 1214 |
return nil |
| 1215 |
} |
| 1216 |
|
| 1217 |
func (x *UriOverride) GetUriOverrideEnforceMode() UriOverride_UriOverrideEnforceMode { |
| 1218 |
if x != nil { |
| 1219 |
return x.UriOverrideEnforceMode |
| 1220 |
} |
| 1221 |
return UriOverride_URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED |
| 1222 |
} |
| 1223 |
|
| 1224 |
// HTTP target. |
| 1225 |
// |
| 1226 |
// When specified as a [Queue][target_type], all the tasks with [HttpRequest] |
| 1227 |
// will be overridden according to the target. |
| 1228 |
type HttpTarget struct { |
| 1229 |
state protoimpl.MessageState |
| 1230 |
sizeCache protoimpl.SizeCache |
| 1231 |
unknownFields protoimpl.UnknownFields |
| 1232 |
|
| 1233 |
// Uri override. |
| 1234 |
// |
| 1235 |
// When specified, overrides the execution Uri for all the tasks in the queue. |
| 1236 |
UriOverride *UriOverride `protobuf:"bytes,1,opt,name=uri_override,json=uriOverride,proto3" json:"uri_override,omitempty"` |
| 1237 |
// The HTTP method to use for the request. |
| 1238 |
// |
| 1239 |
// When specified, it overrides |
| 1240 |
// [HttpRequest][google.cloud.tasks.v2beta2.HttpTarget.http_method] for the |
| 1241 |
// task. Note that if the value is set to [HttpMethod][GET] the |
| 1242 |
// [HttpRequest][body] of the task will be ignored at execution time. |
| 1243 |
HttpMethod HttpMethod `protobuf:"varint,2,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.tasks.v2beta2.HttpMethod" json:"http_method,omitempty"` |
| 1244 |
// HTTP target headers. |
| 1245 |
// |
| 1246 |
// This map contains the header field names and values. |
| 1247 |
// Headers will be set when running the |
| 1248 |
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] and/or |
| 1249 |
// [task is created][google.cloud.tasks.v2beta2.CloudTasks.BufferTask]. |
| 1250 |
// |
| 1251 |
// These headers represent a subset of the headers that will accompany the |
| 1252 |
// task's HTTP request. Some HTTP request headers will be ignored or replaced. |
| 1253 |
// |
| 1254 |
// A partial list of headers that will be ignored or replaced is: |
| 1255 |
// * Any header that is prefixed with "X-CloudTasks-" will be treated |
| 1256 |
// as service header. Service headers define properties of the task and are |
| 1257 |
// predefined in CloudTask. |
| 1258 |
// - Host: This will be computed by Cloud Tasks and derived from |
| 1259 |
// [HttpRequest.url][google.cloud.tasks.v2beta2.HttpRequest.url]. |
| 1260 |
// - Content-Length: This will be computed by Cloud Tasks. |
| 1261 |
// - User-Agent: This will be set to `"Google-CloudTasks"`. |
| 1262 |
// - `X-Google-*`: Google use only. |
| 1263 |
// - `X-AppEngine-*`: Google use only. |
| 1264 |
// |
| 1265 |
// `Content-Type` won't be set by Cloud Tasks. You can explicitly set |
| 1266 |
// `Content-Type` to a media type when the |
| 1267 |
// |
| 1268 |
// [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. |
| 1269 |
// For example, `Content-Type` can be set to `"application/octet-stream"` or |
| 1270 |
// `"application/json"`. |
| 1271 |
// |
| 1272 |
// Headers which can have multiple values (according to RFC2616) can be |
| 1273 |
// specified using comma-separated values. |
| 1274 |
// |
| 1275 |
// The size of the headers must be less than 80KB. |
| 1276 |
// Queue-level headers to override headers of all the tasks in the queue. |
| 1277 |
HeaderOverrides []*HttpTarget_HeaderOverride `protobuf:"bytes,3,rep,name=header_overrides,json=headerOverrides,proto3" json:"header_overrides,omitempty"` |
| 1278 |
// The mode for generating an `Authorization` header for HTTP requests. |
| 1279 |
// |
| 1280 |
// If specified, all `Authorization` headers in the |
| 1281 |
// [HttpRequest.headers][google.cloud.tasks.v2beta2.HttpRequest.headers] field |
| 1282 |
// will be overridden. |
| 1283 |
// |
| 1284 |
// Types that are assignable to AuthorizationHeader: |
| 1285 |
// |
| 1286 |
// *HttpTarget_OauthToken |
| 1287 |
// *HttpTarget_OidcToken |
| 1288 |
AuthorizationHeader isHttpTarget_AuthorizationHeader `protobuf_oneof:"authorization_header"` |
| 1289 |
} |
| 1290 |
|
| 1291 |
func (x *HttpTarget) Reset() { |
| 1292 |
*x = HttpTarget{} |
| 1293 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[9] |
| 1294 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1295 |
ms.StoreMessageInfo(mi) |
| 1296 |
} |
| 1297 |
|
| 1298 |
func (x *HttpTarget) String() string { |
| 1299 |
return protoimpl.X.MessageStringOf(x) |
| 1300 |
} |
| 1301 |
|
| 1302 |
func (*HttpTarget) ProtoMessage() {} |
| 1303 |
|
| 1304 |
func (x *HttpTarget) ProtoReflect() protoreflect.Message { |
| 1305 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[9] |
| 1306 |
if x != nil { |
| 1307 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1308 |
if ms.LoadMessageInfo() == nil { |
| 1309 |
ms.StoreMessageInfo(mi) |
| 1310 |
} |
| 1311 |
return ms |
| 1312 |
} |
| 1313 |
return mi.MessageOf(x) |
| 1314 |
} |
| 1315 |
|
| 1316 |
// Deprecated: Use HttpTarget.ProtoReflect.Descriptor instead. |
| 1317 |
func (*HttpTarget) Descriptor() ([]byte, []int) { |
| 1318 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{9} |
| 1319 |
} |
| 1320 |
|
| 1321 |
func (x *HttpTarget) GetUriOverride() *UriOverride { |
| 1322 |
if x != nil { |
| 1323 |
return x.UriOverride |
| 1324 |
} |
| 1325 |
return nil |
| 1326 |
} |
| 1327 |
|
| 1328 |
func (x *HttpTarget) GetHttpMethod() HttpMethod { |
| 1329 |
if x != nil { |
| 1330 |
return x.HttpMethod |
| 1331 |
} |
| 1332 |
return HttpMethod_HTTP_METHOD_UNSPECIFIED |
| 1333 |
} |
| 1334 |
|
| 1335 |
func (x *HttpTarget) GetHeaderOverrides() []*HttpTarget_HeaderOverride { |
| 1336 |
if x != nil { |
| 1337 |
return x.HeaderOverrides |
| 1338 |
} |
| 1339 |
return nil |
| 1340 |
} |
| 1341 |
|
| 1342 |
func (m *HttpTarget) GetAuthorizationHeader() isHttpTarget_AuthorizationHeader { |
| 1343 |
if m != nil { |
| 1344 |
return m.AuthorizationHeader |
| 1345 |
} |
| 1346 |
return nil |
| 1347 |
} |
| 1348 |
|
| 1349 |
func (x *HttpTarget) GetOauthToken() *OAuthToken { |
| 1350 |
if x, ok := x.GetAuthorizationHeader().(*HttpTarget_OauthToken); ok { |
| 1351 |
return x.OauthToken |
| 1352 |
} |
| 1353 |
return nil |
| 1354 |
} |
| 1355 |
|
| 1356 |
func (x *HttpTarget) GetOidcToken() *OidcToken { |
| 1357 |
if x, ok := x.GetAuthorizationHeader().(*HttpTarget_OidcToken); ok { |
| 1358 |
return x.OidcToken |
| 1359 |
} |
| 1360 |
return nil |
| 1361 |
} |
| 1362 |
|
| 1363 |
type isHttpTarget_AuthorizationHeader interface { |
| 1364 |
isHttpTarget_AuthorizationHeader() |
| 1365 |
} |
| 1366 |
|
| 1367 |
type HttpTarget_OauthToken struct { |
| 1368 |
// If specified, an |
| 1369 |
// [OAuth token](https://developers.google.com/identity/protocols/OAuth2) |
| 1370 |
// will be generated and attached as an `Authorization` header in the HTTP |
| 1371 |
// request. |
| 1372 |
// |
| 1373 |
// This type of authorization should generally only be used when calling |
| 1374 |
// Google APIs hosted on *.googleapis.com. |
| 1375 |
OauthToken *OAuthToken `protobuf:"bytes,5,opt,name=oauth_token,json=oauthToken,proto3,oneof"` |
| 1376 |
} |
| 1377 |
|
| 1378 |
type HttpTarget_OidcToken struct { |
| 1379 |
// If specified, an |
| 1380 |
// [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) |
| 1381 |
// token will be generated and attached as an `Authorization` header in the |
| 1382 |
// HTTP request. |
| 1383 |
// |
| 1384 |
// This type of authorization can be used for many scenarios, including |
| 1385 |
// calling Cloud Run, or endpoints where you intend to validate the token |
| 1386 |
// yourself. |
| 1387 |
OidcToken *OidcToken `protobuf:"bytes,6,opt,name=oidc_token,json=oidcToken,proto3,oneof"` |
| 1388 |
} |
| 1389 |
|
| 1390 |
func (*HttpTarget_OauthToken) isHttpTarget_AuthorizationHeader() {} |
| 1391 |
|
| 1392 |
func (*HttpTarget_OidcToken) isHttpTarget_AuthorizationHeader() {} |
| 1393 |
|
| 1394 |
// Contains information needed for generating an |
| 1395 |
// [OAuth token](https://developers.google.com/identity/protocols/OAuth2). |
| 1396 |
// This type of authorization should generally only be used when calling Google |
| 1397 |
// APIs hosted on *.googleapis.com. |
| 1398 |
type OAuthToken struct { |
| 1399 |
state protoimpl.MessageState |
| 1400 |
sizeCache protoimpl.SizeCache |
| 1401 |
unknownFields protoimpl.UnknownFields |
| 1402 |
|
| 1403 |
// [Service account email](https://cloud.google.com/iam/docs/service-accounts) |
| 1404 |
// to be used for generating OAuth token. |
| 1405 |
// The service account must be within the same project as the queue. The |
| 1406 |
// caller must have iam.serviceAccounts.actAs permission for the service |
| 1407 |
// account. |
| 1408 |
ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` |
| 1409 |
// OAuth scope to be used for generating OAuth access token. |
| 1410 |
// If not specified, "https://www.googleapis.com/auth/cloud-platform" |
| 1411 |
// will be used. |
| 1412 |
Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` |
| 1413 |
} |
| 1414 |
|
| 1415 |
func (x *OAuthToken) Reset() { |
| 1416 |
*x = OAuthToken{} |
| 1417 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[10] |
| 1418 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1419 |
ms.StoreMessageInfo(mi) |
| 1420 |
} |
| 1421 |
|
| 1422 |
func (x *OAuthToken) String() string { |
| 1423 |
return protoimpl.X.MessageStringOf(x) |
| 1424 |
} |
| 1425 |
|
| 1426 |
func (*OAuthToken) ProtoMessage() {} |
| 1427 |
|
| 1428 |
func (x *OAuthToken) ProtoReflect() protoreflect.Message { |
| 1429 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[10] |
| 1430 |
if x != nil { |
| 1431 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1432 |
if ms.LoadMessageInfo() == nil { |
| 1433 |
ms.StoreMessageInfo(mi) |
| 1434 |
} |
| 1435 |
return ms |
| 1436 |
} |
| 1437 |
return mi.MessageOf(x) |
| 1438 |
} |
| 1439 |
|
| 1440 |
// Deprecated: Use OAuthToken.ProtoReflect.Descriptor instead. |
| 1441 |
func (*OAuthToken) Descriptor() ([]byte, []int) { |
| 1442 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{10} |
| 1443 |
} |
| 1444 |
|
| 1445 |
func (x *OAuthToken) GetServiceAccountEmail() string { |
| 1446 |
if x != nil { |
| 1447 |
return x.ServiceAccountEmail |
| 1448 |
} |
| 1449 |
return "" |
| 1450 |
} |
| 1451 |
|
| 1452 |
func (x *OAuthToken) GetScope() string { |
| 1453 |
if x != nil { |
| 1454 |
return x.Scope |
| 1455 |
} |
| 1456 |
return "" |
| 1457 |
} |
| 1458 |
|
| 1459 |
// Contains information needed for generating an |
| 1460 |
// [OpenID Connect |
| 1461 |
// token](https://developers.google.com/identity/protocols/OpenIDConnect). |
| 1462 |
// This type of authorization can be used for many scenarios, including |
| 1463 |
// calling Cloud Run, or endpoints where you intend to validate the token |
| 1464 |
// yourself. |
| 1465 |
type OidcToken struct { |
| 1466 |
state protoimpl.MessageState |
| 1467 |
sizeCache protoimpl.SizeCache |
| 1468 |
unknownFields protoimpl.UnknownFields |
| 1469 |
|
| 1470 |
// [Service account email](https://cloud.google.com/iam/docs/service-accounts) |
| 1471 |
// to be used for generating OIDC token. |
| 1472 |
// The service account must be within the same project as the queue. The |
| 1473 |
// caller must have iam.serviceAccounts.actAs permission for the service |
| 1474 |
// account. |
| 1475 |
ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` |
| 1476 |
// Audience to be used when generating OIDC token. If not specified, the URI |
| 1477 |
// specified in target will be used. |
| 1478 |
Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` |
| 1479 |
} |
| 1480 |
|
| 1481 |
func (x *OidcToken) Reset() { |
| 1482 |
*x = OidcToken{} |
| 1483 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[11] |
| 1484 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1485 |
ms.StoreMessageInfo(mi) |
| 1486 |
} |
| 1487 |
|
| 1488 |
func (x *OidcToken) String() string { |
| 1489 |
return protoimpl.X.MessageStringOf(x) |
| 1490 |
} |
| 1491 |
|
| 1492 |
func (*OidcToken) ProtoMessage() {} |
| 1493 |
|
| 1494 |
func (x *OidcToken) ProtoReflect() protoreflect.Message { |
| 1495 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[11] |
| 1496 |
if x != nil { |
| 1497 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1498 |
if ms.LoadMessageInfo() == nil { |
| 1499 |
ms.StoreMessageInfo(mi) |
| 1500 |
} |
| 1501 |
return ms |
| 1502 |
} |
| 1503 |
return mi.MessageOf(x) |
| 1504 |
} |
| 1505 |
|
| 1506 |
// Deprecated: Use OidcToken.ProtoReflect.Descriptor instead. |
| 1507 |
func (*OidcToken) Descriptor() ([]byte, []int) { |
| 1508 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{11} |
| 1509 |
} |
| 1510 |
|
| 1511 |
func (x *OidcToken) GetServiceAccountEmail() string { |
| 1512 |
if x != nil { |
| 1513 |
return x.ServiceAccountEmail |
| 1514 |
} |
| 1515 |
return "" |
| 1516 |
} |
| 1517 |
|
| 1518 |
func (x *OidcToken) GetAudience() string { |
| 1519 |
if x != nil { |
| 1520 |
return x.Audience |
| 1521 |
} |
| 1522 |
return "" |
| 1523 |
} |
| 1524 |
|
| 1525 |
// Defines a header message. A header can have a key and a value. |
| 1526 |
type HttpTarget_Header struct { |
| 1527 |
state protoimpl.MessageState |
| 1528 |
sizeCache protoimpl.SizeCache |
| 1529 |
unknownFields protoimpl.UnknownFields |
| 1530 |
|
| 1531 |
// The key of the header. |
| 1532 |
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 1533 |
// The value of the header. |
| 1534 |
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 1535 |
} |
| 1536 |
|
| 1537 |
func (x *HttpTarget_Header) Reset() { |
| 1538 |
*x = HttpTarget_Header{} |
| 1539 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[14] |
| 1540 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1541 |
ms.StoreMessageInfo(mi) |
| 1542 |
} |
| 1543 |
|
| 1544 |
func (x *HttpTarget_Header) String() string { |
| 1545 |
return protoimpl.X.MessageStringOf(x) |
| 1546 |
} |
| 1547 |
|
| 1548 |
func (*HttpTarget_Header) ProtoMessage() {} |
| 1549 |
|
| 1550 |
func (x *HttpTarget_Header) ProtoReflect() protoreflect.Message { |
| 1551 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[14] |
| 1552 |
if x != nil { |
| 1553 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1554 |
if ms.LoadMessageInfo() == nil { |
| 1555 |
ms.StoreMessageInfo(mi) |
| 1556 |
} |
| 1557 |
return ms |
| 1558 |
} |
| 1559 |
return mi.MessageOf(x) |
| 1560 |
} |
| 1561 |
|
| 1562 |
// Deprecated: Use HttpTarget_Header.ProtoReflect.Descriptor instead. |
| 1563 |
func (*HttpTarget_Header) Descriptor() ([]byte, []int) { |
| 1564 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{9, 0} |
| 1565 |
} |
| 1566 |
|
| 1567 |
func (x *HttpTarget_Header) GetKey() string { |
| 1568 |
if x != nil { |
| 1569 |
return x.Key |
| 1570 |
} |
| 1571 |
return "" |
| 1572 |
} |
| 1573 |
|
| 1574 |
func (x *HttpTarget_Header) GetValue() string { |
| 1575 |
if x != nil { |
| 1576 |
return x.Value |
| 1577 |
} |
| 1578 |
return "" |
| 1579 |
} |
| 1580 |
|
| 1581 |
// Wraps the Header object. |
| 1582 |
type HttpTarget_HeaderOverride struct { |
| 1583 |
state protoimpl.MessageState |
| 1584 |
sizeCache protoimpl.SizeCache |
| 1585 |
unknownFields protoimpl.UnknownFields |
| 1586 |
|
| 1587 |
// header embodying a key and a value. |
| 1588 |
Header *HttpTarget_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 1589 |
} |
| 1590 |
|
| 1591 |
func (x *HttpTarget_HeaderOverride) Reset() { |
| 1592 |
*x = HttpTarget_HeaderOverride{} |
| 1593 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[15] |
| 1594 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1595 |
ms.StoreMessageInfo(mi) |
| 1596 |
} |
| 1597 |
|
| 1598 |
func (x *HttpTarget_HeaderOverride) String() string { |
| 1599 |
return protoimpl.X.MessageStringOf(x) |
| 1600 |
} |
| 1601 |
|
| 1602 |
func (*HttpTarget_HeaderOverride) ProtoMessage() {} |
| 1603 |
|
| 1604 |
func (x *HttpTarget_HeaderOverride) ProtoReflect() protoreflect.Message { |
| 1605 |
mi := &file_google_cloud_tasks_v2beta2_target_proto_msgTypes[15] |
| 1606 |
if x != nil { |
| 1607 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1608 |
if ms.LoadMessageInfo() == nil { |
| 1609 |
ms.StoreMessageInfo(mi) |
| 1610 |
} |
| 1611 |
return ms |
| 1612 |
} |
| 1613 |
return mi.MessageOf(x) |
| 1614 |
} |
| 1615 |
|
| 1616 |
// Deprecated: Use HttpTarget_HeaderOverride.ProtoReflect.Descriptor instead. |
| 1617 |
func (*HttpTarget_HeaderOverride) Descriptor() ([]byte, []int) { |
| 1618 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP(), []int{9, 1} |
| 1619 |
} |
| 1620 |
|
| 1621 |
func (x *HttpTarget_HeaderOverride) GetHeader() *HttpTarget_Header { |
| 1622 |
if x != nil { |
| 1623 |
return x.Header |
| 1624 |
} |
| 1625 |
return nil |
| 1626 |
} |
| 1627 |
|
| 1628 |
var File_google_cloud_tasks_v2beta2_target_proto protoreflect.FileDescriptor |
| 1629 |
|
| 1630 |
var file_google_cloud_tasks_v2beta2_target_proto_rawDesc = []byte{ |
| 1631 |
0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, |
| 1632 |
0x61, 0x73, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x74, 0x61, 0x72, |
| 1633 |
0x67, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1634 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, |
| 1635 |
0x62, 0x65, 0x74, 0x61, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, |
| 1636 |
0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, |
| 1637 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0c, 0x0a, 0x0a, 0x50, 0x75, 0x6c, 0x6c, 0x54, 0x61, |
| 1638 |
0x72, 0x67, 0x65, 0x74, 0x22, 0x39, 0x0a, 0x0b, 0x50, 0x75, 0x6c, 0x6c, 0x4d, 0x65, 0x73, 0x73, |
| 1639 |
0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, |
| 1640 |
0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x10, 0x0a, |
| 1641 |
0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, |
| 1642 |
0x82, 0x01, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 0x74, |
| 1643 |
0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x6b, 0x0a, 0x1b, 0x61, 0x70, 0x70, 0x5f, 0x65, |
| 1644 |
0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x76, |
| 1645 |
0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, |
| 1646 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, |
| 1647 |
0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, |
| 1648 |
0x69, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x18, 0x61, 0x70, 0x70, 0x45, |
| 1649 |
0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x4f, 0x76, 0x65, 0x72, |
| 1650 |
0x72, 0x69, 0x64, 0x65, 0x22, 0x8d, 0x03, 0x0a, 0x14, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, |
| 1651 |
0x6e, 0x65, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, |
| 1652 |
0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, |
| 1653 |
0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 1654 |
0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, |
| 1655 |
0x48, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, |
| 1656 |
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x70, 0x70, 0x5f, 0x65, 0x6e, |
| 1657 |
0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, |
| 1658 |
0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 1659 |
0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, |
| 1660 |
0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, |
| 1661 |
0x52, 0x10, 0x61, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, |
| 1662 |
0x6e, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, |
| 1663 |
0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, |
| 1664 |
0x76, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x57, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, |
| 1665 |
0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1666 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, |
| 1667 |
0x74, 0x61, 0x32, 0x2e, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 0x74, |
| 1668 |
0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, |
| 1669 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x18, |
| 1670 |
0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, |
| 1671 |
0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, |
| 1672 |
0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, |
| 1673 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, |
| 1674 |
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 1675 |
0x3a, 0x02, 0x38, 0x01, 0x22, 0x76, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, |
| 1676 |
0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, |
| 1677 |
0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, |
| 1678 |
0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, |
| 1679 |
0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, |
| 1680 |
0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, |
| 1681 |
0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, |
| 1682 |
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x22, 0xb8, 0x03, 0x0a, |
| 1683 |
0x0b, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x03, |
| 1684 |
0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, |
| 1685 |
0x75, 0x72, 0x6c, 0x12, 0x47, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, |
| 1686 |
0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1687 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, |
| 1688 |
0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, |
| 1689 |
0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x4e, 0x0a, 0x07, |
| 1690 |
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, |
| 1691 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, |
| 1692 |
0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52, |
| 1693 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, |
| 1694 |
0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, |
| 1695 |
0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, |
| 1696 |
0x12, 0x49, 0x0a, 0x0b, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, |
| 1697 |
0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1698 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 1699 |
0x61, 0x32, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, |
| 1700 |
0x0a, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x46, 0x0a, 0x0a, 0x6f, |
| 1701 |
0x69, 0x64, 0x63, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 1702 |
0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, |
| 1703 |
0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x4f, 0x69, 0x64, |
| 1704 |
0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x69, 0x64, 0x63, 0x54, 0x6f, |
| 1705 |
0x6b, 0x65, 0x6e, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, |
| 1706 |
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 1707 |
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, |
| 1708 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, |
| 1709 |
0x16, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1710 |
0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x22, 0x0a, 0x0c, 0x50, 0x61, 0x74, 0x68, 0x4f, |
| 1711 |
0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, |
| 1712 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x32, 0x0a, 0x0d, 0x51, |
| 1713 |
0x75, 0x65, 0x72, 0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, |
| 1714 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, |
| 1715 |
0x28, 0x09, 0x52, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, |
| 1716 |
0xe0, 0x04, 0x0a, 0x0b, 0x55, 0x72, 0x69, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, |
| 1717 |
0x4b, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, |
| 1718 |
0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, |
| 1719 |
0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x55, 0x72, 0x69, |
| 1720 |
0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x48, |
| 1721 |
0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, |
| 1722 |
0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x04, 0x68, 0x6f, |
| 1723 |
0x73, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, |
| 1724 |
0x01, 0x28, 0x03, 0x48, 0x02, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4d, |
| 1725 |
0x0a, 0x0d, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, |
| 1726 |
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1727 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 1728 |
0x61, 0x32, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, |
| 1729 |
0x0c, 0x70, 0x61, 0x74, 0x68, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x50, 0x0a, |
| 1730 |
0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, |
| 1731 |
0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1732 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 1733 |
0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, |
| 1734 |
0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, |
| 1735 |
0x79, 0x0a, 0x19, 0x75, 0x72, 0x69, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, |
| 1736 |
0x65, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, |
| 1737 |
0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 1738 |
0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, |
| 1739 |
0x55, 0x72, 0x69, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x2e, 0x55, 0x72, 0x69, 0x4f, |
| 1740 |
0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x45, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4d, 0x6f, |
| 1741 |
0x64, 0x65, 0x52, 0x16, 0x75, 0x72, 0x69, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x45, |
| 1742 |
0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x35, 0x0a, 0x06, 0x53, 0x63, |
| 1743 |
0x68, 0x65, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x45, 0x5f, 0x55, |
| 1744 |
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, |
| 1745 |
0x48, 0x54, 0x54, 0x50, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, |
| 1746 |
0x02, 0x22, 0x62, 0x0a, 0x16, 0x55, 0x72, 0x69, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, |
| 1747 |
0x45, 0x6e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x29, 0x0a, 0x25, 0x55, |
| 1748 |
0x52, 0x49, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x52, 0x49, 0x44, 0x45, 0x5f, 0x45, 0x4e, 0x46, 0x4f, |
| 1749 |
0x52, 0x43, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, |
| 1750 |
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x46, 0x5f, 0x4e, 0x4f, 0x54, |
| 1751 |
0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x4c, 0x57, |
| 1752 |
0x41, 0x59, 0x53, 0x10, 0x02, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, |
| 1753 |
0x42, 0x07, 0x0a, 0x05, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x6f, |
| 1754 |
0x72, 0x74, 0x22, 0xb9, 0x04, 0x0a, 0x0a, 0x48, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, |
| 1755 |
0x74, 0x12, 0x4a, 0x0a, 0x0c, 0x75, 0x72, 0x69, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, |
| 1756 |
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1757 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, |
| 1758 |
0x65, 0x74, 0x61, 0x32, 0x2e, 0x55, 0x72, 0x69, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, |
| 1759 |
0x52, 0x0b, 0x75, 0x72, 0x69, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x47, 0x0a, |
| 1760 |
0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, |
| 1761 |
0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 1762 |
0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, |
| 1763 |
0x48, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, |
| 1764 |
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x60, 0x0a, 0x10, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, |
| 1765 |
0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, |
| 1766 |
0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1767 |
0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x48, 0x74, |
| 1768 |
0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4f, |
| 1769 |
0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x0f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4f, |
| 1770 |
0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x49, 0x0a, 0x0b, 0x6f, 0x61, 0x75, 0x74, |
| 1771 |
0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, |
| 1772 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, |
| 1773 |
0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, |
| 1774 |
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, |
| 1775 |
0x6b, 0x65, 0x6e, 0x12, 0x46, 0x0a, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x74, 0x6f, 0x6b, 0x65, |
| 1776 |
0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1777 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, |
| 1778 |
0x65, 0x74, 0x61, 0x32, 0x2e, 0x4f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, |
| 1779 |
0x52, 0x09, 0x6f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x30, 0x0a, 0x06, 0x48, |
| 1780 |
0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 1781 |
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 1782 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x57, 0x0a, |
| 1783 |
0x0e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, |
| 1784 |
0x45, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 1785 |
0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, |
| 1786 |
0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x48, 0x74, 0x74, |
| 1787 |
0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, |
| 1788 |
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x16, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, |
| 1789 |
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x56, |
| 1790 |
0x0a, 0x0a, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x15, |
| 1791 |
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, |
| 1792 |
0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, |
| 1793 |
0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, |
| 1794 |
0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 1795 |
0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x22, 0x5b, 0x0a, 0x09, 0x4f, 0x69, 0x64, 0x63, 0x54, 0x6f, |
| 1796 |
0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, |
| 1797 |
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, |
| 1798 |
0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, |
| 1799 |
0x6e, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, |
| 1800 |
0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, |
| 1801 |
0x6e, 0x63, 0x65, 0x2a, 0x73, 0x0a, 0x0a, 0x48, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, |
| 1802 |
0x64, 0x12, 0x1b, 0x0a, 0x17, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, |
| 1803 |
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, |
| 1804 |
0x0a, 0x04, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54, 0x10, |
| 1805 |
0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x45, 0x41, 0x44, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x50, |
| 1806 |
0x55, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x05, |
| 1807 |
0x12, 0x09, 0x0a, 0x05, 0x50, 0x41, 0x54, 0x43, 0x48, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x4f, |
| 1808 |
0x50, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x07, 0x42, 0x74, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, |
| 1809 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, |
| 1810 |
0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, 0x0b, 0x54, 0x61, 0x72, 0x67, |
| 1811 |
0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1812 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x63, |
| 1813 |
0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, |
| 1814 |
0x65, 0x74, 0x61, 0x32, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70, |
| 1815 |
0x62, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70, 0x62, 0x62, 0x06, |
| 1816 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1817 |
} |
| 1818 |
|
| 1819 |
var ( |
| 1820 |
file_google_cloud_tasks_v2beta2_target_proto_rawDescOnce sync.Once |
| 1821 |
file_google_cloud_tasks_v2beta2_target_proto_rawDescData = file_google_cloud_tasks_v2beta2_target_proto_rawDesc |
| 1822 |
) |
| 1823 |
|
| 1824 |
func file_google_cloud_tasks_v2beta2_target_proto_rawDescGZIP() []byte { |
| 1825 |
file_google_cloud_tasks_v2beta2_target_proto_rawDescOnce.Do(func() { |
| 1826 |
file_google_cloud_tasks_v2beta2_target_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_tasks_v2beta2_target_proto_rawDescData) |
| 1827 |
}) |
| 1828 |
return file_google_cloud_tasks_v2beta2_target_proto_rawDescData |
| 1829 |
} |
| 1830 |
|
| 1831 |
var file_google_cloud_tasks_v2beta2_target_proto_enumTypes = make([]protoimpl.EnumInfo, 3) |
| 1832 |
var file_google_cloud_tasks_v2beta2_target_proto_msgTypes = make([]protoimpl.MessageInfo, 16) |
| 1833 |
var file_google_cloud_tasks_v2beta2_target_proto_goTypes = []any{ |
| 1834 |
(HttpMethod)(0), // 0: google.cloud.tasks.v2beta2.HttpMethod |
| 1835 |
(UriOverride_Scheme)(0), // 1: google.cloud.tasks.v2beta2.UriOverride.Scheme |
| 1836 |
(UriOverride_UriOverrideEnforceMode)(0), // 2: google.cloud.tasks.v2beta2.UriOverride.UriOverrideEnforceMode |
| 1837 |
(*PullTarget)(nil), // 3: google.cloud.tasks.v2beta2.PullTarget |
| 1838 |
(*PullMessage)(nil), // 4: google.cloud.tasks.v2beta2.PullMessage |
| 1839 |
(*AppEngineHttpTarget)(nil), // 5: google.cloud.tasks.v2beta2.AppEngineHttpTarget |
| 1840 |
(*AppEngineHttpRequest)(nil), // 6: google.cloud.tasks.v2beta2.AppEngineHttpRequest |
| 1841 |
(*AppEngineRouting)(nil), // 7: google.cloud.tasks.v2beta2.AppEngineRouting |
| 1842 |
(*HttpRequest)(nil), // 8: google.cloud.tasks.v2beta2.HttpRequest |
| 1843 |
(*PathOverride)(nil), // 9: google.cloud.tasks.v2beta2.PathOverride |
| 1844 |
(*QueryOverride)(nil), // 10: google.cloud.tasks.v2beta2.QueryOverride |
| 1845 |
(*UriOverride)(nil), // 11: google.cloud.tasks.v2beta2.UriOverride |
| 1846 |
(*HttpTarget)(nil), // 12: google.cloud.tasks.v2beta2.HttpTarget |
| 1847 |
(*OAuthToken)(nil), // 13: google.cloud.tasks.v2beta2.OAuthToken |
| 1848 |
(*OidcToken)(nil), // 14: google.cloud.tasks.v2beta2.OidcToken |
| 1849 |
nil, // 15: google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry |
| 1850 |
nil, // 16: google.cloud.tasks.v2beta2.HttpRequest.HeadersEntry |
| 1851 |
(*HttpTarget_Header)(nil), // 17: google.cloud.tasks.v2beta2.HttpTarget.Header |
| 1852 |
(*HttpTarget_HeaderOverride)(nil), // 18: google.cloud.tasks.v2beta2.HttpTarget.HeaderOverride |
| 1853 |
} |
| 1854 |
var file_google_cloud_tasks_v2beta2_target_proto_depIdxs = []int32{ |
| 1855 |
7, // 0: google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override:type_name -> google.cloud.tasks.v2beta2.AppEngineRouting |
| 1856 |
0, // 1: google.cloud.tasks.v2beta2.AppEngineHttpRequest.http_method:type_name -> google.cloud.tasks.v2beta2.HttpMethod |
| 1857 |
7, // 2: google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing:type_name -> google.cloud.tasks.v2beta2.AppEngineRouting |
| 1858 |
15, // 3: google.cloud.tasks.v2beta2.AppEngineHttpRequest.headers:type_name -> google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry |
| 1859 |
0, // 4: google.cloud.tasks.v2beta2.HttpRequest.http_method:type_name -> google.cloud.tasks.v2beta2.HttpMethod |
| 1860 |
16, // 5: google.cloud.tasks.v2beta2.HttpRequest.headers:type_name -> google.cloud.tasks.v2beta2.HttpRequest.HeadersEntry |
| 1861 |
13, // 6: google.cloud.tasks.v2beta2.HttpRequest.oauth_token:type_name -> google.cloud.tasks.v2beta2.OAuthToken |
| 1862 |
14, // 7: google.cloud.tasks.v2beta2.HttpRequest.oidc_token:type_name -> google.cloud.tasks.v2beta2.OidcToken |
| 1863 |
1, // 8: google.cloud.tasks.v2beta2.UriOverride.scheme:type_name -> google.cloud.tasks.v2beta2.UriOverride.Scheme |
| 1864 |
9, // 9: google.cloud.tasks.v2beta2.UriOverride.path_override:type_name -> google.cloud.tasks.v2beta2.PathOverride |
| 1865 |
10, // 10: google.cloud.tasks.v2beta2.UriOverride.query_override:type_name -> google.cloud.tasks.v2beta2.QueryOverride |
| 1866 |
2, // 11: google.cloud.tasks.v2beta2.UriOverride.uri_override_enforce_mode:type_name -> google.cloud.tasks.v2beta2.UriOverride.UriOverrideEnforceMode |
| 1867 |
11, // 12: google.cloud.tasks.v2beta2.HttpTarget.uri_override:type_name -> google.cloud.tasks.v2beta2.UriOverride |
| 1868 |
0, // 13: google.cloud.tasks.v2beta2.HttpTarget.http_method:type_name -> google.cloud.tasks.v2beta2.HttpMethod |
| 1869 |
18, // 14: google.cloud.tasks.v2beta2.HttpTarget.header_overrides:type_name -> google.cloud.tasks.v2beta2.HttpTarget.HeaderOverride |
| 1870 |
13, // 15: google.cloud.tasks.v2beta2.HttpTarget.oauth_token:type_name -> google.cloud.tasks.v2beta2.OAuthToken |
| 1871 |
14, // 16: google.cloud.tasks.v2beta2.HttpTarget.oidc_token:type_name -> google.cloud.tasks.v2beta2.OidcToken |
| 1872 |
17, // 17: google.cloud.tasks.v2beta2.HttpTarget.HeaderOverride.header:type_name -> google.cloud.tasks.v2beta2.HttpTarget.Header |
| 1873 |
18, // [18:18] is the sub-list for method output_type |
| 1874 |
18, // [18:18] is the sub-list for method input_type |
| 1875 |
18, // [18:18] is the sub-list for extension type_name |
| 1876 |
18, // [18:18] is the sub-list for extension extendee |
| 1877 |
0, // [0:18] is the sub-list for field type_name |
| 1878 |
} |
| 1879 |
|
| 1880 |
func init() { file_google_cloud_tasks_v2beta2_target_proto_init() } |
| 1881 |
func file_google_cloud_tasks_v2beta2_target_proto_init() { |
| 1882 |
if File_google_cloud_tasks_v2beta2_target_proto != nil { |
| 1883 |
return |
| 1884 |
} |
| 1885 |
file_google_cloud_tasks_v2beta2_target_proto_msgTypes[5].OneofWrappers = []any{ |
| 1886 |
(*HttpRequest_OauthToken)(nil), |
| 1887 |
(*HttpRequest_OidcToken)(nil), |
| 1888 |
} |
| 1889 |
file_google_cloud_tasks_v2beta2_target_proto_msgTypes[8].OneofWrappers = []any{} |
| 1890 |
file_google_cloud_tasks_v2beta2_target_proto_msgTypes[9].OneofWrappers = []any{ |
| 1891 |
(*HttpTarget_OauthToken)(nil), |
| 1892 |
(*HttpTarget_OidcToken)(nil), |
| 1893 |
} |
| 1894 |
type x struct{} |
| 1895 |
out := protoimpl.TypeBuilder{ |
| 1896 |
File: protoimpl.DescBuilder{ |
| 1897 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1898 |
RawDescriptor: file_google_cloud_tasks_v2beta2_target_proto_rawDesc, |
| 1899 |
NumEnums: 3, |
| 1900 |
NumMessages: 16, |
| 1901 |
NumExtensions: 0, |
| 1902 |
NumServices: 0, |
| 1903 |
}, |
| 1904 |
GoTypes: file_google_cloud_tasks_v2beta2_target_proto_goTypes, |
| 1905 |
DependencyIndexes: file_google_cloud_tasks_v2beta2_target_proto_depIdxs, |
| 1906 |
EnumInfos: file_google_cloud_tasks_v2beta2_target_proto_enumTypes, |
| 1907 |
MessageInfos: file_google_cloud_tasks_v2beta2_target_proto_msgTypes, |
| 1908 |
}.Build() |
| 1909 |
File_google_cloud_tasks_v2beta2_target_proto = out.File |
| 1910 |
file_google_cloud_tasks_v2beta2_target_proto_rawDesc = nil |
| 1911 |
file_google_cloud_tasks_v2beta2_target_proto_goTypes = nil |
| 1912 |
file_google_cloud_tasks_v2beta2_target_proto_depIdxs = nil |
| 1913 |
} |