<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/ces/v1/schema.proto

namespace Google\Cloud\Ces\V1;

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

/**
 * Represents a select subset of an OpenAPI 3.0 schema object.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.Schema</code>
 */
class Schema extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The type of the data.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $type = 0;
    /**
     * Optional. Properties of Type.OBJECT.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $properties;
    /**
     * Optional. Required properties of Type.OBJECT.
     *
     * Generated from protobuf field <code>repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $required;
    /**
     * Optional. The description of the data.
     *
     * Generated from protobuf field <code>string description = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $description = '';
    /**
     * Optional. Schema of the elements of Type.ARRAY.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $items = null;
    /**
     * Optional. Indicates if the value may be null.
     *
     * Generated from protobuf field <code>bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $nullable = false;
    /**
     * Optional. Indicate the items in the array must be unique. Only applies to
     * TYPE.ARRAY.
     *
     * Generated from protobuf field <code>bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $unique_items = false;
    /**
     * Optional. Schemas of initial elements of Type.ARRAY.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $prefix_items;
    /**
     * Optional. Can either be a boolean or an object, controls the presence of
     * additional properties.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $additional_properties = null;
    /**
     * Optional. The value should be validated against any (one or more) of the
     * subschemas in the list.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $any_of;
    /**
     * Optional. Possible values of the element of primitive type with enum
     * format. Examples:
     * 1. We can define direction as :
     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
     * 2. We can define apartment number as :
     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
     *
     * Generated from protobuf field <code>repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $enum;
    /**
     * Optional. Default value of the data.
     *
     * Generated from protobuf field <code>.google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $default = null;
    /**
     * Optional. Allows indirect references between schema nodes. The value should
     * be a valid reference to a child of the root `defs`.
     * For example, the following schema defines a reference to a schema node
     * named "Pet":
     * ```
     * type: object
     * properties:
     *   pet:
     *     ref: #/defs/Pet
     * defs:
     *   Pet:
     *     type: object
     *     properties:
     *       name:
     *         type: string
     * ```
     * The value of the "pet" property is a reference to the schema node
     * named "Pet".
     * See details in
     * https://json-schema.org/understanding-json-schema/structuring.
     *
     * Generated from protobuf field <code>string ref = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $ref = '';
    /**
     * Optional. A map of definitions for use by `ref`. Only allowed at the root
     * of the schema.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $defs;
    /**
     * Optional. The title of the schema.
     *
     * Generated from protobuf field <code>string title = 15 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $title = '';
    /**
     * Optional. Minimum number of the elements for Type.ARRAY.
     *
     * Generated from protobuf field <code>int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $min_items = 0;
    /**
     * Optional. Maximum number of the elements for Type.ARRAY.
     *
     * Generated from protobuf field <code>int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $max_items = 0;
    /**
     * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
     *
     * Generated from protobuf field <code>optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $minimum = null;
    /**
     * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
     *
     * Generated from protobuf field <code>optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $maximum = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *           Required. The type of the data.
     *     @type array|\Google\Protobuf\Internal\MapField $properties
     *           Optional. Properties of Type.OBJECT.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $required
     *           Optional. Required properties of Type.OBJECT.
     *     @type string $description
     *           Optional. The description of the data.
     *     @type \Google\Cloud\Ces\V1\Schema $items
     *           Optional. Schema of the elements of Type.ARRAY.
     *     @type bool $nullable
     *           Optional. Indicates if the value may be null.
     *     @type bool $unique_items
     *           Optional. Indicate the items in the array must be unique. Only applies to
     *           TYPE.ARRAY.
     *     @type array<\Google\Cloud\Ces\V1\Schema>|\Google\Protobuf\Internal\RepeatedField $prefix_items
     *           Optional. Schemas of initial elements of Type.ARRAY.
     *     @type \Google\Cloud\Ces\V1\Schema $additional_properties
     *           Optional. Can either be a boolean or an object, controls the presence of
     *           additional properties.
     *     @type array<\Google\Cloud\Ces\V1\Schema>|\Google\Protobuf\Internal\RepeatedField $any_of
     *           Optional. The value should be validated against any (one or more) of the
     *           subschemas in the list.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $enum
     *           Optional. Possible values of the element of primitive type with enum
     *           format. Examples:
     *           1. We can define direction as :
     *           {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
     *           2. We can define apartment number as :
     *           {type:INTEGER, format:enum, enum:["101", "201", "301"]}
     *     @type \Google\Protobuf\Value $default
     *           Optional. Default value of the data.
     *     @type string $ref
     *           Optional. Allows indirect references between schema nodes. The value should
     *           be a valid reference to a child of the root `defs`.
     *           For example, the following schema defines a reference to a schema node
     *           named "Pet":
     *           ```
     *           type: object
     *           properties:
     *             pet:
     *               ref: #/defs/Pet
     *           defs:
     *             Pet:
     *               type: object
     *               properties:
     *                 name:
     *                   type: string
     *           ```
     *           The value of the "pet" property is a reference to the schema node
     *           named "Pet".
     *           See details in
     *           https://json-schema.org/understanding-json-schema/structuring.
     *     @type array|\Google\Protobuf\Internal\MapField $defs
     *           Optional. A map of definitions for use by `ref`. Only allowed at the root
     *           of the schema.
     *     @type string $title
     *           Optional. The title of the schema.
     *     @type int|string $min_items
     *           Optional. Minimum number of the elements for Type.ARRAY.
     *     @type int|string $max_items
     *           Optional. Maximum number of the elements for Type.ARRAY.
     *     @type float $minimum
     *           Optional. Minimum value for Type.INTEGER and Type.NUMBER.
     *     @type float $maximum
     *           Optional. Maximum value for Type.INTEGER and Type.NUMBER.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\Schema::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The type of the data.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Required. The type of the data.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Ces\V1\Schema\Type::class);
        $this->type = $var;

        return $this;
    }

    /**
     * Optional. Properties of Type.OBJECT.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getProperties()
    {
        return $this->properties;
    }

    /**
     * Optional. Properties of Type.OBJECT.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setProperties($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\Schema::class);
        $this->properties = $arr;

        return $this;
    }

    /**
     * Optional. Required properties of Type.OBJECT.
     *
     * Generated from protobuf field <code>repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRequired()
    {
        return $this->required;
    }

    /**
     * Optional. Required properties of Type.OBJECT.
     *
     * Generated from protobuf field <code>repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRequired($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->required = $arr;

        return $this;
    }

    /**
     * Optional. The description of the data.
     *
     * Generated from protobuf field <code>string description = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Optional. The description of the data.
     *
     * Generated from protobuf field <code>string description = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Optional. Schema of the elements of Type.ARRAY.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\Ces\V1\Schema|null
     */
    public function getItems()
    {
        return $this->items;
    }

    public function hasItems()
    {
        return isset($this->items);
    }

    public function clearItems()
    {
        unset($this->items);
    }

    /**
     * Optional. Schema of the elements of Type.ARRAY.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Ces\V1\Schema $var
     * @return $this
     */
    public function setItems($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Ces\V1\Schema::class);
        $this->items = $var;

        return $this;
    }

    /**
     * Optional. Indicates if the value may be null.
     *
     * Generated from protobuf field <code>bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getNullable()
    {
        return $this->nullable;
    }

    /**
     * Optional. Indicates if the value may be null.
     *
     * Generated from protobuf field <code>bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setNullable($var)
    {
        GPBUtil::checkBool($var);
        $this->nullable = $var;

        return $this;
    }

    /**
     * Optional. Indicate the items in the array must be unique. Only applies to
     * TYPE.ARRAY.
     *
     * Generated from protobuf field <code>bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getUniqueItems()
    {
        return $this->unique_items;
    }

    /**
     * Optional. Indicate the items in the array must be unique. Only applies to
     * TYPE.ARRAY.
     *
     * Generated from protobuf field <code>bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setUniqueItems($var)
    {
        GPBUtil::checkBool($var);
        $this->unique_items = $var;

        return $this;
    }

    /**
     * Optional. Schemas of initial elements of Type.ARRAY.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPrefixItems()
    {
        return $this->prefix_items;
    }

    /**
     * Optional. Schemas of initial elements of Type.ARRAY.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\Ces\V1\Schema>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPrefixItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\Schema::class);
        $this->prefix_items = $arr;

        return $this;
    }

    /**
     * Optional. Can either be a boolean or an object, controls the presence of
     * additional properties.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\Ces\V1\Schema|null
     */
    public function getAdditionalProperties()
    {
        return $this->additional_properties;
    }

    public function hasAdditionalProperties()
    {
        return isset($this->additional_properties);
    }

    public function clearAdditionalProperties()
    {
        unset($this->additional_properties);
    }

    /**
     * Optional. Can either be a boolean or an object, controls the presence of
     * additional properties.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Ces\V1\Schema $var
     * @return $this
     */
    public function setAdditionalProperties($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Ces\V1\Schema::class);
        $this->additional_properties = $var;

        return $this;
    }

    /**
     * Optional. The value should be validated against any (one or more) of the
     * subschemas in the list.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAnyOf()
    {
        return $this->any_of;
    }

    /**
     * Optional. The value should be validated against any (one or more) of the
     * subschemas in the list.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\Ces\V1\Schema>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAnyOf($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\Schema::class);
        $this->any_of = $arr;

        return $this;
    }

    /**
     * Optional. Possible values of the element of primitive type with enum
     * format. Examples:
     * 1. We can define direction as :
     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
     * 2. We can define apartment number as :
     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
     *
     * Generated from protobuf field <code>repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEnum()
    {
        return $this->enum;
    }

    /**
     * Optional. Possible values of the element of primitive type with enum
     * format. Examples:
     * 1. We can define direction as :
     * {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
     * 2. We can define apartment number as :
     * {type:INTEGER, format:enum, enum:["101", "201", "301"]}
     *
     * Generated from protobuf field <code>repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEnum($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->enum = $arr;

        return $this;
    }

    /**
     * Optional. Default value of the data.
     *
     * Generated from protobuf field <code>.google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Value|null
     */
    public function getDefault()
    {
        return $this->default;
    }

    public function hasDefault()
    {
        return isset($this->default);
    }

    public function clearDefault()
    {
        unset($this->default);
    }

    /**
     * Optional. Default value of the data.
     *
     * Generated from protobuf field <code>.google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Protobuf\Value $var
     * @return $this
     */
    public function setDefault($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Value::class);
        $this->default = $var;

        return $this;
    }

    /**
     * Optional. Allows indirect references between schema nodes. The value should
     * be a valid reference to a child of the root `defs`.
     * For example, the following schema defines a reference to a schema node
     * named "Pet":
     * ```
     * type: object
     * properties:
     *   pet:
     *     ref: #/defs/Pet
     * defs:
     *   Pet:
     *     type: object
     *     properties:
     *       name:
     *         type: string
     * ```
     * The value of the "pet" property is a reference to the schema node
     * named "Pet".
     * See details in
     * https://json-schema.org/understanding-json-schema/structuring.
     *
     * Generated from protobuf field <code>string ref = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getRef()
    {
        return $this->ref;
    }

    /**
     * Optional. Allows indirect references between schema nodes. The value should
     * be a valid reference to a child of the root `defs`.
     * For example, the following schema defines a reference to a schema node
     * named "Pet":
     * ```
     * type: object
     * properties:
     *   pet:
     *     ref: #/defs/Pet
     * defs:
     *   Pet:
     *     type: object
     *     properties:
     *       name:
     *         type: string
     * ```
     * The value of the "pet" property is a reference to the schema node
     * named "Pet".
     * See details in
     * https://json-schema.org/understanding-json-schema/structuring.
     *
     * Generated from protobuf field <code>string ref = 13 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setRef($var)
    {
        GPBUtil::checkString($var, True);
        $this->ref = $var;

        return $this;
    }

    /**
     * Optional. A map of definitions for use by `ref`. Only allowed at the root
     * of the schema.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getDefs()
    {
        return $this->defs;
    }

    /**
     * Optional. A map of definitions for use by `ref`. Only allowed at the root
     * of the schema.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setDefs($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\Schema::class);
        $this->defs = $arr;

        return $this;
    }

    /**
     * Optional. The title of the schema.
     *
     * Generated from protobuf field <code>string title = 15 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Optional. The title of the schema.
     *
     * Generated from protobuf field <code>string title = 15 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Optional. Minimum number of the elements for Type.ARRAY.
     *
     * Generated from protobuf field <code>int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int|string
     */
    public function getMinItems()
    {
        return $this->min_items;
    }

    /**
     * Optional. Minimum number of the elements for Type.ARRAY.
     *
     * Generated from protobuf field <code>int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int|string $var
     * @return $this
     */
    public function setMinItems($var)
    {
        GPBUtil::checkInt64($var);
        $this->min_items = $var;

        return $this;
    }

    /**
     * Optional. Maximum number of the elements for Type.ARRAY.
     *
     * Generated from protobuf field <code>int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int|string
     */
    public function getMaxItems()
    {
        return $this->max_items;
    }

    /**
     * Optional. Maximum number of the elements for Type.ARRAY.
     *
     * Generated from protobuf field <code>int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int|string $var
     * @return $this
     */
    public function setMaxItems($var)
    {
        GPBUtil::checkInt64($var);
        $this->max_items = $var;

        return $this;
    }

    /**
     * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
     *
     * Generated from protobuf field <code>optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return float
     */
    public function getMinimum()
    {
        return isset($this->minimum) ? $this->minimum : 0.0;
    }

    public function hasMinimum()
    {
        return isset($this->minimum);
    }

    public function clearMinimum()
    {
        unset($this->minimum);
    }

    /**
     * Optional. Minimum value for Type.INTEGER and Type.NUMBER.
     *
     * Generated from protobuf field <code>optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param float $var
     * @return $this
     */
    public function setMinimum($var)
    {
        GPBUtil::checkDouble($var);
        $this->minimum = $var;

        return $this;
    }

    /**
     * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
     *
     * Generated from protobuf field <code>optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return float
     */
    public function getMaximum()
    {
        return isset($this->maximum) ? $this->maximum : 0.0;
    }

    public function hasMaximum()
    {
        return isset($this->maximum);
    }

    public function clearMaximum()
    {
        unset($this->maximum);
    }

    /**
     * Optional. Maximum value for Type.INTEGER and Type.NUMBER.
     *
     * Generated from protobuf field <code>optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param float $var
     * @return $this
     */
    public function setMaximum($var)
    {
        GPBUtil::checkDouble($var);
        $this->maximum = $var;

        return $this;
    }

}

