public sealed class LogsPolicy.Types.CloudLoggingOption : IMessage<LogsPolicy.Types.CloudLoggingOption>, IEquatable<LogsPolicy.Types.CloudLoggingOption>, IDeepCloneable<LogsPolicy.Types.CloudLoggingOption>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class LogsPolicy.Types.CloudLoggingOption.
CloudLoggingOption contains additional settings for Cloud Logging logs
generated by Batch job.
[[["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 \u003ccode\u003eCloudLoggingOption\u003c/code\u003e class is 2.13.0, part of the Google.Cloud.Batch.V1 namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eLogsPolicy.Types.CloudLoggingOption\u003c/code\u003e class, which manages Cloud Logging settings for Batch jobs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudLoggingOption\u003c/code\u003e implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows for control over the monitored resource type for Cloud Logging, enabling users to switch between \u003ccode\u003ebatch.googleapis.com/Job\u003c/code\u003e and \u003ccode\u003egeneric_task\u003c/code\u003e types via the \u003ccode\u003eUseGenericTaskMonitoredResource\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloudLoggingOption\u003c/code\u003e class has multiple previous versions that are documented, ranging back to version 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Batch v1 API - Class LogsPolicy.Types.CloudLoggingOption (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.LogsPolicy.Types.CloudLoggingOption)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.12.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.11.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.10.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.9.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.8.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.7.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.6.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.5.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.4.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.3.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.2.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.1.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.0.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.3.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.2.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.1.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.0.0/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption) \n\n public sealed class LogsPolicy.Types.CloudLoggingOption : IMessage\u003cLogsPolicy.Types.CloudLoggingOption\u003e, IEquatable\u003cLogsPolicy.Types.CloudLoggingOption\u003e, IDeepCloneable\u003cLogsPolicy.Types.CloudLoggingOption\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Batch v1 API class LogsPolicy.Types.CloudLoggingOption.\n\n`CloudLoggingOption` contains additional settings for Cloud Logging logs\ngenerated by Batch job. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LogsPolicy.Types.CloudLoggingOption \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LogsPolicy](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy.Types)[CloudLoggingOption](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LogsPolicy](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy.Types)[CloudLoggingOption](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LogsPolicy](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy.Types)[CloudLoggingOption](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LogsPolicy.Types.CloudLoggingOption), [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### CloudLoggingOption()\n\n public CloudLoggingOption()\n\n### CloudLoggingOption(CloudLoggingOption)\n\n public CloudLoggingOption(LogsPolicy.Types.CloudLoggingOption other)\n\nProperties\n----------\n\n### UseGenericTaskMonitoredResource\n\n public bool UseGenericTaskMonitoredResource { get; set; }\n\nOptional. Set this field to `true` to change the [monitored resource\ntype](https://cloud.google.com/monitoring/api/resources) for\nCloud Logging logs generated by this Batch job from\nthe\n[`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)\ntype to the formerly used\n[`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)\ntype."]]