Indicates how to authorize and/or authenticate devices to access the
gateway.

Generated from protobuf field <code>.google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;</code>
@param int $var
@return $this
192336
public function setGatewayAuthMethod($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Iot\V1\GatewayAuthMethod::class);
        $this->gateway_auth_method = $var;

        return $this;
    }
31194
public function setInstance($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Redis\V1\Instance::class);
        $this->instance = $var;

        return $this;
    }
138308
public function setTenant($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Tenant::class);
        $this->tenant = $var;

        return $this;
    }
1369900
public function setDeviceRegistries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iot\V1\DeviceRegistry::class);
        $this->device_registries = $arr;

        return $this;
    }
280328
public function setRequestedPrivacyMetric($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric::class);
        $this->requested_privacy_metric = $var;

        return $this;
    }
1060666
public function setInstance($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Instance\V1\Instance::class);
        $this->instance = $var;

        return $this;
    }
771306
public function setApplication($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Application::class);
        $this->application = $var;

        return $this;
    }
601905
public function setSshPublicKeys($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OsLogin\Common\SshPublicKey::class);
        $this->ssh_public_keys = $arr;

        return $this;
    }
992688
public function setHttpConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\HttpConfig::class);
        $this->http_config = $var;

        return $this;
    }
137290
public function setVoice($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1\PartOfSpeech_Voice::class);
        $this->voice = $var;

        return $this;
    }
1250268
public function setGqlQuery($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\GqlQuery::class);
        $this->writeOneof(7, $var);

        return $this;
    }
899749
public function setAppEngineRouting($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Scheduler\V1beta1\AppEngineRouting::class);
        $this->app_engine_routing = $var;

        return $this;
    }
1365477
public function setCloudStorageFileSet($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageFileSet::class);
        $this->writeOneof(2, $var);

        return $this;
    }
626165
public function setWebDetection($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\WebDetection::class);
        $this->web_detection = $var;

        return $this;
    }
273296
public function setDeviceType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\DeviceInfo_DeviceType::class);
        $this->device_type = $var;

        return $this;
    }
1237488
public function setHttpTarget($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Scheduler\V1\HttpTarget::class);
        $this->writeOneof(6, $var);

        return $this;
    }
886995
public function setCloudRepo($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\CloudRepoSourceContext::class);
        $this->writeOneof(1, $var);

        return $this;
    }