<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/maps/fleetengine/v1/vehicles.proto

namespace Google\Maps\FleetEngine\V1;

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

/**
 * The license plate information of the Vehicle.  To avoid storing
 * personally-identifiable information, only the minimum information
 * about the license plate is stored as part of the entity.
 *
 * Generated from protobuf message <code>maps.fleetengine.v1.LicensePlate</code>
 */
class LicensePlate extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. CLDR Country/Region Code.  For example, `US` for United States,
     * or `IN` for India.
     *
     * Generated from protobuf field <code>string country_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $country_code = '';
    /**
     * The last digit of the license plate or "-1" to denote no numeric value
     * is present in the license plate.
     * * "ABC 1234" -> "4"
     * * "AB 123 CD" -> "3"
     * * "ABCDEF" -> "-1"
     *
     * Generated from protobuf field <code>string last_character = 2;</code>
     */
    protected $last_character = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $country_code
     *           Required. CLDR Country/Region Code.  For example, `US` for United States,
     *           or `IN` for India.
     *     @type string $last_character
     *           The last digit of the license plate or "-1" to denote no numeric value
     *           is present in the license plate.
     *           * "ABC 1234" -> "4"
     *           * "AB 123 CD" -> "3"
     *           * "ABCDEF" -> "-1"
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Maps\Fleetengine\V1\Vehicles::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. CLDR Country/Region Code.  For example, `US` for United States,
     * or `IN` for India.
     *
     * Generated from protobuf field <code>string country_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCountryCode()
    {
        return $this->country_code;
    }

    /**
     * Required. CLDR Country/Region Code.  For example, `US` for United States,
     * or `IN` for India.
     *
     * Generated from protobuf field <code>string country_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCountryCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->country_code = $var;

        return $this;
    }

    /**
     * The last digit of the license plate or "-1" to denote no numeric value
     * is present in the license plate.
     * * "ABC 1234" -> "4"
     * * "AB 123 CD" -> "3"
     * * "ABCDEF" -> "-1"
     *
     * Generated from protobuf field <code>string last_character = 2;</code>
     * @return string
     */
    public function getLastCharacter()
    {
        return $this->last_character;
    }

    /**
     * The last digit of the license plate or "-1" to denote no numeric value
     * is present in the license plate.
     * * "ABC 1234" -> "4"
     * * "AB 123 CD" -> "3"
     * * "ABCDEF" -> "-1"
     *
     * Generated from protobuf field <code>string last_character = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setLastCharacter($var)
    {
        GPBUtil::checkString($var, True);
        $this->last_character = $var;

        return $this;
    }

}

