📂 File Browser

AgentAI/vendor/google/apiclient-services/src/CloudNaturalLanguage
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AnalyzeEntitiesRequest.php
▶ Open 📄 View Source
🐘 AnalyzeEntitiesResponse.php
▶ Open 📄 View Source
🐘 AnalyzeEntitySentimentRequest.php
▶ Open 📄 View Source
🐘 AnalyzeEntitySentimentResponse.php
▶ Open 📄 View Source
🐘 AnalyzeSentimentRequest.php
▶ Open 📄 View Source
🐘 AnalyzeSentimentResponse.php
▶ Open 📄 View Source
🐘 AnalyzeSyntaxRequest.php
▶ Open 📄 View Source
🐘 AnalyzeSyntaxResponse.php
▶ Open 📄 View Source
🐘 AnnotateTextRequest.php
▶ Open 📄 View Source
🐘 AnnotateTextRequestFeatures.php
▶ Open 📄 View Source
🐘 AnnotateTextResponse.php
▶ Open 📄 View Source
🐘 ClassificationCategory.php
▶ Open 📄 View Source
🐘 ClassificationModelOptions.php
▶ Open 📄 View Source
🐘 ClassifyTextRequest.php
▶ Open 📄 View Source
🐘 ClassifyTextResponse.php
▶ Open 📄 View Source
🐘 Color.php
▶ Open 📄 View Source
🐘 CpuMetric.php
▶ Open 📄 View Source
🐘 DependencyEdge.php
▶ Open 📄 View Source
🐘 DiskMetric.php
▶ Open 📄 View Source
🐘 Document.php
▶ Open 📄 View Source
🐘 Entity.php
▶ Open 📄 View Source
🐘 EntityMention.php
▶ Open 📄 View Source
🐘 Features.php
▶ Open 📄 View Source
🐘 GpuMetric.php
▶ Open 📄 View Source
🐘 InfraUsage.php
▶ Open 📄 View Source
🐘 ModerateTextRequest.php
▶ Open 📄 View Source
🐘 ModerateTextResponse.php
▶ Open 📄 View Source
🐘 PartOfSpeech.php
▶ Open 📄 View Source
🐘 RamMetric.php
▶ Open 📄 View Source
🐘 Sentence.php
▶ Open 📄 View Source
🐘 Sentiment.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 TextSpan.php
▶ Open 📄 View Source
🐘 Token.php
▶ Open 📄 View Source
🐘 TpuMetric.php
▶ Open 📄 View Source
🐘 V1Model.php
▶ Open 📄 View Source
🐘 V2Model.php
▶ Open 📄 View Source
🐘 XPSArrayStats.php
▶ Open 📄 View Source
🐘 XPSBatchPredictResponse.php
▶ Open 📄 View Source
🐘 XPSBoundingBoxMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSBoundingBoxMetricsEntryConfidenceMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSCategoryStats.php
▶ Open 📄 View Source
🐘 XPSCategoryStatsSingleCategoryStats.php
▶ Open 📄 View Source
🐘 XPSClassificationEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSColorMap.php
▶ Open 📄 View Source
🐘 XPSColorMapIntColor.php
▶ Open 📄 View Source
🐘 XPSColumnSpec.php
▶ Open 📄 View Source
🐘 XPSColumnSpecCorrelatedColumn.php
▶ Open 📄 View Source
🐘 XPSColumnSpecForecastingMetadata.php
▶ Open 📄 View Source
🐘 XPSCommonStats.php
▶ Open 📄 View Source
🐘 XPSConfidenceMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSConfusionMatrix.php
▶ Open 📄 View Source
🐘 XPSConfusionMatrixRow.php
▶ Open 📄 View Source
🐘 XPSCoreMlFormat.php
▶ Open 📄 View Source
🐘 XPSCorrelationStats.php
▶ Open 📄 View Source
🐘 XPSDataErrors.php
▶ Open 📄 View Source
🐘 XPSDataStats.php
▶ Open 📄 View Source
🐘 XPSDataType.php
▶ Open 📄 View Source
🐘 XPSDockerFormat.php
▶ Open 📄 View Source
🐘 XPSEdgeTpuTfLiteFormat.php
▶ Open 📄 View Source
🐘 XPSEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSEvaluationMetricsSet.php
▶ Open 📄 View Source
🐘 XPSExampleSet.php
▶ Open 📄 View Source
🐘 XPSExportModelOutputConfig.php
▶ Open 📄 View Source
🐘 XPSFileSpec.php
▶ Open 📄 View Source
🐘 XPSFloat64Stats.php
▶ Open 📄 View Source
🐘 XPSFloat64StatsHistogramBucket.php
▶ Open 📄 View Source
🐘 XPSImageClassificationTrainResponse.php
▶ Open 📄 View Source
🐘 XPSImageExportModelSpec.php
▶ Open 📄 View Source
🐘 XPSImageModelArtifactSpec.php
▶ Open 📄 View Source
🐘 XPSImageModelServingSpec.php
▶ Open 📄 View Source
🐘 XPSImageModelServingSpecModelThroughputEstimation.php
▶ Open 📄 View Source
🐘 XPSImageObjectDetectionEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSImageObjectDetectionModelSpec.php
▶ Open 📄 View Source
🐘 XPSImageSegmentationEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSImageSegmentationTrainResponse.php
▶ Open 📄 View Source
🐘 XPSIntegratedGradientsAttribution.php
▶ Open 📄 View Source
🐘 XPSMetricEntry.php
▶ Open 📄 View Source
🐘 XPSMetricEntryLabel.php
▶ Open 📄 View Source
🐘 XPSModelArtifactItem.php
▶ Open 📄 View Source
🐘 XPSPreprocessResponse.php
▶ Open 📄 View Source
🐘 XPSRegressionEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSRegressionMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSReportingMetrics.php
▶ Open 📄 View Source
🐘 XPSResponseExplanationMetadata.php
▶ Open 📄 View Source
🐘 XPSResponseExplanationMetadataInputMetadata.php
▶ Open 📄 View Source
🐘 XPSResponseExplanationMetadataOutputMetadata.php
▶ Open 📄 View Source
🐘 XPSResponseExplanationParameters.php
▶ Open 📄 View Source
🐘 XPSResponseExplanationSpec.php
▶ Open 📄 View Source
🐘 XPSRow.php
▶ Open 📄 View Source
🐘 XPSSpeechEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSSpeechEvaluationMetricsSubModelEvaluationMetric.php
▶ Open 📄 View Source
🐘 XPSSpeechModelSpec.php
▶ Open 📄 View Source
🐘 XPSSpeechModelSpecSubModelSpec.php
▶ Open 📄 View Source
🐘 XPSSpeechPreprocessResponse.php
▶ Open 📄 View Source
🐘 XPSSpeechPreprocessStats.php
▶ Open 📄 View Source
🐘 XPSStringStats.php
▶ Open 📄 View Source
🐘 XPSStringStatsUnigramStats.php
▶ Open 📄 View Source
🐘 XPSStructStats.php
▶ Open 📄 View Source
🐘 XPSStructType.php
▶ Open 📄 View Source
🐘 XPSTableSpec.php
▶ Open 📄 View Source
🐘 XPSTablesClassificationMetrics.php
▶ Open 📄 View Source
🐘 XPSTablesClassificationMetricsCurveMetrics.php
▶ Open 📄 View Source
🐘 XPSTablesConfidenceMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSTablesDatasetMetadata.php
▶ Open 📄 View Source
🐘 XPSTablesEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSTablesModelColumnInfo.php
▶ Open 📄 View Source
🐘 XPSTablesModelStructure.php
▶ Open 📄 View Source
🐘 XPSTablesModelStructureModelParameters.php
▶ Open 📄 View Source
🐘 XPSTablesModelStructureModelParametersParameter.php
▶ Open 📄 View Source
🐘 XPSTablesPreprocessResponse.php
▶ Open 📄 View Source
🐘 XPSTablesRegressionMetrics.php
▶ Open 📄 View Source
🐘 XPSTablesTrainResponse.php
▶ Open 📄 View Source
🐘 XPSTablesTrainingOperationMetadata.php
▶ Open 📄 View Source
🐘 XPSTextComponentModel.php
▶ Open 📄 View Source
🐘 XPSTextExtractionEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSTextSentimentEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSTextToSpeechTrainResponse.php
▶ Open 📄 View Source
🐘 XPSTextTrainResponse.php
▶ Open 📄 View Source
🐘 XPSTfJsFormat.php
▶ Open 📄 View Source
🐘 XPSTfLiteFormat.php
▶ Open 📄 View Source
🐘 XPSTfSavedModelFormat.php
▶ Open 📄 View Source
🐘 XPSTimestampStats.php
▶ Open 📄 View Source
🐘 XPSTimestampStatsGranularStats.php
▶ Open 📄 View Source
🐘 XPSTrackMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSTrackMetricsEntryConfidenceMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSTrainResponse.php
▶ Open 📄 View Source
🐘 XPSTrainingObjectivePoint.php
▶ Open 📄 View Source
🐘 XPSTranslationEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSTranslationPreprocessResponse.php
▶ Open 📄 View Source
🐘 XPSTranslationTrainResponse.php
▶ Open 📄 View Source
🐘 XPSTuningTrial.php
▶ Open 📄 View Source
🐘 XPSVideoActionMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSVideoActionMetricsEntryConfidenceMetricsEntry.php
▶ Open 📄 View Source
🐘 XPSVideoActionRecognitionEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSVideoActionRecognitionTrainResponse.php
▶ Open 📄 View Source
🐘 XPSVideoBatchPredictOperationMetadata.php
▶ Open 📄 View Source
🐘 XPSVideoClassificationTrainResponse.php
▶ Open 📄 View Source
🐘 XPSVideoExportModelSpec.php
▶ Open 📄 View Source
🐘 XPSVideoModelArtifactSpec.php
▶ Open 📄 View Source
🐘 XPSVideoObjectTrackingEvaluationMetrics.php
▶ Open 📄 View Source
🐘 XPSVideoObjectTrackingTrainResponse.php
▶ Open 📄 View Source
🐘 XPSVideoTrainingOperationMetadata.php
▶ Open 📄 View Source
🐘 XPSVisionErrorAnalysisConfig.php
▶ Open 📄 View Source
🐘 XPSVisionTrainingOperationMetadata.php
▶ Open 📄 View Source
🐘 XPSVisualization.php
▶ Open 📄 View Source
🐘 XPSXpsOperationMetadata.php
▶ Open 📄 View Source
🐘 XPSXraiAttribution.php
▶ Open 📄 View Source

