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

namespace Google\Cloud\RapidMigrationAssessment\V1;

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

/**
 * Message describing Collector object.
 *
 * Generated from protobuf message <code>google.cloud.rapidmigrationassessment.v1.Collector</code>
 */
class Collector extends \Google\Protobuf\Internal\Message
{
    /**
     * name of resource.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Output only. Create time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $create_time = null;
    /**
     * Output only. Update time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $update_time = null;
    /**
     * Labels as key value pairs.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4;</code>
     */
    private $labels;
    /**
     * User specified name of the Collector.
     *
     * Generated from protobuf field <code>string display_name = 5;</code>
     */
    protected $display_name = '';
    /**
     * User specified description of the Collector.
     *
     * Generated from protobuf field <code>string description = 6;</code>
     */
    protected $description = '';
    /**
     * Service Account email used to ingest data to this Collector.
     *
     * Generated from protobuf field <code>string service_account = 7;</code>
     */
    protected $service_account = '';
    /**
     * Output only. Store cloud storage bucket name (which is a guid) created with
     * this Collector.
     *
     * Generated from protobuf field <code>string bucket = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $bucket = '';
    /**
     * User specified expected asset count.
     *
     * Generated from protobuf field <code>int64 expected_asset_count = 9;</code>
     */
    protected $expected_asset_count = 0;
    /**
     * Output only. State of the Collector.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.Collector.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $state = 0;
    /**
     * Output only. Client version.
     *
     * Generated from protobuf field <code>string client_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $client_version = '';
    /**
     * Output only. Reference to MC Source Guest Os Scan.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.GuestOsScan guest_os_scan = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $guest_os_scan = null;
    /**
     * Output only. Reference to MC Source vsphere_scan.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.VSphereScan vsphere_scan = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $vsphere_scan = null;
    /**
     * How many days to collect data.
     *
     * Generated from protobuf field <code>int32 collection_days = 14;</code>
     */
    protected $collection_days = 0;
    /**
     * Uri for EULA (End User License Agreement) from customer.
     *
     * Generated from protobuf field <code>string eula_uri = 15;</code>
     */
    protected $eula_uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           name of resource.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. Create time stamp.
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Output only. Update time stamp.
     *     @type array|\Google\Protobuf\Internal\MapField $labels
     *           Labels as key value pairs.
     *     @type string $display_name
     *           User specified name of the Collector.
     *     @type string $description
     *           User specified description of the Collector.
     *     @type string $service_account
     *           Service Account email used to ingest data to this Collector.
     *     @type string $bucket
     *           Output only. Store cloud storage bucket name (which is a guid) created with
     *           this Collector.
     *     @type int|string $expected_asset_count
     *           User specified expected asset count.
     *     @type int $state
     *           Output only. State of the Collector.
     *     @type string $client_version
     *           Output only. Client version.
     *     @type \Google\Cloud\RapidMigrationAssessment\V1\GuestOsScan $guest_os_scan
     *           Output only. Reference to MC Source Guest Os Scan.
     *     @type \Google\Cloud\RapidMigrationAssessment\V1\VSphereScan $vsphere_scan
     *           Output only. Reference to MC Source vsphere_scan.
     *     @type int $collection_days
     *           How many days to collect data.
     *     @type string $eula_uri
     *           Uri for EULA (End User License Agreement) from customer.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Rapidmigrationassessment\V1\ApiEntities::initOnce();
        parent::__construct($data);
    }

    /**
     * name of resource.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * name of resource.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. Create time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. Create time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. Update time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    public function hasUpdateTime()
    {
        return isset($this->update_time);
    }

    public function clearUpdateTime()
    {
        unset($this->update_time);
    }

    /**
     * Output only. Update time stamp.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->update_time = $var;

        return $this;
    }

    /**
     * Labels as key value pairs.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getLabels()
    {
        return $this->labels;
    }

    /**
     * Labels as key value pairs.
     *
     * Generated from protobuf field <code>map<string, string> labels = 4;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setLabels($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->labels = $arr;

        return $this;
    }

    /**
     * User specified name of the Collector.
     *
     * Generated from protobuf field <code>string display_name = 5;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * User specified name of the Collector.
     *
     * Generated from protobuf field <code>string display_name = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * User specified description of the Collector.
     *
     * Generated from protobuf field <code>string description = 6;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * User specified description of the Collector.
     *
     * Generated from protobuf field <code>string description = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Service Account email used to ingest data to this Collector.
     *
     * Generated from protobuf field <code>string service_account = 7;</code>
     * @return string
     */
    public function getServiceAccount()
    {
        return $this->service_account;
    }

    /**
     * Service Account email used to ingest data to this Collector.
     *
     * Generated from protobuf field <code>string service_account = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setServiceAccount($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_account = $var;

        return $this;
    }

    /**
     * Output only. Store cloud storage bucket name (which is a guid) created with
     * this Collector.
     *
     * Generated from protobuf field <code>string bucket = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getBucket()
    {
        return $this->bucket;
    }

    /**
     * Output only. Store cloud storage bucket name (which is a guid) created with
     * this Collector.
     *
     * Generated from protobuf field <code>string bucket = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setBucket($var)
    {
        GPBUtil::checkString($var, True);
        $this->bucket = $var;

        return $this;
    }

    /**
     * User specified expected asset count.
     *
     * Generated from protobuf field <code>int64 expected_asset_count = 9;</code>
     * @return int|string
     */
    public function getExpectedAssetCount()
    {
        return $this->expected_asset_count;
    }

    /**
     * User specified expected asset count.
     *
     * Generated from protobuf field <code>int64 expected_asset_count = 9;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExpectedAssetCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->expected_asset_count = $var;

        return $this;
    }

    /**
     * Output only. State of the Collector.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.Collector.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Output only. State of the Collector.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.Collector.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\RapidMigrationAssessment\V1\Collector\State::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Output only. Client version.
     *
     * Generated from protobuf field <code>string client_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getClientVersion()
    {
        return $this->client_version;
    }

    /**
     * Output only. Client version.
     *
     * Generated from protobuf field <code>string client_version = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setClientVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->client_version = $var;

        return $this;
    }

    /**
     * Output only. Reference to MC Source Guest Os Scan.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.GuestOsScan guest_os_scan = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\RapidMigrationAssessment\V1\GuestOsScan|null
     */
    public function getGuestOsScan()
    {
        return $this->guest_os_scan;
    }

    public function hasGuestOsScan()
    {
        return isset($this->guest_os_scan);
    }

    public function clearGuestOsScan()
    {
        unset($this->guest_os_scan);
    }

    /**
     * Output only. Reference to MC Source Guest Os Scan.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.GuestOsScan guest_os_scan = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\RapidMigrationAssessment\V1\GuestOsScan $var
     * @return $this
     */
    public function setGuestOsScan($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\RapidMigrationAssessment\V1\GuestOsScan::class);
        $this->guest_os_scan = $var;

        return $this;
    }

    /**
     * Output only. Reference to MC Source vsphere_scan.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.VSphereScan vsphere_scan = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\RapidMigrationAssessment\V1\VSphereScan|null
     */
    public function getVsphereScan()
    {
        return $this->vsphere_scan;
    }

    public function hasVsphereScan()
    {
        return isset($this->vsphere_scan);
    }

    public function clearVsphereScan()
    {
        unset($this->vsphere_scan);
    }

    /**
     * Output only. Reference to MC Source vsphere_scan.
     *
     * Generated from protobuf field <code>.google.cloud.rapidmigrationassessment.v1.VSphereScan vsphere_scan = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\RapidMigrationAssessment\V1\VSphereScan $var
     * @return $this
     */
    public function setVsphereScan($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\RapidMigrationAssessment\V1\VSphereScan::class);
        $this->vsphere_scan = $var;

        return $this;
    }

    /**
     * How many days to collect data.
     *
     * Generated from protobuf field <code>int32 collection_days = 14;</code>
     * @return int
     */
    public function getCollectionDays()
    {
        return $this->collection_days;
    }

    /**
     * How many days to collect data.
     *
     * Generated from protobuf field <code>int32 collection_days = 14;</code>
     * @param int $var
     * @return $this
     */
    public function setCollectionDays($var)
    {
        GPBUtil::checkInt32($var);
        $this->collection_days = $var;

        return $this;
    }

    /**
     * Uri for EULA (End User License Agreement) from customer.
     *
     * Generated from protobuf field <code>string eula_uri = 15;</code>
     * @return string
     */
    public function getEulaUri()
    {
        return $this->eula_uri;
    }

    /**
     * Uri for EULA (End User License Agreement) from customer.
     *
     * Generated from protobuf field <code>string eula_uri = 15;</code>
     * @param string $var
     * @return $this
     */
    public function setEulaUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->eula_uri = $var;

        return $this;
    }

}

