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

namespace Google\Cloud\Channel\V1;

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

/**
 * Request message for
 * [CloudChannelService.UpdateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.UpdateCustomerRepricingConfig].
 *
 * Generated from protobuf message <code>google.cloud.channel.v1.UpdateCustomerRepricingConfigRequest</code>
 */
class UpdateCustomerRepricingConfigRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The CustomerRepricingConfig object to update.
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $customer_repricing_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Channel\V1\CustomerRepricingConfig $customer_repricing_config
     *           Required. The CustomerRepricingConfig object to update.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Channel\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The CustomerRepricingConfig object to update.
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Channel\V1\CustomerRepricingConfig|null
     */
    public function getCustomerRepricingConfig()
    {
        return $this->customer_repricing_config;
    }

    public function hasCustomerRepricingConfig()
    {
        return isset($this->customer_repricing_config);
    }

    public function clearCustomerRepricingConfig()
    {
        unset($this->customer_repricing_config);
    }

    /**
     * Required. The CustomerRepricingConfig object to update.
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.CustomerRepricingConfig customer_repricing_config = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Channel\V1\CustomerRepricingConfig $var
     * @return $this
     */
    public function setCustomerRepricingConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\CustomerRepricingConfig::class);
        $this->customer_repricing_config = $var;

        return $this;
    }

}