📄 Source: Entity.php

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

class Entity extends \Google\Collection
{
  /**
   * Unknown
   */
  public const TYPE_UNKNOWN = 'UNKNOWN';
  /**
   * Person
   */
  public const TYPE_PERSON = 'PERSON';
  /**
   * Location
   */
  public const TYPE_LOCATION = 'LOCATION';
  /**
   * Organization
   */
  public const TYPE_ORGANIZATION = 'ORGANIZATION';
  /**
   * Event
   */
  public const TYPE_EVENT = 'EVENT';
  /**
   * Artwork
   */
  public const TYPE_WORK_OF_ART = 'WORK_OF_ART';
  /**
   * Consumer product
   */
  public const TYPE_CONSUMER_GOOD = 'CONSUMER_GOOD';
  /**
   * Other types of entities
   */
  public const TYPE_OTHER = 'OTHER';
  /**
   * Phone number The metadata lists the phone number, formatted according to
   * local convention, plus whichever additional elements appear in the text: *
   * `number` - the actual number, broken down into sections as per local
   * convention * `national_prefix` - country code, if detected * `area_code` -
   * region or area code, if detected * `extension` - phone extension (to be
   * dialed after connection), if detected
   */
  public const TYPE_PHONE_NUMBER = 'PHONE_NUMBER';
  /**
   * Address The metadata identifies the street number and locality plus
   * whichever additional elements appear in the text: * `street_number` -
   * street number * `locality` - city or town * `street_name` - street/route
   * name, if detected * `postal_code` - postal code, if detected * `country` -
   * country, if detected * `broad_region` - administrative area, such as the
   * state, if detected * `narrow_region` - smaller administrative area, such as
   * county, if detected * `sublocality` - used in Asian addresses to demark a
   * district within a city, if detected
   */
  public const TYPE_ADDRESS = 'ADDRESS';
  /**
   * Date The metadata identifies the components of the date: * `year` - four
   * digit year, if detected * `month` - two digit month number, if detected *
   * `day` - two digit day number, if detected
   */
  public const TYPE_DATE = 'DATE';
  /**
   * Number The metadata is the number itself.
   */
  public const TYPE_NUMBER = 'NUMBER';
  /**
   * Price The metadata identifies the `value` and `currency`.
   */
  public const TYPE_PRICE = 'PRICE';
  protected $collection_key = 'mentions';
  protected $mentionsType = EntityMention::class;
  protected $mentionsDataType = 'array';
  /**
   * Metadata associated with the entity. For the metadata associated with other
   * entity types, see the Type table below.
   *
   * @var string[]
   */
  public $metadata;
  /**
   * The representative name for the entity.
   *
   * @var string
   */
  public $name;
  protected $sentimentType = Sentiment::class;
  protected $sentimentDataType = '';
  /**
   * The entity type.
   *
   * @var string
   */
  public $type;

