📂 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: XPSVisualization.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 XPSVisualization extends \Google\Model
{
  /**
   * Should not be used.
   */
  public const COLOR_MAP_COLOR_MAP_UNSPECIFIED = 'COLOR_MAP_UNSPECIFIED';
  /**
   * Positive: green. Negative: pink.
   */
  public const COLOR_MAP_PINK_GREEN = 'PINK_GREEN';
  /**
   * Viridis color map: A perceptually uniform color mapping which is easier to
   * see by those with colorblindness and progresses from yellow to green to
   * blue. Positive: yellow. Negative: blue.
   */
  public const COLOR_MAP_VIRIDIS = 'VIRIDIS';
  /**
   * Positive: red. Negative: red.
   */
  public const COLOR_MAP_RED = 'RED';
  /**
   * Positive: green. Negative: green.
   */
  public const COLOR_MAP_GREEN = 'GREEN';
  /**
   * Positive: green. Negative: red.
   */
  public const COLOR_MAP_RED_GREEN = 'RED_GREEN';
  /**
   * PiYG palette.
   */
  public const COLOR_MAP_PINK_WHITE_GREEN = 'PINK_WHITE_GREEN';
  /**
   * Default value. This is the same as NONE.
   */
  public const OVERLAY_TYPE_OVERLAY_TYPE_UNSPECIFIED = 'OVERLAY_TYPE_UNSPECIFIED';
  /**
   * No overlay.
   */
  public const OVERLAY_TYPE_NONE = 'NONE';
  /**
   * The attributions are shown on top of the original image.
   */
  public const OVERLAY_TYPE_ORIGINAL = 'ORIGINAL';
  /**
   * The attributions are shown on top of grayscaled version of the original
   * image.
   */
  public const OVERLAY_TYPE_GRAYSCALE = 'GRAYSCALE';
  /**
   * The attributions are used as a mask to reveal predictive parts of the image
   * and hide the un-predictive parts.
   */
  public const OVERLAY_TYPE_MASK_BLACK = 'MASK_BLACK';
  /**
   * Default value. This is the same as POSITIVE.
   */
  public const POLARITY_POLARITY_UNSPECIFIED = 'POLARITY_UNSPECIFIED';
  /**
   * Highlights the pixels/outlines that were most influential to the model's
   * prediction.
   */
  public const POLARITY_POSITIVE = 'POSITIVE';
  /**
   * Setting polarity to negative highlights areas that does not lead to the
   * models's current prediction.
   */
  public const POLARITY_NEGATIVE = 'NEGATIVE';
  /**
   * Shows both positive and negative attributions.
   */
  public const POLARITY_BOTH = 'BOTH';
  /**
   * Should not be used.
   */
  public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
  /**
   * Shows which pixel contributed to the image prediction.
   */
  public const TYPE_PIXELS = 'PIXELS';
  /**
   * Shows which region contributed to the image prediction by outlining the
   * region.
   */
  public const TYPE_OUTLINES = 'OUTLINES';
  /**
   * Excludes attributions below the specified percentile, from the highlighted
   * areas. Defaults to 62.
   *
   * @var float
   */
  public $clipPercentLowerbound;
  /**
   * Excludes attributions above the specified percentile from the highlighted
   * areas. Using the clip_percent_upperbound and clip_percent_lowerbound
   * together can be useful for filtering out noise and making it easier to see
   * areas of strong attribution. Defaults to 99.9.
   *
   * @var float
   */
  public $clipPercentUpperbound;
  /**
   * The color scheme used for the highlighted areas. Defaults to PINK_GREEN for
   * Integrated Gradients attribution, which shows positive attributions in
   * green and negative in pink. Defaults to VIRIDIS for XRAI attribution, which
   * highlights the most influential regions in yellow and the least influential
   * in blue.
   *
   * @var string
   */
  public $colorMap;
  /**
   * How the original image is displayed in the visualization. Adjusting the
   * overlay can help increase visual clarity if the original image makes it
   * difficult to view the visualization. Defaults to NONE.
   *
   * @var string
   */
  public $overlayType;
  /**
   * Whether to only highlight pixels with positive contributions, negative or
   * both. Defaults to POSITIVE.
   *
   * @var string
   */
  public $polarity;
  /**
   * Type of the image visualization. Only applicable to Integrated Gradients
   * attribution. OUTLINES shows regions of attribution, while PIXELS shows per-
   * pixel attribution. Defaults to OUTLINES.
   *
   * @var string
   */
  public $type;

  /**
   * Excludes attributions below the specified percentile, from the highlighted
   * areas. Defaults to 62.
   *
   * @param float $clipPercentLowerbound
   */
  public function setClipPercentLowerbound($clipPercentLowerbound)
  {
    $this->clipPercentLowerbound = $clipPercentLowerbound;
  }
  /**
   * @return float
   */
  public function getClipPercentLowerbound()
  {
    return $this->clipPercentLowerbound;
  }
  /**
   * Excludes attributions above the specified percentile from the highlighted
   * areas. Using the clip_percent_upperbound and clip_percent_lowerbound
   * together can be useful for filtering out noise and making it easier to see
   * areas of strong attribution. Defaults to 99.9.
   *
   * @param float $clipPercentUpperbound
   */
  public function setClipPercentUpperbound($clipPercentUpperbound)
  {
    $this->clipPercentUpperbound = $clipPercentUpperbound;
  }
  /**
   * @return float
   */
  public function getClipPercentUpperbound()
  {
    return $this->clipPercentUpperbound;
  }
  /**
   * The color scheme used for the highlighted areas. Defaults to PINK_GREEN for
   * Integrated Gradients attribution, which shows positive attributions in
   * green and negative in pink. Defaults to VIRIDIS for XRAI attribution, which
   * highlights the most influential regions in yellow and the least influential
   * in blue.
   *
   * Accepted values: COLOR_MAP_UNSPECIFIED, PINK_GREEN, VIRIDIS, RED, GREEN,
   * RED_GREEN, PINK_WHITE_GREEN
   *
   * @param self::COLOR_MAP_* $colorMap
   */
  public function setColorMap($colorMap)
  {
    $this->colorMap = $colorMap;
  }
  /**
   * @return self::COLOR_MAP_*
   */
  public function getColorMap()
  {
    return $this->colorMap;
  }
  /**
   * How the original image is displayed in the visualization. Adjusting the
   * overlay can help increase visual clarity if the original image makes it
   * difficult to view the visualization. Defaults to NONE.
   *
   * Accepted values: OVERLAY_TYPE_UNSPECIFIED, NONE, ORIGINAL, GRAYSCALE,
   * MASK_BLACK
   *
   * @param self::OVERLAY_TYPE_* $overlayType
   */
  public function setOverlayType($overlayType)
  {
    $this->overlayType = $overlayType;
  }
  /**
   * @return self::OVERLAY_TYPE_*
   */
  public function getOverlayType()
  {
    return $this->overlayType;
  }
  /**
   * Whether to only highlight pixels with positive contributions, negative or
   * both. Defaults to POSITIVE.
   *
   * Accepted values: POLARITY_UNSPECIFIED, POSITIVE, NEGATIVE, BOTH
   *
   * @param self::POLARITY_* $polarity
   */
  public function setPolarity($polarity)
  {
    $this->polarity = $polarity;
  }
  /**
   * @return self::POLARITY_*
   */
  public function getPolarity()
  {
    return $this->polarity;
  }
  /**
   * Type of the image visualization. Only applicable to Integrated Gradients
   * attribution. OUTLINES shows regions of attribution, while PIXELS shows per-
   * pixel attribution. Defaults to OUTLINES.
   *
   * Accepted values: TYPE_UNSPECIFIED, PIXELS, OUTLINES
   *
   * @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(XPSVisualization::class, 'Google_Service_CloudNaturalLanguage_XPSVisualization');
← Back