179 lines
3.9 KiB
PHP
179 lines
3.9 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\DriveLabels;
|
|
|
|
class GoogleAppsDriveLabelsV2LabelLimits extends \Google\Model
|
|
{
|
|
protected $fieldLimitsType = GoogleAppsDriveLabelsV2FieldLimits::class;
|
|
protected $fieldLimitsDataType = '';
|
|
/**
|
|
* The maximum number of published fields that can be deleted.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $maxDeletedFields;
|
|
/**
|
|
* The maximum number of characters allowed for the description.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $maxDescriptionLength;
|
|
/**
|
|
* The maximum number of draft revisions that will be kept before deleting old
|
|
* drafts.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $maxDraftRevisions;
|
|
/**
|
|
* The maximum number of fields allowed within the label.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $maxFields;
|
|
/**
|
|
* The maximum number of characters allowed for the title.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $maxTitleLength;
|
|
/**
|
|
* Resource name.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $name;
|
|
|
|
/**
|
|
* The limits for fields.
|
|
*
|
|
* @param GoogleAppsDriveLabelsV2FieldLimits $fieldLimits
|
|
*/
|
|
public function setFieldLimits(GoogleAppsDriveLabelsV2FieldLimits $fieldLimits)
|
|
{
|
|
$this->fieldLimits = $fieldLimits;
|
|
}
|
|
/**
|
|
* @return GoogleAppsDriveLabelsV2FieldLimits
|
|
*/
|
|
public function getFieldLimits()
|
|
{
|
|
return $this->fieldLimits;
|
|
}
|
|
/**
|
|
* The maximum number of published fields that can be deleted.
|
|
*
|
|
* @param int $maxDeletedFields
|
|
*/
|
|
public function setMaxDeletedFields($maxDeletedFields)
|
|
{
|
|
$this->maxDeletedFields = $maxDeletedFields;
|
|
}
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getMaxDeletedFields()
|
|
{
|
|
return $this->maxDeletedFields;
|
|
}
|
|
/**
|
|
* The maximum number of characters allowed for the description.
|
|
*
|
|
* @param int $maxDescriptionLength
|
|
*/
|
|
public function setMaxDescriptionLength($maxDescriptionLength)
|
|
{
|
|
$this->maxDescriptionLength = $maxDescriptionLength;
|
|
}
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getMaxDescriptionLength()
|
|
{
|
|
return $this->maxDescriptionLength;
|
|
}
|
|
/**
|
|
* The maximum number of draft revisions that will be kept before deleting old
|
|
* drafts.
|
|
*
|
|
* @param int $maxDraftRevisions
|
|
*/
|
|
public function setMaxDraftRevisions($maxDraftRevisions)
|
|
{
|
|
$this->maxDraftRevisions = $maxDraftRevisions;
|
|
}
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getMaxDraftRevisions()
|
|
{
|
|
return $this->maxDraftRevisions;
|
|
}
|
|
/**
|
|
* The maximum number of fields allowed within the label.
|
|
*
|
|
* @param int $maxFields
|
|
*/
|
|
public function setMaxFields($maxFields)
|
|
{
|
|
$this->maxFields = $maxFields;
|
|
}
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getMaxFields()
|
|
{
|
|
return $this->maxFields;
|
|
}
|
|
/**
|
|
* The maximum number of characters allowed for the title.
|
|
*
|
|
* @param int $maxTitleLength
|
|
*/
|
|
public function setMaxTitleLength($maxTitleLength)
|
|
{
|
|
$this->maxTitleLength = $maxTitleLength;
|
|
}
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getMaxTitleLength()
|
|
{
|
|
return $this->maxTitleLength;
|
|
}
|
|
/**
|
|
* Resource name.
|
|
*
|
|
* @param string $name
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(GoogleAppsDriveLabelsV2LabelLimits::class, 'Google_Service_DriveLabels_GoogleAppsDriveLabelsV2LabelLimits');
|