JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "LabelDescriptor.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/google/apiclient-services/src/Monitoring/LabelDescriptor.php
File size: 2.84 KB
MIME-type: text/x-php
Charset: utf-8

<?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\Monitoring;

class LabelDescriptor extends \Google\Model
{
  /**
   * A variable-length string, not to exceed 1,024 characters. This is the
   * default value type.
   */
  public const VALUE_TYPE_STRING = 'STRING';
  /**
   * Boolean; true or false.
   */
  public const VALUE_TYPE_BOOL = 'BOOL';
  /**
   * A 64-bit signed integer.
   */
  public const VALUE_TYPE_INT64 = 'INT64';
  /**
   * A human-readable description for the label.
   *
   * @var string
   */
  public $description;
  /**
   * The key for this label. The key must meet the following criteria: Does not
   * exceed 100 characters. Matches the following regular expression:
   * [a-zA-Z][a-zA-Z0-9_]* The first character must be an upper- or lower-case
   * letter. The remaining characters must be letters, digits, or underscores.
   *
   * @var string
   */
  public $key;
  /**
   * The type of data that can be assigned to the label.
   *
   * @var string
   */
  public $valueType;

  /**
   * A human-readable description for the label.
   *
   * @param string $description
   */
  public function setDescription($description)
  {
    $this->description = $description;
  }
  /**
   * @return string
   */
  public function getDescription()
  {
    return $this->description;
  }
  /**
   * The key for this label. The key must meet the following criteria: Does not
   * exceed 100 characters. Matches the following regular expression:
   * [a-zA-Z][a-zA-Z0-9_]* The first character must be an upper- or lower-case
   * letter. The remaining characters must be letters, digits, or underscores.
   *
   * @param string $key
   */
  public function setKey($key)
  {
    $this->key = $key;
  }
  /**
   * @return string
   */
  public function getKey()
  {
    return $this->key;
  }
  /**
   * The type of data that can be assigned to the label.
   *
   * Accepted values: STRING, BOOL, INT64
   *
   * @param self::VALUE_TYPE_* $valueType
   */
  public function setValueType($valueType)
  {
    $this->valueType = $valueType;
  }
  /**
   * @return self::VALUE_TYPE_*
   */
  public function getValueType()
  {
    return $this->valueType;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelDescriptor::class, 'Google_Service_Monitoring_LabelDescriptor');