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

namespace Google\Cloud\AIPlatform\V1\FeatureView\IndexConfig;

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

/**
 * Configuration options for the tree-AH algorithm.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureView.IndexConfig.TreeAHConfig</code>
 */
class TreeAHConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Number of embeddings on each leaf node. The default value is
     * 1000 if not set.
     *
     * Generated from protobuf field <code>optional int64 leaf_node_embedding_count = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $leaf_node_embedding_count = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $leaf_node_embedding_count
     *           Optional. Number of embeddings on each leaf node. The default value is
     *           1000 if not set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Number of embeddings on each leaf node. The default value is
     * 1000 if not set.
     *
     * Generated from protobuf field <code>optional int64 leaf_node_embedding_count = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int|string
     */
    public function getLeafNodeEmbeddingCount()
    {
        return isset($this->leaf_node_embedding_count) ? $this->leaf_node_embedding_count : 0;
    }

    public function hasLeafNodeEmbeddingCount()
    {
        return isset($this->leaf_node_embedding_count);
    }

    public function clearLeafNodeEmbeddingCount()
    {
        unset($this->leaf_node_embedding_count);
    }

    /**
     * Optional. Number of embeddings on each leaf node. The default value is
     * 1000 if not set.
     *
     * Generated from protobuf field <code>optional int64 leaf_node_embedding_count = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int|string $var
     * @return $this
     */
    public function setLeafNodeEmbeddingCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->leaf_node_embedding_count = $var;

        return $this;
    }

}


