public sealed class PullMessage : IMessage<PullMessage>, IEquatable<PullMessage>, IDeepCloneable<PullMessage>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Tasks v2beta3 API class PullMessage.
Pull Message.
This proto can only be used for tasks in a queue which has
[PULL][google.cloud.tasks.v2beta3.Queue.type] type. It currently exists for
backwards compatibility with the App Engine Task Queue SDK. This message type
maybe returned with methods
[list][google.cloud.tasks.v2beta3.CloudTask.ListTasks] and
[get][google.cloud.tasks.v2beta3.CloudTask.ListTasks], when the response view
is [FULL][google.cloud.tasks.v2beta3.Task.View.Full].
SDK compatibility: Although the SDK allows tags to be either
string or
bytes,
only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
encoded, the tag will be empty when the task is returned by Cloud Tasks.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003e\u003ccode\u003ePullMessage\u003c/code\u003e is a class within the Google Cloud Tasks v2beta3 API, designed for tasks in queues of the \u003ccode\u003ePULL\u003c/code\u003e type, and is primarily for backwards compatibility with the App Engine Task Queue SDK.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e, offering features such as deep cloning and message buffering.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePullMessage\u003c/code\u003e class includes properties for \u003ccode\u003ePayload\u003c/code\u003e, representing the data payload for task execution, and \u003ccode\u003eTag\u003c/code\u003e, which is a UTF-8 encoded string used to label the task, with a maximum length of 500 characters.\u003c/p\u003e\n"],["\u003cp\u003eThe Pull Message type may be returned from the \u003ccode\u003eListTasks\u003c/code\u003e method or the \u003ccode\u003eGetTask\u003c/code\u003e method, when the \u003ccode\u003eFULL\u003c/code\u003e response view is requested.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Tasks v2beta3 API - Class PullMessage (3.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.PullMessage)\n- [3.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/3.0.0-beta06/Google.Cloud.Tasks.V2Beta3.PullMessage)\n- [2.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/2.0.0-beta08/Google.Cloud.Tasks.V2Beta3.PullMessage) \n\n public sealed class PullMessage : IMessage\u003cPullMessage\u003e, IEquatable\u003cPullMessage\u003e, IDeepCloneable\u003cPullMessage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Tasks v2beta3 API class PullMessage.\n\nPull Message.\n\nThis proto can only be used for tasks in a queue which has\n\\[PULL\\]\\[google.cloud.tasks.v2beta3.Queue.type\\] type. It currently exists for\nbackwards compatibility with the App Engine Task Queue SDK. This message type\nmaybe returned with methods\n\\[list\\]\\[google.cloud.tasks.v2beta3.CloudTask.ListTasks\\] and\n\\[get\\]\\[google.cloud.tasks.v2beta3.CloudTask.ListTasks\\], when the response view\nis \\[FULL\\]\\[google.cloud.tasks.v2beta3.Task.View.Full\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PullMessage \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PullMessage](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.PullMessage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PullMessage](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.PullMessage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PullMessage](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.PullMessage), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Tasks.V2Beta3](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Tasks.V2Beta3.dll\n\nConstructors\n------------\n\n### PullMessage()\n\n public PullMessage()\n\n### PullMessage(PullMessage)\n\n public PullMessage(PullMessage other)\n\nProperties\n----------\n\n### Payload\n\n public ByteString Payload { get; set; }\n\nA data payload consumed by the worker to execute the task.\n\n### Tag\n\n public string Tag { get; set; }\n\nThe tasks's tag.\n\nThe tag is less than 500 characters.\n\nSDK compatibility: Although the SDK allows tags to be either\nstring or\n[bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),\nonly UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8\nencoded, the tag will be empty when the task is returned by Cloud Tasks."]]