<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/batch/v1/job.proto

namespace Google\Cloud\Batch\V1\LogsPolicy;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * `CloudLoggingOption` contains additional settings for Cloud Logging logs
 * generated by Batch job.
 *
 * Generated from protobuf message <code>google.cloud.batch.v1.LogsPolicy.CloudLoggingOption</code>
 */
class CloudLoggingOption extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Set this flag 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.
     *
     * Generated from protobuf field <code>bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $use_generic_task_monitored_resource = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $use_generic_task_monitored_resource
     *           Optional. Set this flag 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.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Batch\V1\Job::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Set this flag 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.
     *
     * Generated from protobuf field <code>bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getUseGenericTaskMonitoredResource()
    {
        return $this->use_generic_task_monitored_resource;
    }

    /**
     * Optional. Set this flag 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.
     *
     * Generated from protobuf field <code>bool use_generic_task_monitored_resource = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setUseGenericTaskMonitoredResource($var)
    {
        GPBUtil::checkBool($var);
        $this->use_generic_task_monitored_resource = $var;

        return $this;
    }

}


