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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * One point viewable on a tensor metric plot.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.TensorboardTensor</code>
 */
class TensorboardTensor extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Serialized form of
     * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
     *
     * Generated from protobuf field <code>bytes value = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $value = '';
    /**
     * Optional. Version number of TensorProto used to serialize
     * [value][google.cloud.aiplatform.v1.TensorboardTensor.value].
     *
     * Generated from protobuf field <code>int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $version_number = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $value
     *           Required. Serialized form of
     *           https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
     *     @type int $version_number
     *           Optional. Version number of TensorProto used to serialize
     *           [value][google.cloud.aiplatform.v1.TensorboardTensor.value].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\TensorboardData::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Serialized form of
     * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
     *
     * Generated from protobuf field <code>bytes value = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Required. Serialized form of
     * https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto
     *
     * Generated from protobuf field <code>bytes value = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, False);
        $this->value = $var;

        return $this;
    }

    /**
     * Optional. Version number of TensorProto used to serialize
     * [value][google.cloud.aiplatform.v1.TensorboardTensor.value].
     *
     * Generated from protobuf field <code>int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getVersionNumber()
    {
        return $this->version_number;
    }

    /**
     * Optional. Version number of TensorProto used to serialize
     * [value][google.cloud.aiplatform.v1.TensorboardTensor.value].
     *
     * Generated from protobuf field <code>int32 version_number = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setVersionNumber($var)
    {
        GPBUtil::checkInt32($var);
        $this->version_number = $var;

        return $this;
    }

}

