<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/admin/v2/types.proto

namespace Google\Cloud\Bigtable\Admin\V2\Type\Int64\Encoding;

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

/**
 * Encodes the value as an 8-byte big-endian two's complement value.
 * Sorted mode: non-negative values are supported.
 * Distinct mode: all values are supported.
 * Compatible with:
 *  - BigQuery `BINARY` encoding
 *  - HBase `Bytes.toBytes`
 *  - Java `ByteBuffer.putLong()` with `ByteOrder.BIG_ENDIAN`
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.Type.Int64.Encoding.BigEndianBytes</code>
 */
class BigEndianBytes extends \Google\Protobuf\Internal\Message
{
    /**
     * Deprecated: ignored if set.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true];</code>
     * @deprecated
     */
    protected $bytes_type = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $bytes_type
     *           Deprecated: ignored if set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\Types::initOnce();
        parent::__construct($data);
    }

    /**
     * Deprecated: ignored if set.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true];</code>
     * @return \Google\Cloud\Bigtable\Admin\V2\Type\Bytes|null
     * @deprecated
     */
    public function getBytesType()
    {
        if (isset($this->bytes_type)) {
            @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED);
        }
        return $this->bytes_type;
    }

    public function hasBytesType()
    {
        if (isset($this->bytes_type)) {
            @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED);
        }
        return isset($this->bytes_type);
    }

    public function clearBytesType()
    {
        @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED);
        unset($this->bytes_type);
    }

    /**
     * Deprecated: ignored if set.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.Type.Bytes bytes_type = 1 [deprecated = true];</code>
     * @param \Google\Cloud\Bigtable\Admin\V2\Type\Bytes $var
     * @return $this
     * @deprecated
     */
    public function setBytesType($var)
    {
        @trigger_error('bytes_type is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\Type\Bytes::class);
        $this->bytes_type = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigEndianBytes::class, \Google\Cloud\Bigtable\Admin\V2\Type_Int64_Encoding_BigEndianBytes::class);

