📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Action.php
▶ Open 📄 View Source
🐘 ActionEntityOperation.php
▶ Open 📄 View Source
🐘 Agent.php
▶ Open 📄 View Source
🐘 AgentAgentToolset.php
▶ Open 📄 View Source
🐘 AgentLlmAgent.php
▶ Open 📄 View Source
🐘 AgentRemoteDialogflowAgent.php
▶ Open 📄 View Source
🐘 AgentTool.php
▶ Open 📄 View Source
🐘 AgentTransfer.php
▶ Open 📄 View Source
🐘 AmbientSoundConfig.php
▶ Open 📄 View Source
🐘 ApiAuthentication.php
▶ Open 📄 View Source
🐘 ApiKeyConfig.php
▶ Open 📄 View Source
🐘 App.php
▶ Open 📄 View Source
🐘 AppSnapshot.php
▶ Open 📄 View Source
🐘 AppVariableDeclaration.php
▶ Open 📄 View Source
🐘 AppVersion.php
▶ Open 📄 View Source
🐘 AudioProcessingConfig.php
▶ Open 📄 View Source
🐘 AudioRecordingConfig.php
▶ Open 📄 View Source
🐘 BargeInConfig.php
▶ Open 📄 View Source
🐘 BatchDeleteConversationsRequest.php
▶ Open 📄 View Source
🐘 BearerTokenConfig.php
▶ Open 📄 View Source
🐘 BigQueryExportSettings.php
▶ Open 📄 View Source
🐘 Blob.php
▶ Open 📄 View Source
🐘 Callback.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CesEmpty.php
▶ Open 📄 View Source
🐘 Changelog.php
▶ Open 📄 View Source
🐘 ChannelProfile.php
▶ Open 📄 View Source
🐘 ChannelProfilePersonaProperty.php
▶ Open 📄 View Source
🐘 ChannelProfileWebWidgetConfig.php
▶ Open 📄 View Source
🐘 ChannelProfileWebWidgetConfigSecuritySettings.php
▶ Open 📄 View Source
🐘 Chunk.php
▶ Open 📄 View Source
🐘 Citations.php
▶ Open 📄 View Source
🐘 CitationsCitedChunk.php
▶ Open 📄 View Source
🐘 ClientCertificateSettings.php
▶ Open 📄 View Source
🐘 ClientFunction.php
▶ Open 📄 View Source
🐘 CloudLoggingSettings.php
▶ Open 📄 View Source
🐘 CodeBlock.php
▶ Open 📄 View Source
🐘 ConnectorTool.php
▶ Open 📄 View Source
🐘 ConnectorToolset.php
▶ Open 📄 View Source
🐘 Conversation.php
▶ Open 📄 View Source
🐘 ConversationLoggingSettings.php
▶ Open 📄 View Source
🐘 ConversationTurn.php
▶ Open 📄 View Source
🐘 DataStore.php
▶ Open 📄 View Source
🐘 DataStoreConnectorConfig.php
▶ Open 📄 View Source
🐘 DataStoreSettings.php
▶ Open 📄 View Source
🐘 DataStoreSettingsEngine.php
▶ Open 📄 View Source
🐘 DataStoreTool.php
▶ Open 📄 View Source
🐘 DataStoreToolBoostSpec.php
▶ Open 📄 View Source
🐘 DataStoreToolBoostSpecConditionBoostSpec.php
▶ Open 📄 View Source
🐘 DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.php
▶ Open 📄 View Source
🐘 DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.php
▶ Open 📄 View Source
🐘 DataStoreToolBoostSpecs.php
▶ Open 📄 View Source
🐘 DataStoreToolDataStoreSource.php
▶ Open 📄 View Source
🐘 DataStoreToolEngineSource.php
▶ Open 📄 View Source
🐘 DataStoreToolGroundingConfig.php
▶ Open 📄 View Source
🐘 DataStoreToolModalityConfig.php
▶ Open 📄 View Source
🐘 DataStoreToolRewriterConfig.php
▶ Open 📄 View Source
🐘 DataStoreToolSummarizationConfig.php
▶ Open 📄 View Source
🐘 Deployment.php
▶ Open 📄 View Source
🐘 EndSession.php
▶ Open 📄 View Source
🐘 EndUserAuthConfig.php
▶ Open 📄 View Source
🐘 EndUserAuthConfigOauth2AuthCodeConfig.php
▶ Open 📄 View Source
🐘 EndUserAuthConfigOauth2JwtBearerConfig.php
▶ Open 📄 View Source
🐘 EndpointControlPolicy.php
▶ Open 📄 View Source
🐘 ErrorHandlingSettings.php
▶ Open 📄 View Source
🐘 ErrorHandlingSettingsEndSessionConfig.php
▶ Open 📄 View Source
🐘 ErrorHandlingSettingsFallbackResponseConfig.php
▶ Open 📄 View Source
🐘 EvaluationMetricsThresholds.php
▶ Open 📄 View Source
🐘 EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.php
▶ Open 📄 View Source
🐘 EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.php
▶ Open 📄 View Source
🐘 EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.php
▶ Open 📄 View Source
🐘 EvaluationMetricsThresholdsToolMatchingSettings.php
▶ Open 📄 View Source
🐘 Event.php
▶ Open 📄 View Source
🐘 Example.php
▶ Open 📄 View Source
🐘 ExecuteToolRequest.php
▶ Open 📄 View Source
🐘 ExecuteToolResponse.php
▶ Open 📄 View Source
🐘 ExperimentConfig.php
▶ Open 📄 View Source
🐘 ExperimentConfigVersionRelease.php
▶ Open 📄 View Source
🐘 ExperimentConfigVersionReleaseTrafficAllocation.php
▶ Open 📄 View Source
🐘 ExportAppRequest.php
▶ Open 📄 View Source
🐘 ExportAppResponse.php
▶ Open 📄 View Source
🐘 ExpressionCondition.php
▶ Open 📄 View Source
🐘 FileSearchTool.php
▶ Open 📄 View Source
🐘 GenerateChatTokenRequest.php
▶ Open 📄 View Source
🐘 GenerateChatTokenResponse.php
▶ Open 📄 View Source
🐘 GoogleSearchSuggestions.php
▶ Open 📄 View Source
🐘 GoogleSearchTool.php
▶ Open 📄 View Source
🐘 GoogleSearchToolPromptConfig.php
▶ Open 📄 View Source
🐘 Guardrail.php
▶ Open 📄 View Source
🐘 GuardrailCodeCallback.php
▶ Open 📄 View Source
🐘 GuardrailContentFilter.php
▶ Open 📄 View Source
🐘 GuardrailLlmPolicy.php
▶ Open 📄 View Source
🐘 GuardrailLlmPromptSecurity.php
▶ Open 📄 View Source
🐘 GuardrailLlmPromptSecurityDefaultSecuritySettings.php
▶ Open 📄 View Source
🐘 GuardrailModelSafety.php
▶ Open 📄 View Source
🐘 GuardrailModelSafetySafetySetting.php
▶ Open 📄 View Source
🐘 Image.php
▶ Open 📄 View Source
🐘 ImportAppRequest.php
▶ Open 📄 View Source
🐘 ImportAppRequestImportOptions.php
▶ Open 📄 View Source
🐘 ImportAppResponse.php
▶ Open 📄 View Source
🐘 InputAudioConfig.php
▶ Open 📄 View Source
🐘 LanguageSettings.php
▶ Open 📄 View Source
🐘 ListAgentsResponse.php
▶ Open 📄 View Source
🐘 ListAppVersionsResponse.php
▶ Open 📄 View Source
🐘 ListAppsResponse.php
▶ Open 📄 View Source
🐘 ListChangelogsResponse.php
▶ Open 📄 View Source
🐘 ListConversationsResponse.php
▶ Open 📄 View Source
🐘 ListDeploymentsResponse.php
▶ Open 📄 View Source
🐘 ListExamplesResponse.php
▶ Open 📄 View Source
🐘 ListGuardrailsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListToolsResponse.php
▶ Open 📄 View Source
🐘 ListToolsetsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LoggingSettings.php
▶ Open 📄 View Source
🐘 McpTool.php
▶ Open 📄 View Source
🐘 McpToolset.php
▶ Open 📄 View Source
🐘 Message.php
▶ Open 📄 View Source
🐘 MetricAnalysisSettings.php
▶ Open 📄 View Source
🐘 MockConfig.php
▶ Open 📄 View Source
🐘 MockedToolCall.php
▶ Open 📄 View Source
🐘 ModelSettings.php
▶ Open 📄 View Source
🐘 OAuthConfig.php
▶ Open 📄 View Source
🐘 Omnichannel.php
▶ Open 📄 View Source
🐘 OmnichannelIntegrationConfig.php
▶ Open 📄 View Source
🐘 OmnichannelIntegrationConfigCesAppConfig.php
▶ Open 📄 View Source
🐘 OmnichannelIntegrationConfigChannelConfig.php
▶ Open 📄 View Source
🐘 OmnichannelIntegrationConfigRoutingConfig.php
▶ Open 📄 View Source
🐘 OmnichannelIntegrationConfigSubscriberConfig.php
▶ Open 📄 View Source
🐘 OmnichannelIntegrationConfigWhatsappConfig.php
▶ Open 📄 View Source
🐘 OmnichannelOperationMetadata.php
▶ Open 📄 View Source
🐘 OpenApiTool.php
▶ Open 📄 View Source
🐘 OpenApiToolset.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 OutputAudioConfig.php
▶ Open 📄 View Source
🐘 PythonCodeCondition.php
▶ Open 📄 View Source
🐘 PythonFunction.php
▶ Open 📄 View Source
🐘 RedactionConfig.php
▶ Open 📄 View Source
🐘 RestoreAppVersionRequest.php
▶ Open 📄 View Source
🐘 RetrieveToolSchemaRequest.php
▶ Open 📄 View Source
🐘 RetrieveToolSchemaResponse.php
▶ Open 📄 View Source
🐘 RetrieveToolsRequest.php
▶ Open 📄 View Source
🐘 RetrieveToolsResponse.php
▶ Open 📄 View Source
🐘 RunSessionRequest.php
▶ Open 📄 View Source
🐘 RunSessionResponse.php
▶ Open 📄 View Source
🐘 Schema.php
▶ Open 📄 View Source
🐘 SecuritySettings.php
▶ Open 📄 View Source
🐘 ServiceAccountAuthConfig.php
▶ Open 📄 View Source
🐘 ServiceAgentIdTokenAuthConfig.php
▶ Open 📄 View Source
🐘 ServiceDirectoryConfig.php
▶ Open 📄 View Source
🐘 SessionConfig.php
▶ Open 📄 View Source
🐘 SessionConfigRemoteDialogflowQueryParameters.php
▶ Open 📄 View Source
🐘 SessionInput.php
▶ Open 📄 View Source
🐘 SessionOutput.php
▶ Open 📄 View Source
🐘 SessionOutputDiagnosticInfo.php
▶ Open 📄 View Source
🐘 Span.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 SynthesizeSpeechConfig.php
▶ Open 📄 View Source
🐘 SystemTool.php
▶ Open 📄 View Source
🐘 TimeZoneSettings.php
▶ Open 📄 View Source
🐘 TlsConfig.php
▶ Open 📄 View Source
🐘 TlsConfigCaCert.php
▶ Open 📄 View Source
🐘 Tool.php
▶ Open 📄 View Source
🐘 ToolCall.php
▶ Open 📄 View Source
🐘 ToolCalls.php
▶ Open 📄 View Source
🐘 ToolFakeConfig.php
▶ Open 📄 View Source
🐘 ToolResponse.php
▶ Open 📄 View Source
🐘 ToolResponses.php
▶ Open 📄 View Source
🐘 Toolset.php
▶ Open 📄 View Source
🐘 ToolsetTool.php
▶ Open 📄 View Source
🐘 TransferRule.php
▶ Open 📄 View Source
🐘 TransferRuleDeterministicTransfer.php
▶ Open 📄 View Source
🐘 TransferRuleDisablePlannerTransfer.php
▶ Open 📄 View Source
🐘 TriggerAction.php
▶ Open 📄 View Source
🐘 TriggerActionGenerativeAnswer.php
▶ Open 📄 View Source
🐘 TriggerActionRespondImmediately.php
▶ Open 📄 View Source
🐘 TriggerActionResponse.php
▶ Open 📄 View Source
🐘 TriggerActionTransferAgent.php
▶ Open 📄 View Source
🐘 WebSearchQuery.php
▶ Open 📄 View Source
🐘 WidgetTool.php
▶ Open 📄 View Source
🐘 WidgetToolDataMapping.php
▶ Open 📄 View Source
🐘 WidgetToolTextResponseConfig.php
▶ Open 📄 View Source

