1.0.0-alpha36 (latest) 1.0.0-alpha35

    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 v1alpha API class LogsPolicy.Types.CloudLoggingOption.

`CloudLoggingOption` contains additional settings for Cloud Logging logs
generated by Batch job.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LogsPolicy.Types.CloudLoggingOption

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LogsPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.Types.md.txt)[CloudLoggingOption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.Types.CloudLoggingOption.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LogsPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.Types.md.txt)[CloudLoggingOption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.Types.CloudLoggingOption.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LogsPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.Types.md.txt)[CloudLoggingOption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.LogsPolicy.Types.CloudLoggingOption.md.txt), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Batch.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.md.txt)

## Assembly

Google.Cloud.Batch.V1Alpha.dll

## Constructors

### CloudLoggingOption()

    public CloudLoggingOption()

### CloudLoggingOption(CloudLoggingOption)

    public CloudLoggingOption(LogsPolicy.Types.CloudLoggingOption other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `LogsPolicyTypesCloudLoggingOption` |

## Properties

### UseGenericTaskMonitoredResource

    public bool UseGenericTaskMonitoredResource { get; set; }

Optional. Set this field to `true` to change the [monitored resource
type](https://cloud.google.com/monitoring/api/resources) for
Cloud Logging logs generated by this Batch job from
the
[`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)
type to the formerly used
[`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)
type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |