| // Copyright 2025 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.36.11 |
| // protoc v6.33.2 |
| // source: google/cloud/tasks/v2beta2/task.proto |
| |
| package cloudtaskspb |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| status "google.golang.org/genproto/googleapis/rpc/status" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // The view specifies a subset of [Task][google.cloud.tasks.v2beta2.Task] |
| // data. |
| // |
| // When a task is returned in a response, not all |
| // information is retrieved by default because some data, such as |
| // payloads, might be desirable to return only when needed because |
| // of its large size or because of the sensitivity of data that it |
| // contains. |
| type Task_View int32 |
| |
| const ( |
| // Unspecified. Defaults to BASIC. |
| Task_VIEW_UNSPECIFIED Task_View = 0 |
| // The basic view omits fields which can be large or can contain |
| // sensitive data. |
| // |
| // This view does not include the |
| // ([payload in |
| // AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] |
| // and [payload in |
| // PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These |
| // payloads are desirable to return only when needed, because they can be |
| // large and because of the sensitivity of the data that you choose to store |
| // in it. |
| Task_BASIC Task_View = 1 |
| // All information is returned. |
| // |
| // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] |
| // requires `cloudtasks.tasks.fullView` [Google |
| // IAM](https://cloud.google.com/iam/) permission on the |
| // [Queue][google.cloud.tasks.v2beta2.Queue] resource. |
| Task_FULL Task_View = 2 |
| ) |
| |
| // Enum value maps for Task_View. |
| var ( |
| Task_View_name = map[int32]string{ |
| 0: "VIEW_UNSPECIFIED", |
| 1: "BASIC", |
| 2: "FULL", |
| } |
| Task_View_value = map[string]int32{ |
| "VIEW_UNSPECIFIED": 0, |
| "BASIC": 1, |
| "FULL": 2, |
| } |
| ) |
| |
| func (x Task_View) Enum() *Task_View { |
| p := new(Task_View) |
| *p = x |
| return p |
| } |
| |
| func (x Task_View) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Task_View) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_tasks_v2beta2_task_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (Task_View) Type() protoreflect.EnumType { |
| return &file_google_cloud_tasks_v2beta2_task_proto_enumTypes[0] |
| } |
| |
| func (x Task_View) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Task_View.Descriptor instead. |
| func (Task_View) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| // A unit of scheduled work. |
| type Task struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Optionally caller-specified in |
| // [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. |
| // |
| // The task name. |
| // |
| // The task name must have the following format: |
| // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` |
| // |
| // - `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), |
| // hyphens (-), colons (:), or periods (.). |
| // For more information, see |
| // [Identifying |
| // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) |
| // - `LOCATION_ID` is the canonical ID for the task's location. |
| // The list of available locations can be obtained by calling |
| // [ListLocations][google.cloud.location.Locations.ListLocations]. |
| // For more information, see https://cloud.google.com/about/locations/. |
| // - `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or |
| // hyphens (-). The maximum length is 100 characters. |
| // - `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), |
| // hyphens (-), or underscores (_). The maximum length is 500 characters. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. |
| // |
| // The task's payload is used by the task's target to process the task. |
| // A payload is valid only if it is compatible with the queue's target. |
| // |
| // Types that are valid to be assigned to PayloadType: |
| // |
| // *Task_AppEngineHttpRequest |
| // *Task_PullMessage |
| // *Task_HttpRequest |
| PayloadType isTask_PayloadType `protobuf_oneof:"payload_type"` |
| // The time when the task is scheduled to be attempted. |
| // |
| // For App Engine queues, this is when the task will be attempted or retried. |
| // |
| // For pull queues, this is the time when the task is available to |
| // be leased; if a task is currently leased, this is the time when |
| // the current lease expires, that is, the time that the task was |
| // leased plus the |
| // [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. |
| // |
| // `schedule_time` will be truncated to the nearest microsecond. |
| ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` |
| // Output only. The time that the task was created. |
| // |
| // `create_time` will be truncated to the nearest second. |
| CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| // Output only. The task status. |
| Status *TaskStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` |
| // Output only. The view specifies which subset of the |
| // [Task][google.cloud.tasks.v2beta2.Task] has been returned. |
| View Task_View `protobuf:"varint,8,opt,name=view,proto3,enum=google.cloud.tasks.v2beta2.Task_View" json:"view,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Task) Reset() { |
| *x = Task{} |
| mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Task) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Task) ProtoMessage() {} |
| |
| func (x *Task) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[0] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Task.ProtoReflect.Descriptor instead. |
| func (*Task) Descriptor() ([]byte, []int) { |
| return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *Task) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *Task) GetPayloadType() isTask_PayloadType { |
| if x != nil { |
| return x.PayloadType |
| } |
| return nil |
| } |
| |
| func (x *Task) GetAppEngineHttpRequest() *AppEngineHttpRequest { |
| if x != nil { |
| if x, ok := x.PayloadType.(*Task_AppEngineHttpRequest); ok { |
| return x.AppEngineHttpRequest |
| } |
| } |
| return nil |
| } |
| |
| func (x *Task) GetPullMessage() *PullMessage { |
| if x != nil { |
| if x, ok := x.PayloadType.(*Task_PullMessage); ok { |
| return x.PullMessage |
| } |
| } |
| return nil |
| } |
| |
| func (x *Task) GetHttpRequest() *HttpRequest { |
| if x != nil { |
| if x, ok := x.PayloadType.(*Task_HttpRequest); ok { |
| return x.HttpRequest |
| } |
| } |
| return nil |
| } |
| |
| func (x *Task) GetScheduleTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.ScheduleTime |
| } |
| return nil |
| } |
| |
| func (x *Task) GetCreateTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.CreateTime |
| } |
| return nil |
| } |
| |
| func (x *Task) GetStatus() *TaskStatus { |
| if x != nil { |
| return x.Status |
| } |
| return nil |
| } |
| |
| func (x *Task) GetView() Task_View { |
| if x != nil { |
| return x.View |
| } |
| return Task_VIEW_UNSPECIFIED |
| } |
| |
| type isTask_PayloadType interface { |
| isTask_PayloadType() |
| } |
| |
| type Task_AppEngineHttpRequest struct { |
| // App Engine HTTP request that is sent to the task's target. Can |
| // be set only if |
| // [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] |
| // is set on the queue. |
| // |
| // An App Engine task is a task that has |
| // [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] |
| // set. |
| AppEngineHttpRequest *AppEngineHttpRequest `protobuf:"bytes,3,opt,name=app_engine_http_request,json=appEngineHttpRequest,proto3,oneof"` |
| } |
| |
| type Task_PullMessage struct { |
| // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process |
| // the task. Can be set only if |
| // [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the |
| // queue. |
| // |
| // A pull task is a task that has |
| // [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set. |
| PullMessage *PullMessage `protobuf:"bytes,4,opt,name=pull_message,json=pullMessage,proto3,oneof"` |
| } |
| |
| type Task_HttpRequest struct { |
| // HTTP request that is sent to the task's target. |
| // |
| // An HTTP task is a task that has |
| // [HttpRequest][google.cloud.tasks.v2beta2.HttpRequest] set. |
| HttpRequest *HttpRequest `protobuf:"bytes,13,opt,name=http_request,json=httpRequest,proto3,oneof"` |
| } |
| |
| func (*Task_AppEngineHttpRequest) isTask_PayloadType() {} |
| |
| func (*Task_PullMessage) isTask_PayloadType() {} |
| |
| func (*Task_HttpRequest) isTask_PayloadType() {} |
| |
| // Status of the task. |
| type TaskStatus struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. The number of attempts dispatched. |
| // |
| // This count includes attempts which have been dispatched but haven't |
| // received a response. |
| AttemptDispatchCount int32 `protobuf:"varint,1,opt,name=attempt_dispatch_count,json=attemptDispatchCount,proto3" json:"attempt_dispatch_count,omitempty"` |
| // Output only. The number of attempts which have received a response. |
| // |
| // This field is not calculated for [pull |
| // tasks][google.cloud.tasks.v2beta2.PullMessage]. |
| AttemptResponseCount int32 `protobuf:"varint,2,opt,name=attempt_response_count,json=attemptResponseCount,proto3" json:"attempt_response_count,omitempty"` |
| // Output only. The status of the task's first attempt. |
| // |
| // Only |
| // [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] |
| // will be set. The other |
| // [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is |
| // not retained by Cloud Tasks. |
| // |
| // This field is not calculated for [pull |
| // tasks][google.cloud.tasks.v2beta2.PullMessage]. |
| FirstAttemptStatus *AttemptStatus `protobuf:"bytes,3,opt,name=first_attempt_status,json=firstAttemptStatus,proto3" json:"first_attempt_status,omitempty"` |
| // Output only. The status of the task's last attempt. |
| // |
| // This field is not calculated for [pull |
| // tasks][google.cloud.tasks.v2beta2.PullMessage]. |
| LastAttemptStatus *AttemptStatus `protobuf:"bytes,4,opt,name=last_attempt_status,json=lastAttemptStatus,proto3" json:"last_attempt_status,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *TaskStatus) Reset() { |
| *x = TaskStatus{} |
| mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *TaskStatus) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*TaskStatus) ProtoMessage() {} |
| |
| func (x *TaskStatus) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[1] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use TaskStatus.ProtoReflect.Descriptor instead. |
| func (*TaskStatus) Descriptor() ([]byte, []int) { |
| return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *TaskStatus) GetAttemptDispatchCount() int32 { |
| if x != nil { |
| return x.AttemptDispatchCount |
| } |
| return 0 |
| } |
| |
| func (x *TaskStatus) GetAttemptResponseCount() int32 { |
| if x != nil { |
| return x.AttemptResponseCount |
| } |
| return 0 |
| } |
| |
| func (x *TaskStatus) GetFirstAttemptStatus() *AttemptStatus { |
| if x != nil { |
| return x.FirstAttemptStatus |
| } |
| return nil |
| } |
| |
| func (x *TaskStatus) GetLastAttemptStatus() *AttemptStatus { |
| if x != nil { |
| return x.LastAttemptStatus |
| } |
| return nil |
| } |
| |
| // The status of a task attempt. |
| type AttemptStatus struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. The time that this attempt was scheduled. |
| // |
| // `schedule_time` will be truncated to the nearest microsecond. |
| ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` |
| // Output only. The time that this attempt was dispatched. |
| // |
| // `dispatch_time` will be truncated to the nearest microsecond. |
| DispatchTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=dispatch_time,json=dispatchTime,proto3" json:"dispatch_time,omitempty"` |
| // Output only. The time that this attempt response was received. |
| // |
| // `response_time` will be truncated to the nearest microsecond. |
| ResponseTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` |
| // Output only. The response from the target for this attempt. |
| // |
| // If the task has not been attempted or the task is currently running |
| // then the response status is unset. |
| ResponseStatus *status.Status `protobuf:"bytes,4,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *AttemptStatus) Reset() { |
| *x = AttemptStatus{} |
| mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *AttemptStatus) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*AttemptStatus) ProtoMessage() {} |
| |
| func (x *AttemptStatus) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[2] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use AttemptStatus.ProtoReflect.Descriptor instead. |
| func (*AttemptStatus) Descriptor() ([]byte, []int) { |
| return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *AttemptStatus) GetScheduleTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.ScheduleTime |
| } |
| return nil |
| } |
| |
| func (x *AttemptStatus) GetDispatchTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.DispatchTime |
| } |
| return nil |
| } |
| |
| func (x *AttemptStatus) GetResponseTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.ResponseTime |
| } |
| return nil |
| } |
| |
| func (x *AttemptStatus) GetResponseStatus() *status.Status { |
| if x != nil { |
| return x.ResponseStatus |
| } |
| return nil |
| } |
| |
| var File_google_cloud_tasks_v2beta2_task_proto protoreflect.FileDescriptor |
| |
| const file_google_cloud_tasks_v2beta2_task_proto_rawDesc = "" + |
| "\n" + |
| "%google/cloud/tasks/v2beta2/task.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x19google/api/resource.proto\x1a'google/cloud/tasks/v2beta2/target.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xc7\x05\n" + |
| "\x04Task\x12\x12\n" + |
| "\x04name\x18\x01 \x01(\tR\x04name\x12i\n" + |
| "\x17app_engine_http_request\x18\x03 \x01(\v20.google.cloud.tasks.v2beta2.AppEngineHttpRequestH\x00R\x14appEngineHttpRequest\x12L\n" + |
| "\fpull_message\x18\x04 \x01(\v2'.google.cloud.tasks.v2beta2.PullMessageH\x00R\vpullMessage\x12L\n" + |
| "\fhttp_request\x18\r \x01(\v2'.google.cloud.tasks.v2beta2.HttpRequestH\x00R\vhttpRequest\x12?\n" + |
| "\rschedule_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\fscheduleTime\x12;\n" + |
| "\vcreate_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\n" + |
| "createTime\x12>\n" + |
| "\x06status\x18\a \x01(\v2&.google.cloud.tasks.v2beta2.TaskStatusR\x06status\x129\n" + |
| "\x04view\x18\b \x01(\x0e2%.google.cloud.tasks.v2beta2.Task.ViewR\x04view\"1\n" + |
| "\x04View\x12\x14\n" + |
| "\x10VIEW_UNSPECIFIED\x10\x00\x12\t\n" + |
| "\x05BASIC\x10\x01\x12\b\n" + |
| "\x04FULL\x10\x02:h\xeaAe\n" + |
| "\x1ecloudtasks.googleapis.com/Task\x12Cprojects/{project}/locations/{location}/queues/{queue}/tasks/{task}B\x0e\n" + |
| "\fpayload_type\"\xb0\x02\n" + |
| "\n" + |
| "TaskStatus\x124\n" + |
| "\x16attempt_dispatch_count\x18\x01 \x01(\x05R\x14attemptDispatchCount\x124\n" + |
| "\x16attempt_response_count\x18\x02 \x01(\x05R\x14attemptResponseCount\x12[\n" + |
| "\x14first_attempt_status\x18\x03 \x01(\v2).google.cloud.tasks.v2beta2.AttemptStatusR\x12firstAttemptStatus\x12Y\n" + |
| "\x13last_attempt_status\x18\x04 \x01(\v2).google.cloud.tasks.v2beta2.AttemptStatusR\x11lastAttemptStatus\"\x8f\x02\n" + |
| "\rAttemptStatus\x12?\n" + |
| "\rschedule_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\fscheduleTime\x12?\n" + |
| "\rdispatch_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\fdispatchTime\x12?\n" + |
| "\rresponse_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\fresponseTime\x12;\n" + |
| "\x0fresponse_status\x18\x04 \x01(\v2\x12.google.rpc.StatusR\x0eresponseStatusBr\n" + |
| "\x1ecom.google.cloud.tasks.v2beta2B\tTaskProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta2/cloudtaskspb;cloudtaskspbb\x06proto3" |
| |
| var ( |
| file_google_cloud_tasks_v2beta2_task_proto_rawDescOnce sync.Once |
| file_google_cloud_tasks_v2beta2_task_proto_rawDescData []byte |
| ) |
| |
| func file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP() []byte { |
| file_google_cloud_tasks_v2beta2_task_proto_rawDescOnce.Do(func() { |
| file_google_cloud_tasks_v2beta2_task_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_tasks_v2beta2_task_proto_rawDesc), len(file_google_cloud_tasks_v2beta2_task_proto_rawDesc))) |
| }) |
| return file_google_cloud_tasks_v2beta2_task_proto_rawDescData |
| } |
| |
| var file_google_cloud_tasks_v2beta2_task_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_google_cloud_tasks_v2beta2_task_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| var file_google_cloud_tasks_v2beta2_task_proto_goTypes = []any{ |
| (Task_View)(0), // 0: google.cloud.tasks.v2beta2.Task.View |
| (*Task)(nil), // 1: google.cloud.tasks.v2beta2.Task |
| (*TaskStatus)(nil), // 2: google.cloud.tasks.v2beta2.TaskStatus |
| (*AttemptStatus)(nil), // 3: google.cloud.tasks.v2beta2.AttemptStatus |
| (*AppEngineHttpRequest)(nil), // 4: google.cloud.tasks.v2beta2.AppEngineHttpRequest |
| (*PullMessage)(nil), // 5: google.cloud.tasks.v2beta2.PullMessage |
| (*HttpRequest)(nil), // 6: google.cloud.tasks.v2beta2.HttpRequest |
| (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp |
| (*status.Status)(nil), // 8: google.rpc.Status |
| } |
| var file_google_cloud_tasks_v2beta2_task_proto_depIdxs = []int32{ |
| 4, // 0: google.cloud.tasks.v2beta2.Task.app_engine_http_request:type_name -> google.cloud.tasks.v2beta2.AppEngineHttpRequest |
| 5, // 1: google.cloud.tasks.v2beta2.Task.pull_message:type_name -> google.cloud.tasks.v2beta2.PullMessage |
| 6, // 2: google.cloud.tasks.v2beta2.Task.http_request:type_name -> google.cloud.tasks.v2beta2.HttpRequest |
| 7, // 3: google.cloud.tasks.v2beta2.Task.schedule_time:type_name -> google.protobuf.Timestamp |
| 7, // 4: google.cloud.tasks.v2beta2.Task.create_time:type_name -> google.protobuf.Timestamp |
| 2, // 5: google.cloud.tasks.v2beta2.Task.status:type_name -> google.cloud.tasks.v2beta2.TaskStatus |
| 0, // 6: google.cloud.tasks.v2beta2.Task.view:type_name -> google.cloud.tasks.v2beta2.Task.View |
| 3, // 7: google.cloud.tasks.v2beta2.TaskStatus.first_attempt_status:type_name -> google.cloud.tasks.v2beta2.AttemptStatus |
| 3, // 8: google.cloud.tasks.v2beta2.TaskStatus.last_attempt_status:type_name -> google.cloud.tasks.v2beta2.AttemptStatus |
| 7, // 9: google.cloud.tasks.v2beta2.AttemptStatus.schedule_time:type_name -> google.protobuf.Timestamp |
| 7, // 10: google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time:type_name -> google.protobuf.Timestamp |
| 7, // 11: google.cloud.tasks.v2beta2.AttemptStatus.response_time:type_name -> google.protobuf.Timestamp |
| 8, // 12: google.cloud.tasks.v2beta2.AttemptStatus.response_status:type_name -> google.rpc.Status |
| 13, // [13:13] is the sub-list for method output_type |
| 13, // [13:13] is the sub-list for method input_type |
| 13, // [13:13] is the sub-list for extension type_name |
| 13, // [13:13] is the sub-list for extension extendee |
| 0, // [0:13] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_tasks_v2beta2_task_proto_init() } |
| func file_google_cloud_tasks_v2beta2_task_proto_init() { |
| if File_google_cloud_tasks_v2beta2_task_proto != nil { |
| return |
| } |
| file_google_cloud_tasks_v2beta2_target_proto_init() |
| file_google_cloud_tasks_v2beta2_task_proto_msgTypes[0].OneofWrappers = []any{ |
| (*Task_AppEngineHttpRequest)(nil), |
| (*Task_PullMessage)(nil), |
| (*Task_HttpRequest)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_tasks_v2beta2_task_proto_rawDesc), len(file_google_cloud_tasks_v2beta2_task_proto_rawDesc)), |
| NumEnums: 1, |
| NumMessages: 3, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_cloud_tasks_v2beta2_task_proto_goTypes, |
| DependencyIndexes: file_google_cloud_tasks_v2beta2_task_proto_depIdxs, |
| EnumInfos: file_google_cloud_tasks_v2beta2_task_proto_enumTypes, |
| MessageInfos: file_google_cloud_tasks_v2beta2_task_proto_msgTypes, |
| }.Build() |
| File_google_cloud_tasks_v2beta2_task_proto = out.File |
| file_google_cloud_tasks_v2beta2_task_proto_goTypes = nil |
| file_google_cloud_tasks_v2beta2_task_proto_depIdxs = nil |
| } |