Custom labels to apply to the job and any Cloud Logging
LogEntry
that it generates.
Use labels to group and describe the resources they are applied to. Batch
automatically applies predefined labels and supports multiple labels
fields for each job, which each let you apply custom labels to various
resources. Label names that start with "goog-" or "google-" are
reserved for predefined labels. For more information about labels with
Batch, see
Organize resources using
labels.
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\u003eThe latest version of the Batch v1 API Job class is 2.13.0, with previous versions ranging from 2.12.0 down to 1.0.0 also available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJob\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Batch.V1\u003c/code\u003e namespace, represents a Cloud Batch Job and includes properties for configuration, such as allocation policy, task groups, and logging.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eJob\u003c/code\u003e object has properties such as \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eStatus\u003c/code\u003e, \u003ccode\u003ePriority\u003c/code\u003e, and \u003ccode\u003eUpdateTime\u003c/code\u003e, providing details on when the job was created, its current status, priority level and when it was last updated.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJob\u003c/code\u003e class implements various interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, comparison, cloning, and buffering.\u003c/p\u003e\n"],["\u003cp\u003eCustom labels, starting with the field \u003ccode\u003eLabels\u003c/code\u003e, can be applied to jobs and related Cloud Logging entries, which can be used to organize and describe them, with reserved labels starting with "goog-" or "google-".\u003c/p\u003e\n"]]],[],null,["# Batch v1 API - Class Job (2.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.Job)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.12.0/Google.Cloud.Batch.V1.Job)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.11.0/Google.Cloud.Batch.V1.Job)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.10.0/Google.Cloud.Batch.V1.Job)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.9.0/Google.Cloud.Batch.V1.Job)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.8.0/Google.Cloud.Batch.V1.Job)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.7.0/Google.Cloud.Batch.V1.Job)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.6.0/Google.Cloud.Batch.V1.Job)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.5.0/Google.Cloud.Batch.V1.Job)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.4.0/Google.Cloud.Batch.V1.Job)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.3.0/Google.Cloud.Batch.V1.Job)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.2.0/Google.Cloud.Batch.V1.Job)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.1.0/Google.Cloud.Batch.V1.Job)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.0.0/Google.Cloud.Batch.V1.Job)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.3.0/Google.Cloud.Batch.V1.Job)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.2.0/Google.Cloud.Batch.V1.Job)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.1.0/Google.Cloud.Batch.V1.Job)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.0.0/Google.Cloud.Batch.V1.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 v1 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.V1/latest/Google.Cloud.Batch.V1.Job), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Job](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.Job), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Job](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.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.V1](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Batch.V1.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### JobName\n\n public JobName JobName { get; set; }\n\n[JobName](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.JobName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.Job#Google_Cloud_Batch_V1_Job_Name) resource name property.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nCustom labels to apply to the job and any Cloud Logging\n[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)\nthat it generates.\n\nUse labels to group and describe the resources they are applied to. Batch\nautomatically applies predefined labels and supports multiple `labels`\nfields for each job, which each let you apply custom labels to various\nresources. Label names that start with \"goog-\" or \"google-\" are\nreserved for predefined labels. For more information about labels with\nBatch, see\n[Organize resources using\nlabels](https://cloud.google.com/batch/docs/organize-resources-using-labels).\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### 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### 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."]]