  /**
   * The mentions of this entity in the input document. The API currently
   * supports proper noun mentions.
   *
   * @param EntityMention[] $mentions
   */
  public function setMentions($mentions)
  {
    $this->mentions = $mentions;
  }
  /**
   * @return EntityMention[]
   */
  public function getMentions()
  {
    return $this->mentions;
  }
  /**
   * Metadata associated with the entity. For the metadata associated with other
   * entity types, see the Type table below.
   *
   * @param string[] $metadata
   */
  public function setMetadata($metadata)
  {
    $this->metadata = $metadata;
  }
  /**
   * @return string[]
   */
  public function getMetadata()
  {
    return $this->metadata;
  }
  /**
   * The representative name for the entity.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * For calls to AnalyzeEntitySentiment this field will contain the aggregate
   * sentiment expressed for this entity in the provided document.
   *
   * @param Sentiment $sentiment
   */
  public function setSentiment(Sentiment $sentiment)
  {
    $this->sentiment = $sentiment;
  }
  /**
   * @return Sentiment
   */
  public function getSentiment()
  {
    return $this->sentiment;
  }
  /**
   * The entity type.
   *
   * Accepted values: UNKNOWN, PERSON, LOCATION, ORGANIZATION, EVENT,
   * WORK_OF_ART, CONSUMER_GOOD, OTHER, PHONE_NUMBER, ADDRESS, DATE, NUMBER,
   * PRICE
   *
   * @param self::TYPE_* $type
   */
  public function setType($type)
  {
    $this->type = $type;
  }
  /**
   * @return self::TYPE_*
   */
  public function getType()
  {
    return $this->type;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entity::class, 'Google_Service_CloudNaturalLanguage_Entity');
← Back