<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

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

    /**
     * @param \Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channelPartnerRepricingConfig Required. The ChannelPartnerRepricingConfig object to update.
     *
     * @return \Google\Cloud\Channel\V1\UpdateChannelPartnerRepricingConfigRequest
     *
     * @experimental
     */
    public static function build(\Google\Cloud\Channel\V1\ChannelPartnerRepricingConfig $channelPartnerRepricingConfig): self
    {
        return (new self())
            ->setChannelPartnerRepricingConfig($channelPartnerRepricingConfig);
    }

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

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

    public function hasChannelPartnerRepricingConfig()
    {
        return isset($this->channel_partner_repricing_config);
    }

    public function clearChannelPartnerRepricingConfig()
    {
        unset($this->channel_partner_repricing_config);
    }

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

        return $this;
    }

}

