propresenter-php/generated/Registration/Core/LicensingInfo.php
Thorsten Bus 22ba4aff7d refactor: make repo Composer-compatible by moving php/ to root and ref/ to doc/reference_samples
- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root
- Move ref/ to doc/reference_samples/ for better organization
- Remove vendor/ from git tracking (now properly gitignored)
- Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/)
- Update all documentation paths (AGENTS.md, doc/*.md)
- Remove php.bak/ directory
- All 252 tests pass
2026-03-30 13:26:29 +02:00

141 lines
3.7 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: registration.proto
namespace Registration\Core;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>registration.core.LicensingInfo</code>
*/
class LicensingInfo extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>int32 available_copies = 1;</code>
*/
protected $available_copies = 0;
/**
* Generated from protobuf field <code>int32 total_copies = 2;</code>
*/
protected $total_copies = 0;
/**
* Generated from protobuf field <code>bool is_active_locally = 3;</code>
*/
protected $is_active_locally = false;
/**
* Generated from protobuf field <code>repeated .registration.core.ActiveCopy other_active_copies = 4;</code>
*/
private $other_active_copies;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $available_copies
* @type int $total_copies
* @type bool $is_active_locally
* @type array<\Registration\Core\ActiveCopy>|\Google\Protobuf\Internal\RepeatedField $other_active_copies
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Registration::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>int32 available_copies = 1;</code>
* @return int
*/
public function getAvailableCopies()
{
return $this->available_copies;
}
/**
* Generated from protobuf field <code>int32 available_copies = 1;</code>
* @param int $var
* @return $this
*/
public function setAvailableCopies($var)
{
GPBUtil::checkInt32($var);
$this->available_copies = $var;
return $this;
}
/**
* Generated from protobuf field <code>int32 total_copies = 2;</code>
* @return int
*/
public function getTotalCopies()
{
return $this->total_copies;
}
/**
* Generated from protobuf field <code>int32 total_copies = 2;</code>
* @param int $var
* @return $this
*/
public function setTotalCopies($var)
{
GPBUtil::checkInt32($var);
$this->total_copies = $var;
return $this;
}
/**
* Generated from protobuf field <code>bool is_active_locally = 3;</code>
* @return bool
*/
public function getIsActiveLocally()
{
return $this->is_active_locally;
}
/**
* Generated from protobuf field <code>bool is_active_locally = 3;</code>
* @param bool $var
* @return $this
*/
public function setIsActiveLocally($var)
{
GPBUtil::checkBool($var);
$this->is_active_locally = $var;
return $this;
}
/**
* Generated from protobuf field <code>repeated .registration.core.ActiveCopy other_active_copies = 4;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getOtherActiveCopies()
{
return $this->other_active_copies;
}
/**
* Generated from protobuf field <code>repeated .registration.core.ActiveCopy other_active_copies = 4;</code>
* @param array<\Registration\Core\ActiveCopy>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setOtherActiveCopies($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Registration\Core\ActiveCopy::class);
$this->other_active_copies = $arr;
return $this;
}
}