📂 File Browser

AgentAI/vendor/google/apiclient-services/src/CustomerEngagementSuite
☀️ Light 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: Guardrail.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 Guardrail extends \Google\Model
{
  protected $actionType = TriggerAction::class;
  protected $actionDataType = '';
  protected $codeCallbackType = GuardrailCodeCallback::class;
  protected $codeCallbackDataType = '';
  protected $contentFilterType = GuardrailContentFilter::class;
  protected $contentFilterDataType = '';
  /**
   * Output only. Timestamp when the guardrail was created.
   *
   * @var string
   */
  public $createTime;
  /**
   * Optional. Description of the guardrail.
   *
   * @var string
   */
  public $description;
  /**
   * Required. Display name of the guardrail.
   *
   * @var string
   */
  public $displayName;
  /**
   * Optional. Whether the guardrail is enabled.
   *
   * @var bool
   */
  public $enabled;
  /**
   * Etag used to ensure the object hasn't changed during a read-modify-write
   * operation. If the etag is empty, the update will overwrite any concurrent
   * changes.
   *
   * @var string
   */
  public $etag;
  protected $llmPolicyType = GuardrailLlmPolicy::class;
  protected $llmPolicyDataType = '';
  protected $llmPromptSecurityType = GuardrailLlmPromptSecurity::class;
  protected $llmPromptSecurityDataType = '';
  protected $modelSafetyType = GuardrailModelSafety::class;
  protected $modelSafetyDataType = '';
  /**
   * Identifier. The unique identifier of the guardrail. Format:
   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
   *
   * @var string
   */
  public $name;
  /**
   * Output only. Timestamp when the guardrail was last updated.
   *
   * @var string
   */
  public $updateTime;

  /**
   * Optional. Action to take when the guardrail is triggered.
   *
   * @param TriggerAction $action
   */
  public function setAction(TriggerAction $action)
  {
    $this->action = $action;
  }
  /**
   * @return TriggerAction
   */
  public function getAction()
  {
    return $this->action;
  }
  /**
   * Optional. Guardrail that potentially blocks the conversation based on the
   * result of the callback execution.
   *
   * @param GuardrailCodeCallback $codeCallback
   */
  public function setCodeCallback(GuardrailCodeCallback $codeCallback)
  {
    $this->codeCallback = $codeCallback;
  }
  /**
   * @return GuardrailCodeCallback
   */
  public function getCodeCallback()
  {
    return $this->codeCallback;
  }
  /**
   * Optional. Guardrail that bans certain content from being used in the
   * conversation.
   *
   * @param GuardrailContentFilter $contentFilter
   */
  public function setContentFilter(GuardrailContentFilter $contentFilter)
  {
    $this->contentFilter = $contentFilter;
  }
  /**
   * @return GuardrailContentFilter
   */
  public function getContentFilter()
  {
    return $this->contentFilter;
  }
  /**
   * Output only. Timestamp when the guardrail was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Optional. Description of the guardrail.
   *
   * @param string $description
   */
  public function setDescription($description)
  {
    $this->description = $description;
  }
  /**
   * @return string
   */
  public function getDescription()
  {
    return $this->description;
  }
  /**
   * Required. Display name of the guardrail.
   *
   * @param string $displayName
   */
  public function setDisplayName($displayName)
  {
    $this->displayName = $displayName;
  }
  /**
   * @return string
   */
  public function getDisplayName()
  {
    return $this->displayName;
  }
  /**
   * Optional. Whether the guardrail is enabled.
   *
   * @param bool $enabled
   */
  public function setEnabled($enabled)
  {
    $this->enabled = $enabled;
  }
  /**
   * @return bool
   */
  public function getEnabled()
  {
    return $this->enabled;
  }
  /**
   * Etag used to ensure the object hasn't changed during a read-modify-write
   * operation. If the etag is empty, the update will overwrite any concurrent
   * changes.
   *
   * @param string $etag
   */
  public function setEtag($etag)
  {
    $this->etag = $etag;
  }
  /**
   * @return string
   */
  public function getEtag()
  {
    return $this->etag;
  }
  /**
   * Optional. Guardrail that blocks the conversation if the LLM response is
   * considered violating the policy based on the LLM classification.
   *
   * @param GuardrailLlmPolicy $llmPolicy
   */
  public function setLlmPolicy(GuardrailLlmPolicy $llmPolicy)
  {
    $this->llmPolicy = $llmPolicy;
  }
  /**
   * @return GuardrailLlmPolicy
   */
  public function getLlmPolicy()
  {
    return $this->llmPolicy;
  }
  /**
   * Optional. Guardrail that blocks the conversation if the prompt is
   * considered unsafe based on the LLM classification.
   *
   * @param GuardrailLlmPromptSecurity $llmPromptSecurity
   */
  public function setLlmPromptSecurity(GuardrailLlmPromptSecurity $llmPromptSecurity)
  {
    $this->llmPromptSecurity = $llmPromptSecurity;
  }
  /**
   * @return GuardrailLlmPromptSecurity
   */
  public function getLlmPromptSecurity()
  {
    return $this->llmPromptSecurity;
  }
  /**
   * Optional. Guardrail that blocks the conversation if the LLM response is
   * considered unsafe based on the model safety settings.
   *
   * @param GuardrailModelSafety $modelSafety
   */
  public function setModelSafety(GuardrailModelSafety $modelSafety)
  {
    $this->modelSafety = $modelSafety;
  }
  /**
   * @return GuardrailModelSafety
   */
  public function getModelSafety()
  {
    return $this->modelSafety;
  }
  /**
   * Identifier. The unique identifier of the guardrail. Format:
   * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Output only. Timestamp when the guardrail was last updated.
   *
   * @param string $updateTime
   */
  public function setUpdateTime($updateTime)
  {
    $this->updateTime = $updateTime;
  }
  /**
   * @return string
   */
  public function getUpdateTime()
  {
    return $this->updateTime;
  }
}

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