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

namespace Google\Cloud\VMMigration\V1;

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

/**
 * Request message for 'AddGroupMigration' request.
 *
 * Generated from protobuf message <code>google.cloud.vmmigration.v1.AddGroupMigrationRequest</code>
 */
class AddGroupMigrationRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The full path name of the Group to add to.
     *
     * Generated from protobuf field <code>string group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $group = '';
    /**
     * The full path name of the MigratingVm to add.
     *
     * Generated from protobuf field <code>string migrating_vm = 2 [(.google.api.resource_reference) = {</code>
     */
    private $migrating_vm = '';

    /**
     * @param string $group Required. The full path name of the Group to add to. Please see
     *                      {@see VmMigrationClient::groupName()} for help formatting this field.
     *
     * @return \Google\Cloud\VMMigration\V1\AddGroupMigrationRequest
     *
     * @experimental
     */
    public static function build(string $group): self
    {
        return (new self())
            ->setGroup($group);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $group
     *           Required. The full path name of the Group to add to.
     *     @type string $migrating_vm
     *           The full path name of the MigratingVm to add.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vmmigration\V1\Vmmigration::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The full path name of the Group to add to.
     *
     * Generated from protobuf field <code>string group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getGroup()
    {
        return $this->group;
    }

    /**
     * Required. The full path name of the Group to add to.
     *
     * Generated from protobuf field <code>string group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setGroup($var)
    {
        GPBUtil::checkString($var, True);
        $this->group = $var;

        return $this;
    }

    /**
     * The full path name of the MigratingVm to add.
     *
     * Generated from protobuf field <code>string migrating_vm = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getMigratingVm()
    {
        return $this->migrating_vm;
    }

    /**
     * The full path name of the MigratingVm to add.
     *
     * Generated from protobuf field <code>string migrating_vm = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setMigratingVm($var)
    {
        GPBUtil::checkString($var, True);
        $this->migrating_vm = $var;

        return $this;
    }

}

