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

namespace Google\Ads\GoogleAds\V20\Services;

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

/**
 * Request message for
 * [ProductLinkInvitationService.CreateProductLinkInvitation][google.ads.googleads.v20.services.ProductLinkInvitationService.CreateProductLinkInvitation].
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.services.CreateProductLinkInvitationRequest</code>
 */
class CreateProductLinkInvitationRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ID of the customer being modified.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $customer_id = '';
    /**
     * Required. The product link invitation to be created.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.resources.ProductLinkInvitation product_link_invitation = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $product_link_invitation = null;

    /**
     * @param string                                                    $customerId            Required. The ID of the customer being modified.
     * @param \Google\Ads\GoogleAds\V20\Resources\ProductLinkInvitation $productLinkInvitation Required. The product link invitation to be created.
     *
     * @return \Google\Ads\GoogleAds\V20\Services\CreateProductLinkInvitationRequest
     *
     * @experimental
     */
    public static function build(string $customerId, \Google\Ads\GoogleAds\V20\Resources\ProductLinkInvitation $productLinkInvitation): self
    {
        return (new self())
            ->setCustomerId($customerId)
            ->setProductLinkInvitation($productLinkInvitation);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $customer_id
     *           Required. The ID of the customer being modified.
     *     @type \Google\Ads\GoogleAds\V20\Resources\ProductLinkInvitation $product_link_invitation
     *           Required. The product link invitation to be created.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Services\ProductLinkInvitationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The ID of the customer being modified.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCustomerId()
    {
        return $this->customer_id;
    }

    /**
     * Required. The ID of the customer being modified.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCustomerId($var)
    {
        GPBUtil::checkString($var, True);
        $this->customer_id = $var;

        return $this;
    }

    /**
     * Required. The product link invitation to be created.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.resources.ProductLinkInvitation product_link_invitation = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V20\Resources\ProductLinkInvitation|null
     */
    public function getProductLinkInvitation()
    {
        return $this->product_link_invitation;
    }

    public function hasProductLinkInvitation()
    {
        return isset($this->product_link_invitation);
    }

    public function clearProductLinkInvitation()
    {
        unset($this->product_link_invitation);
    }

    /**
     * Required. The product link invitation to be created.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v20.resources.ProductLinkInvitation product_link_invitation = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V20\Resources\ProductLinkInvitation $var
     * @return $this
     */
    public function setProductLinkInvitation($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V20\Resources\ProductLinkInvitation::class);
        $this->product_link_invitation = $var;

        return $this;
    }

}

