/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * Defines the entity type and position of the extracted entity within the
 * example.
 *
 */
class EntityLabel {
  /**
   * Create a EntityLabel.
   * @property {string} entityName The entity type.
   * @property {number} startTokenIndex The index within the utterance where
   * the extracted entity starts.
   * @property {number} endTokenIndex The index within the utterance where the
   * extracted entity ends.
   */
  constructor() {
  }

  /**
   * Defines the metadata of EntityLabel
   *
   * @returns {object} metadata of EntityLabel
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'EntityLabel',
      type: {
        name: 'Composite',
        className: 'EntityLabel',
        modelProperties: {
          entityName: {
            required: true,
            serializedName: 'entityName',
            type: {
              name: 'String'
            }
          },
          startTokenIndex: {
            required: true,
            serializedName: 'startTokenIndex',
            type: {
              name: 'Number'
            }
          },
          endTokenIndex: {
            required: true,
            serializedName: 'endTokenIndex',
            type: {
              name: 'Number'
            }
          }
        }
      }
    };
  }
}

module.exports = EntityLabel;
