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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Details of operations that perform import Feature values.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata</code>
 */
class ImportFeatureValuesOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Operation metadata for Featurestore import Feature values.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     */
    private $generic_metadata = null;
    /**
     * Number of entities that have been imported by the operation.
     *
     * Generated from protobuf field <code>int64 imported_entity_count = 2;</code>
     */
    private $imported_entity_count = 0;
    /**
     * Number of Feature values that have been imported by the operation.
     *
     * Generated from protobuf field <code>int64 imported_feature_value_count = 3;</code>
     */
    private $imported_feature_value_count = 0;
    /**
     * The number of rows in input source that weren't imported due to either
     * * Not having any featureValues.
     * * Having a null entityId.
     * * Having a null timestamp.
     * * Not being parsable (applicable for CSV sources).
     *
     * Generated from protobuf field <code>int64 invalid_row_count = 6;</code>
     */
    private $invalid_row_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata
     *           Operation metadata for Featurestore import Feature values.
     *     @type int|string $imported_entity_count
     *           Number of entities that have been imported by the operation.
     *     @type int|string $imported_feature_value_count
     *           Number of Feature values that have been imported by the operation.
     *     @type int|string $invalid_row_count
     *           The number of rows in input source that weren't imported due to either
     *           * Not having any featureValues.
     *           * Having a null entityId.
     *           * Having a null timestamp.
     *           * Not being parsable (applicable for CSV sources).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce();
        parent::__construct($data);
    }

    /**
     * Operation metadata for Featurestore import Feature values.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null
     */
    public function getGenericMetadata()
    {
        return $this->generic_metadata;
    }

    public function hasGenericMetadata()
    {
        return isset($this->generic_metadata);
    }

    public function clearGenericMetadata()
    {
        unset($this->generic_metadata);
    }

    /**
     * Operation metadata for Featurestore import Feature values.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var
     * @return $this
     */
    public function setGenericMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class);
        $this->generic_metadata = $var;

        return $this;
    }

    /**
     * Number of entities that have been imported by the operation.
     *
     * Generated from protobuf field <code>int64 imported_entity_count = 2;</code>
     * @return int|string
     */
    public function getImportedEntityCount()
    {
        return $this->imported_entity_count;
    }

    /**
     * Number of entities that have been imported by the operation.
     *
     * Generated from protobuf field <code>int64 imported_entity_count = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setImportedEntityCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->imported_entity_count = $var;

        return $this;
    }

    /**
     * Number of Feature values that have been imported by the operation.
     *
     * Generated from protobuf field <code>int64 imported_feature_value_count = 3;</code>
     * @return int|string
     */
    public function getImportedFeatureValueCount()
    {
        return $this->imported_feature_value_count;
    }

    /**
     * Number of Feature values that have been imported by the operation.
     *
     * Generated from protobuf field <code>int64 imported_feature_value_count = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setImportedFeatureValueCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->imported_feature_value_count = $var;

        return $this;
    }

    /**
     * The number of rows in input source that weren't imported due to either
     * * Not having any featureValues.
     * * Having a null entityId.
     * * Having a null timestamp.
     * * Not being parsable (applicable for CSV sources).
     *
     * Generated from protobuf field <code>int64 invalid_row_count = 6;</code>
     * @return int|string
     */
    public function getInvalidRowCount()
    {
        return $this->invalid_row_count;
    }

    /**
     * The number of rows in input source that weren't imported due to either
     * * Not having any featureValues.
     * * Having a null entityId.
     * * Having a null timestamp.
     * * Not being parsable (applicable for CSV sources).
     *
     * Generated from protobuf field <code>int64 invalid_row_count = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setInvalidRowCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->invalid_row_count = $var;

        return $this;
    }

}

