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

namespace Google\Cloud\Datastream\V1;

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

/**
 * Salesforce organization structure.
 *
 * Generated from protobuf message <code>google.cloud.datastream.v1.SalesforceOrg</code>
 */
class SalesforceOrg extends \Google\Protobuf\Internal\Message
{
    /**
     * Salesforce objects in the database server.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datastream.v1.SalesforceObject objects = 1;</code>
     */
    private $objects;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Datastream\V1\SalesforceObject[] $objects
     *           Salesforce objects in the database server.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datastream\V1\DatastreamResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Salesforce objects in the database server.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datastream.v1.SalesforceObject objects = 1;</code>
     * @return RepeatedField<\Google\Cloud\Datastream\V1\SalesforceObject>
     */
    public function getObjects()
    {
        return $this->objects;
    }

    /**
     * Salesforce objects in the database server.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datastream.v1.SalesforceObject objects = 1;</code>
     * @param \Google\Cloud\Datastream\V1\SalesforceObject[] $var
     * @return $this
     */
    public function setObjects($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastream\V1\SalesforceObject::class);
        $this->objects = $arr;

        return $this;
    }

}

