<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/custom_field_messages.proto

namespace Google\Ads\AdManager\V1;

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

/**
 * An option for a drop-down `CustomField`.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.CustomFieldOption</code>
 */
class CustomFieldOption extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Non-empty default. `CustomFieldOption` ID.
     *
     * Generated from protobuf field <code>int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];</code>
     */
    protected $custom_field_option_id = 0;
    /**
     * Required. The display name of the `CustomFieldOption`.
     * This value has a maximum length of 127 characters.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $display_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $custom_field_option_id
     *           Optional. Non-empty default. `CustomFieldOption` ID.
     *     @type string $display_name
     *           Required. The display name of the `CustomFieldOption`.
     *           This value has a maximum length of 127 characters.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\CustomFieldMessages::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Non-empty default. `CustomFieldOption` ID.
     *
     * Generated from protobuf field <code>int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];</code>
     * @return int|string
     */
    public function getCustomFieldOptionId()
    {
        return $this->custom_field_option_id;
    }

    /**
     * Optional. Non-empty default. `CustomFieldOption` ID.
     *
     * Generated from protobuf field <code>int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT];</code>
     * @param int|string $var
     * @return $this
     */
    public function setCustomFieldOptionId($var)
    {
        GPBUtil::checkInt64($var);
        $this->custom_field_option_id = $var;

        return $this;
    }

    /**
     * Required. The display name of the `CustomFieldOption`.
     * This value has a maximum length of 127 characters.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Required. The display name of the `CustomFieldOption`.
     * This value has a maximum length of 127 characters.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

}

