Labels for the Job. Labels could be user provided or system generated.
For example,
"labels": {
"department": "finance",
"environment": "test"
}
You can assign up to 64 labels. Google Compute Engine label
restrictions
apply.
Label names that start with "goog-" or "google-" are reserved.
Priority of the Job.
The valid value range is [0, 100). Default value is 0.
Higher value indicates higher priority.
A job with higher priority value is more likely to run earlier if all other
requirements are satisfied.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eJob\u003c/code\u003e class within the Google Cloud Batch v1alpha API, detailing its properties, constructors, and implementations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJob\u003c/code\u003e class, which inherits from \u003ccode\u003eobject\u003c/code\u003e, implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and includes properties like \u003ccode\u003eAllocationPolicy\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDependencies\u003c/code\u003e, and \u003ccode\u003eTaskGroups\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey attributes of a \u003ccode\u003eJob\u003c/code\u003e include its \u003ccode\u003ePriority\u003c/code\u003e, which influences its scheduling, and its \u003ccode\u003eStatus\u003c/code\u003e, which is a read-only indicator of the job's current condition.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eJob\u003c/code\u003e instances can be labeled with user-defined or system-generated tags, and have policies for logging and notifications, with support for specifying dependencies that must be satisfied before the job can run.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details both the \u003ccode\u003elatest\u003c/code\u003e version of the API (1.0.0-alpha31) and a prior version (1.0.0-alpha30), highlighting methods of the Job class, such as setting the Allocation Policy and the number of Tasks in the TaskGroup.\u003c/p\u003e\n"]]],[],null,["# Batch v1alpha API - Class Job (1.0.0-alpha31)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha31 (latest)](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Job)\n- [1.0.0-alpha30](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/1.0.0-alpha30/Google.Cloud.Batch.V1Alpha.Job) \n\n public sealed class Job : IMessage\u003cJob\u003e, IEquatable\u003cJob\u003e, IDeepCloneable\u003cJob\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Batch v1alpha API class Job.\n\nThe Cloud Batch Job description. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Job \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Job](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Job), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Job](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Job), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Job](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Job), [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.Batch.V1Alpha](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.Batch.V1Alpha.dll\n\nConstructors\n------------\n\n### Job()\n\n public Job()\n\n### Job(Job)\n\n public Job(Job other)\n\nProperties\n----------\n\n### AllocationPolicy\n\n public AllocationPolicy AllocationPolicy { get; set; }\n\nCompute resource allocation for all TaskGroups in the Job.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. When the Job was created.\n\n### Dependencies\n\n public RepeatedField\u003cJobDependency\u003e Dependencies { get; }\n\nAt least one of the dependencies must be satisfied before the Job is\nscheduled to run.\nOnly one JobDependency is supported now.\nNot yet implemented.\n\n### JobName\n\n public JobName JobName { get; set; }\n\n[JobName](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.JobName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Job#Google_Cloud_Batch_V1Alpha_Job_Name) resource name property.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nLabels for the Job. Labels could be user provided or system generated.\nFor example,\n\"labels\": {\n\"department\": \"finance\",\n\"environment\": \"test\"\n}\nYou can assign up to 64 labels. [Google Compute Engine label\nrestrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)\napply.\nLabel names that start with \"goog-\" or \"google-\" are reserved.\n\n### LogsPolicy\n\n public LogsPolicy LogsPolicy { get; set; }\n\nLog preservation policy for the Job.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Job name.\nFor example: \"projects/123456/locations/us-central1/jobs/job01\".\n\n### Notification\n\n [Obsolete]\n public JobNotification Notification { get; set; }\n\nDeprecated: please use notifications instead.\n\n### Notifications\n\n public RepeatedField\u003cJobNotification\u003e Notifications { get; }\n\nNotification configurations.\n\n### Priority\n\n public long Priority { get; set; }\n\nPriority of the Job.\nThe valid value range is \\[0, 100). Default value is 0.\nHigher value indicates higher priority.\nA job with higher priority value is more likely to run earlier if all other\nrequirements are satisfied.\n\n### SchedulingPolicy\n\n public Job.Types.SchedulingPolicy SchedulingPolicy { get; set; }\n\nScheduling policy for TaskGroups in the job.\n\n### Status\n\n public JobStatus Status { get; set; }\n\nOutput only. Job status. It is read only for users.\n\n### TaskGroups\n\n public RepeatedField\u003cTaskGroup\u003e TaskGroups { get; }\n\nRequired. TaskGroups in the Job. Only one TaskGroup is supported now.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. A system generated unique ID for the Job.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The last time the Job was updated."]]