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

namespace Google\Cloud\BeyondCorp\AppConnectors\V1;

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

/**
 * AppConnectorInstanceConfig defines the instance config of a AppConnector.
 *
 * Generated from protobuf message <code>google.cloud.beyondcorp.appconnectors.v1.AppConnectorInstanceConfig</code>
 */
class AppConnectorInstanceConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. A monotonically increasing number generated and maintained
     * by the API provider. Every time a config changes in the backend, the
     * sequenceNumber should be bumped up to reflect the change.
     *
     * Generated from protobuf field <code>int64 sequence_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $sequence_number = 0;
    /**
     * The SLM instance agent configuration.
     *
     * Generated from protobuf field <code>.google.protobuf.Any instance_config = 2;</code>
     */
    private $instance_config = null;
    /**
     * NotificationConfig defines the notification mechanism that the remote
     * instance should subscribe to in order to receive notification.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.appconnectors.v1.NotificationConfig notification_config = 3;</code>
     */
    private $notification_config = null;
    /**
     * ImageConfig defines the GCR images to run for the remote agent's control
     * plane.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.appconnectors.v1.ImageConfig image_config = 4;</code>
     */
    private $image_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $sequence_number
     *           Required. A monotonically increasing number generated and maintained
     *           by the API provider. Every time a config changes in the backend, the
     *           sequenceNumber should be bumped up to reflect the change.
     *     @type \Google\Protobuf\Any $instance_config
     *           The SLM instance agent configuration.
     *     @type \Google\Cloud\BeyondCorp\AppConnectors\V1\NotificationConfig $notification_config
     *           NotificationConfig defines the notification mechanism that the remote
     *           instance should subscribe to in order to receive notification.
     *     @type \Google\Cloud\BeyondCorp\AppConnectors\V1\ImageConfig $image_config
     *           ImageConfig defines the GCR images to run for the remote agent's control
     *           plane.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Beyondcorp\Appconnectors\V1\AppConnectorInstanceConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. A monotonically increasing number generated and maintained
     * by the API provider. Every time a config changes in the backend, the
     * sequenceNumber should be bumped up to reflect the change.
     *
     * Generated from protobuf field <code>int64 sequence_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int|string
     */
    public function getSequenceNumber()
    {
        return $this->sequence_number;
    }

    /**
     * Required. A monotonically increasing number generated and maintained
     * by the API provider. Every time a config changes in the backend, the
     * sequenceNumber should be bumped up to reflect the change.
     *
     * Generated from protobuf field <code>int64 sequence_number = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int|string $var
     * @return $this
     */
    public function setSequenceNumber($var)
    {
        GPBUtil::checkInt64($var);
        $this->sequence_number = $var;

        return $this;
    }

    /**
     * The SLM instance agent configuration.
     *
     * Generated from protobuf field <code>.google.protobuf.Any instance_config = 2;</code>
     * @return \Google\Protobuf\Any|null
     */
    public function getInstanceConfig()
    {
        return $this->instance_config;
    }

    public function hasInstanceConfig()
    {
        return isset($this->instance_config);
    }

    public function clearInstanceConfig()
    {
        unset($this->instance_config);
    }

    /**
     * The SLM instance agent configuration.
     *
     * Generated from protobuf field <code>.google.protobuf.Any instance_config = 2;</code>
     * @param \Google\Protobuf\Any $var
     * @return $this
     */
    public function setInstanceConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
        $this->instance_config = $var;

        return $this;
    }

    /**
     * NotificationConfig defines the notification mechanism that the remote
     * instance should subscribe to in order to receive notification.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.appconnectors.v1.NotificationConfig notification_config = 3;</code>
     * @return \Google\Cloud\BeyondCorp\AppConnectors\V1\NotificationConfig|null
     */
    public function getNotificationConfig()
    {
        return $this->notification_config;
    }

    public function hasNotificationConfig()
    {
        return isset($this->notification_config);
    }

    public function clearNotificationConfig()
    {
        unset($this->notification_config);
    }

    /**
     * NotificationConfig defines the notification mechanism that the remote
     * instance should subscribe to in order to receive notification.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.appconnectors.v1.NotificationConfig notification_config = 3;</code>
     * @param \Google\Cloud\BeyondCorp\AppConnectors\V1\NotificationConfig $var
     * @return $this
     */
    public function setNotificationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BeyondCorp\AppConnectors\V1\NotificationConfig::class);
        $this->notification_config = $var;

        return $this;
    }

    /**
     * ImageConfig defines the GCR images to run for the remote agent's control
     * plane.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.appconnectors.v1.ImageConfig image_config = 4;</code>
     * @return \Google\Cloud\BeyondCorp\AppConnectors\V1\ImageConfig|null
     */
    public function getImageConfig()
    {
        return $this->image_config;
    }

    public function hasImageConfig()
    {
        return isset($this->image_config);
    }

    public function clearImageConfig()
    {
        unset($this->image_config);
    }

    /**
     * ImageConfig defines the GCR images to run for the remote agent's control
     * plane.
     *
     * Generated from protobuf field <code>.google.cloud.beyondcorp.appconnectors.v1.ImageConfig image_config = 4;</code>
     * @param \Google\Cloud\BeyondCorp\AppConnectors\V1\ImageConfig $var
     * @return $this
     */
    public function setImageConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BeyondCorp\AppConnectors\V1\ImageConfig::class);
        $this->image_config = $var;

        return $this;
    }

}

