125 lines
3.2 KiB
PHP
125 lines
3.2 KiB
PHP
<?php
|
|
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*/
|
|
|
|
namespace Google\Service\Safebrowsing;
|
|
|
|
class GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit extends \Google\Model
|
|
{
|
|
/**
|
|
* The encoded deltas that are encoded using the Golomb-Rice coder.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $encodedData;
|
|
/**
|
|
* The number of entries that are delta encoded in the encoded data. If only a
|
|
* single integer was encoded, this will be zero and the single value will be
|
|
* stored in `first_value`.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $entriesCount;
|
|
/**
|
|
* The first entry in the encoded data (hashes), or, if only a single hash
|
|
* prefix was encoded, that entry's value. If the field is empty, the entry is
|
|
* zero.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $firstValue;
|
|
/**
|
|
* The Golomb-Rice parameter. This parameter is guaranteed to be between 35
|
|
* and 62, inclusive.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $riceParameter;
|
|
|
|
/**
|
|
* The encoded deltas that are encoded using the Golomb-Rice coder.
|
|
*
|
|
* @param string $encodedData
|
|
*/
|
|
public function setEncodedData($encodedData)
|
|
{
|
|
$this->encodedData = $encodedData;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEncodedData()
|
|
{
|
|
return $this->encodedData;
|
|
}
|
|
/**
|
|
* The number of entries that are delta encoded in the encoded data. If only a
|
|
* single integer was encoded, this will be zero and the single value will be
|
|
* stored in `first_value`.
|
|
*
|
|
* @param int $entriesCount
|
|
*/
|
|
public function setEntriesCount($entriesCount)
|
|
{
|
|
$this->entriesCount = $entriesCount;
|
|
}
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getEntriesCount()
|
|
{
|
|
return $this->entriesCount;
|
|
}
|
|
/**
|
|
* The first entry in the encoded data (hashes), or, if only a single hash
|
|
* prefix was encoded, that entry's value. If the field is empty, the entry is
|
|
* zero.
|
|
*
|
|
* @param string $firstValue
|
|
*/
|
|
public function setFirstValue($firstValue)
|
|
{
|
|
$this->firstValue = $firstValue;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getFirstValue()
|
|
{
|
|
return $this->firstValue;
|
|
}
|
|
/**
|
|
* The Golomb-Rice parameter. This parameter is guaranteed to be between 35
|
|
* and 62, inclusive.
|
|
*
|
|
* @param int $riceParameter
|
|
*/
|
|
public function setRiceParameter($riceParameter)
|
|
{
|
|
$this->riceParameter = $riceParameter;
|
|
}
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getRiceParameter()
|
|
{
|
|
return $this->riceParameter;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit::class, 'Google_Service_Safebrowsing_GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit');
|