📄 Source: WidgetToolDataMapping.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\CustomerEngagementSuite;

class WidgetToolDataMapping extends \Google\Model
{
  /**
   * Unspecified mode.
   */
  public const MODE_MODE_UNSPECIFIED = 'MODE_UNSPECIFIED';
  /**
   * Use the `field_mappings` map for data transformation.
   */
  public const MODE_FIELD_MAPPING = 'FIELD_MAPPING';
  /**
   * Use the `python_script` for data transformation.
   */
  public const MODE_PYTHON_SCRIPT = 'PYTHON_SCRIPT';
  /**
   * Optional. A map of widget input parameter fields to the corresponding
   * output fields of the source tool.
   *
   * @var string[]
   */
  public $fieldMappings;
  /**
   * Optional. The mode of the data mapping.
   *
   * @var string
   */
  public $mode;
  protected $pythonFunctionType = PythonFunction::class;
  protected $pythonFunctionDataType = '';
  /**
   * Deprecated: Use `python_function` instead.
   *
   * @deprecated
   * @var string
   */
  public $pythonScript;
  /**
   * Optional. The resource name of the tool that provides the data for the
   * widget (e.g., a search tool or a custom function). Format:
   * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
   *
   * @var string
   */
  public $sourceToolName;

  /**
   * Optional. A map of widget input parameter fields to the corresponding
   * output fields of the source tool.
   *
   * @param string[] $fieldMappings
   */
  public function setFieldMappings($fieldMappings)
  {
    $this->fieldMappings = $fieldMappings;
  }
  /**
   * @return string[]
   */
  public function getFieldMappings()
  {
    return $this->fieldMappings;
  }
  /**
   * Optional. The mode of the data mapping.
   *
   * Accepted values: MODE_UNSPECIFIED, FIELD_MAPPING, PYTHON_SCRIPT
   *
   * @param self::MODE_* $mode
   */
  public function setMode($mode)
  {
    $this->mode = $mode;
  }
  /**
   * @return self::MODE_*
   */
  public function getMode()
  {
    return $this->mode;
  }
  /**
   * Optional. Configuration for a Python function used to transform the source
   * tool's output into the widget's input format.
   *
   * @param PythonFunction $pythonFunction
   */
  public function setPythonFunction(PythonFunction $pythonFunction)
  {
    $this->pythonFunction = $pythonFunction;
  }
  /**
   * @return PythonFunction
   */
  public function getPythonFunction()
  {
    return $this->pythonFunction;
  }
  /**
   * Deprecated: Use `python_function` instead.
   *
   * @deprecated
   * @param string $pythonScript
   */
  public function setPythonScript($pythonScript)
  {
    $this->pythonScript = $pythonScript;
  }
  /**
   * @deprecated
   * @return string
   */
  public function getPythonScript()
  {
    return $this->pythonScript;
  }
  /**
   * Optional. The resource name of the tool that provides the data for the
   * widget (e.g., a search tool or a custom function). Format:
   * `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
   *
   * @param string $sourceToolName
   */
  public function setSourceToolName($sourceToolName)
  {
    $this->sourceToolName = $sourceToolName;
  }
  /**
   * @return string
   */
  public function getSourceToolName()
  {
    return $this->sourceToolName;
  }
}

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