<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/services/customer_sk_ad_network_conversion_value_schema_service.proto

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * Response message for MutateCustomerSkAdNetworkConversionValueSchema.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.MutateCustomerSkAdNetworkConversionValueSchemaResponse</code>
 */
class MutateCustomerSkAdNetworkConversionValueSchemaResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * All results for the mutate.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.services.MutateCustomerSkAdNetworkConversionValueSchemaResult result = 1;</code>
     */
    protected $result = null;
    /**
     * Non blocking errors that provides schema validation failure details.
     * Returned only when enable_warnings = true.
     *
     * Generated from protobuf field <code>.google.rpc.Status warning = 2;</code>
     */
    protected $warning = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Services\MutateCustomerSkAdNetworkConversionValueSchemaResult $result
     *           All results for the mutate.
     *     @type \Google\Rpc\Status $warning
     *           Non blocking errors that provides schema validation failure details.
     *           Returned only when enable_warnings = true.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\CustomerSkAdNetworkConversionValueSchemaService::initOnce();
        parent::__construct($data);
    }

    /**
     * All results for the mutate.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.services.MutateCustomerSkAdNetworkConversionValueSchemaResult result = 1;</code>
     * @return \Google\Ads\GoogleAds\V25\Services\MutateCustomerSkAdNetworkConversionValueSchemaResult|null
     */
    public function getResult()
    {
        return $this->result;
    }

    public function hasResult()
    {
        return isset($this->result);
    }

    public function clearResult()
    {
        unset($this->result);
    }

    /**
     * All results for the mutate.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.services.MutateCustomerSkAdNetworkConversionValueSchemaResult result = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Services\MutateCustomerSkAdNetworkConversionValueSchemaResult $var
     * @return $this
     */
    public function setResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V25\Services\MutateCustomerSkAdNetworkConversionValueSchemaResult::class);
        $this->result = $var;

        return $this;
    }

    /**
     * Non blocking errors that provides schema validation failure details.
     * Returned only when enable_warnings = true.
     *
     * Generated from protobuf field <code>.google.rpc.Status warning = 2;</code>
     * @return \Google\Rpc\Status|null
     */
    public function getWarning()
    {
        return $this->warning;
    }

    public function hasWarning()
    {
        return isset($this->warning);
    }

    public function clearWarning()
    {
        unset($this->warning);
    }

    /**
     * Non blocking errors that provides schema validation failure details.
     * Returned only when enable_warnings = true.
     *
     * Generated from protobuf field <code>.google.rpc.Status warning = 2;</code>
     * @param \Google\Rpc\Status $var
     * @return $this
     */
    public function setWarning($var)
    {
        GPBUtil::checkMessage($var, \Google\Rpc\Status::class);
        $this->warning = $var;

        return $this;
    }

}

