public final class Task extends GeneratedMessageV3 implements TaskOrBuilder
A unit of scheduled work.Protobuf type
google.cloud.tasks.v2beta2.Task
Modifier and Type | Class and Description |
---|---|
static class |
Task.Builder
A unit of scheduled work.
|
static class |
Task.PayloadTypeCase |
static class |
Task.View
The view specifies a subset of [Task][google.cloud.tasks.v2beta2.Task] data.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PULL_MESSAGE_FIELD_NUMBER |
static int |
SCHEDULE_TIME_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
VIEW_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AppEngineHttpRequest |
getAppEngineHttpRequest()
App Engine HTTP request that is sent to the task's target.
|
AppEngineHttpRequestOrBuilder |
getAppEngineHttpRequestOrBuilder()
App Engine HTTP request that is sent to the task's target.
|
Timestamp |
getCreateTime()
Output only.
|
TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Task |
getDefaultInstance() |
Task |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
|
ByteString |
getNameBytes()
Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
|
Parser<Task> |
getParserForType() |
Task.PayloadTypeCase |
getPayloadTypeCase() |
PullMessage |
getPullMessage()
[LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task.
|
PullMessageOrBuilder |
getPullMessageOrBuilder()
[LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task.
|
Timestamp |
getScheduleTime()
The time when the task is scheduled to be attempted.
|
TimestampOrBuilder |
getScheduleTimeOrBuilder()
The time when the task is scheduled to be attempted.
|
int |
getSerializedSize() |
TaskStatus |
getStatus()
Output only.
|
TaskStatusOrBuilder |
getStatusOrBuilder()
Output only.
|
UnknownFieldSet |
getUnknownFields() |
Task.View |
getView()
Output only.
|
int |
getViewValue()
Output only.
|
boolean |
hasAppEngineHttpRequest()
App Engine HTTP request that is sent to the task's target.
|
boolean |
hasCreateTime()
Output only.
|
int |
hashCode() |
boolean |
hasPullMessage()
[LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task.
|
boolean |
hasScheduleTime()
The time when the task is scheduled to be attempted.
|
boolean |
hasStatus()
Output only.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Task.Builder |
newBuilder() |
static Task.Builder |
newBuilder(Task prototype) |
Task.Builder |
newBuilderForType() |
protected Task.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Task |
parseDelimitedFrom(InputStream input) |
static Task |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(byte[] data) |
static Task |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(ByteBuffer data) |
static Task |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(ByteString data) |
static Task |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(CodedInputStream input) |
static Task |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(InputStream input) |
static Task |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Task> |
parser() |
Task.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER
public static final int PULL_MESSAGE_FIELD_NUMBER
public static final int SCHEDULE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int VIEW_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Task.PayloadTypeCase getPayloadTypeCase()
getPayloadTypeCase
in interface TaskOrBuilder
public String getName()
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.
string name = 1;
getName
in interface TaskOrBuilder
public ByteString getNameBytes()
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.
string name = 1;
getNameBytes
in interface TaskOrBuilder
public boolean hasAppEngineHttpRequest()
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.
.google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3;
hasAppEngineHttpRequest
in interface TaskOrBuilder
public AppEngineHttpRequest getAppEngineHttpRequest()
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.
.google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3;
getAppEngineHttpRequest
in interface TaskOrBuilder
public AppEngineHttpRequestOrBuilder getAppEngineHttpRequestOrBuilder()
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.
.google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3;
getAppEngineHttpRequestOrBuilder
in interface TaskOrBuilder
public boolean hasPullMessage()
[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.
.google.cloud.tasks.v2beta2.PullMessage pull_message = 4;
hasPullMessage
in interface TaskOrBuilder
public PullMessage getPullMessage()
[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.
.google.cloud.tasks.v2beta2.PullMessage pull_message = 4;
getPullMessage
in interface TaskOrBuilder
public PullMessageOrBuilder getPullMessageOrBuilder()
[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.
.google.cloud.tasks.v2beta2.PullMessage pull_message = 4;
getPullMessageOrBuilder
in interface TaskOrBuilder
public boolean hasScheduleTime()
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.
.google.protobuf.Timestamp schedule_time = 5;
hasScheduleTime
in interface TaskOrBuilder
public Timestamp getScheduleTime()
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.
.google.protobuf.Timestamp schedule_time = 5;
getScheduleTime
in interface TaskOrBuilder
public TimestampOrBuilder getScheduleTimeOrBuilder()
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.
.google.protobuf.Timestamp schedule_time = 5;
getScheduleTimeOrBuilder
in interface TaskOrBuilder
public boolean hasCreateTime()
Output only. The time that the task was created. `create_time` will be truncated to the nearest second.
.google.protobuf.Timestamp create_time = 6;
hasCreateTime
in interface TaskOrBuilder
public Timestamp getCreateTime()
Output only. The time that the task was created. `create_time` will be truncated to the nearest second.
.google.protobuf.Timestamp create_time = 6;
getCreateTime
in interface TaskOrBuilder
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time that the task was created. `create_time` will be truncated to the nearest second.
.google.protobuf.Timestamp create_time = 6;
getCreateTimeOrBuilder
in interface TaskOrBuilder
public boolean hasStatus()
Output only. The task status.
.google.cloud.tasks.v2beta2.TaskStatus status = 7;
hasStatus
in interface TaskOrBuilder
public TaskStatus getStatus()
Output only. The task status.
.google.cloud.tasks.v2beta2.TaskStatus status = 7;
getStatus
in interface TaskOrBuilder
public TaskStatusOrBuilder getStatusOrBuilder()
Output only. The task status.
.google.cloud.tasks.v2beta2.TaskStatus status = 7;
getStatusOrBuilder
in interface TaskOrBuilder
public int getViewValue()
Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has been returned.
.google.cloud.tasks.v2beta2.Task.View view = 8;
getViewValue
in interface TaskOrBuilder
public Task.View getView()
Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has been returned.
.google.cloud.tasks.v2beta2.Task.View view = 8;
getView
in interface TaskOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Task parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Task parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Task parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Task parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Task parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Task parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Task parseFrom(InputStream input) throws IOException
IOException
public static Task parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Task parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Task parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Task parseFrom(CodedInputStream input) throws IOException
IOException
public static Task parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Task.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Task.Builder newBuilder()
public static Task.Builder newBuilder(Task prototype)
public Task.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Task.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Task getDefaultInstance()
public Parser<Task> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Task getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.