Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/CustomerEngagementSuite/Deployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class Deployment extends \Google\Model
* @var string
*/
public $etag;
protected $experimentConfigType = ExperimentConfig::class;
protected $experimentConfigDataType = '';
/**
* Identifier. The resource name of the deployment. Format: `projects/{project
* }/locations/{location}/apps/{app}/deployments/{deployment}`
Expand Down Expand Up @@ -149,6 +151,22 @@ public function getEtag()
{
return $this->etag;
}
/**
* Optional. Experiment configuration for the deployment.
*
* @param ExperimentConfig $experimentConfig
*/
public function setExperimentConfig(ExperimentConfig $experimentConfig)
{
$this->experimentConfig = $experimentConfig;
}
/**
* @return ExperimentConfig
*/
public function getExperimentConfig()
{
return $this->experimentConfig;
}
/**
* Identifier. The resource name of the deployment. Format: `projects/{project
* }/locations/{location}/apps/{app}/deployments/{deployment}`
Expand Down
44 changes: 44 additions & 0 deletions src/CustomerEngagementSuite/ExperimentConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?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 ExperimentConfig extends \Google\Model
{
protected $versionReleaseType = ExperimentConfigVersionRelease::class;
protected $versionReleaseDataType = '';

/**
* Optional. Version release for the experiment.
*
* @param ExperimentConfigVersionRelease $versionRelease
*/
public function setVersionRelease(ExperimentConfigVersionRelease $versionRelease)
{
$this->versionRelease = $versionRelease;
}
/**
* @return ExperimentConfigVersionRelease
*/
public function getVersionRelease()
{
return $this->versionRelease;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExperimentConfig::class, 'Google_Service_CustomerEngagementSuite_ExperimentConfig');
89 changes: 89 additions & 0 deletions src/CustomerEngagementSuite/ExperimentConfigVersionRelease.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?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 ExperimentConfigVersionRelease extends \Google\Collection
{
/**
* Unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Pending state. Experiment is pending and not valid.
*/
public const STATE_PENDING = 'PENDING';
/**
* Running state. Experiment is running and valid.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* Done state. Experiment is done and no longer valid.
*/
public const STATE_DONE = 'DONE';
/**
* Expired state. Experiment is expired and no longer valid.
*/
public const STATE_EXPIRED = 'EXPIRED';
protected $collection_key = 'trafficAllocations';
/**
* Optional. State of the version release.
*
* @var string
*/
public $state;
protected $trafficAllocationsType = ExperimentConfigVersionReleaseTrafficAllocation::class;
protected $trafficAllocationsDataType = 'array';

/**
* Optional. State of the version release.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, RUNNING, DONE, EXPIRED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional. Traffic allocations for the version release.
*
* @param ExperimentConfigVersionReleaseTrafficAllocation[] $trafficAllocations
*/
public function setTrafficAllocations($trafficAllocations)
{
$this->trafficAllocations = $trafficAllocations;
}
/**
* @return ExperimentConfigVersionReleaseTrafficAllocation[]
*/
public function getTrafficAllocations()
{
return $this->trafficAllocations;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExperimentConfigVersionRelease::class, 'Google_Service_CustomerEngagementSuite_ExperimentConfigVersionRelease');
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?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 ExperimentConfigVersionReleaseTrafficAllocation extends \Google\Model
{
/**
* Optional. App version of the traffic allocation. Format:
* `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
*
* @var string
*/
public $appVersion;
/**
* Optional. Id of the traffic allocation. Free format string, up to 128
* characters.
*
* @var string
*/
public $id;
/**
* Optional. Traffic percentage of the traffic allocation. Must be between 0
* and 100.
*
* @var int
*/
public $trafficPercentage;

/**
* Optional. App version of the traffic allocation. Format:
* `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
*
* @param string $appVersion
*/
public function setAppVersion($appVersion)
{
$this->appVersion = $appVersion;
}
/**
* @return string
*/
public function getAppVersion()
{
return $this->appVersion;
}
/**
* Optional. Id of the traffic allocation. Free format string, up to 128
* characters.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Optional. Traffic percentage of the traffic allocation. Must be between 0
* and 100.
*
* @param int $trafficPercentage
*/
public function setTrafficPercentage($trafficPercentage)
{
$this->trafficPercentage = $trafficPercentage;
}
/**
* @return int
*/
public function getTrafficPercentage()
{
return $this->trafficPercentage;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExperimentConfigVersionReleaseTrafficAllocation::class, 'Google_Service_CustomerEngagementSuite_ExperimentConfigVersionReleaseTrafficAllocation');
20 changes: 20 additions & 0 deletions src/CustomerEngagementSuite/LoggingSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class LoggingSettings extends \Google\Model
protected $metricAnalysisSettingsDataType = '';
protected $redactionConfigType = RedactionConfig::class;
protected $redactionConfigDataType = '';
protected $unredactedAudioRecordingConfigType = AudioRecordingConfig::class;
protected $unredactedAudioRecordingConfigDataType = '';

/**
* Optional. Configuration for how audio interactions should be recorded.
Expand Down Expand Up @@ -151,6 +153,24 @@ public function getRedactionConfig()
{
return $this->redactionConfig;
}
/**
* Optional. Configures recording of unredacted audio. Use this to maintain a
* raw backup with restricted access when audio redaction is enabled,
* typically for auditing or monitoring purposes.
*
* @param AudioRecordingConfig $unredactedAudioRecordingConfig
*/
public function setUnredactedAudioRecordingConfig(AudioRecordingConfig $unredactedAudioRecordingConfig)
{
$this->unredactedAudioRecordingConfig = $unredactedAudioRecordingConfig;
}
/**
* @return AudioRecordingConfig
*/
public function getUnredactedAudioRecordingConfig()
{
return $this->unredactedAudioRecordingConfig;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
4 changes: 2 additions & 2 deletions src/CustomerEngagementSuite/MockedToolCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MockedToolCall extends \Google\Model
*/
public $mockResponse;
/**
* Required. Deprecated. Use tool_identifier instead.
* Optional. Deprecated. Use tool_identifier instead.
*
* @deprecated
* @var string
Expand Down Expand Up @@ -87,7 +87,7 @@ public function getMockResponse()
return $this->mockResponse;
}
/**
* Required. Deprecated. Use tool_identifier instead.
* Optional. Deprecated. Use tool_identifier instead.
*
* @deprecated
* @param string $tool
Expand Down
23 changes: 11 additions & 12 deletions src/CustomerEngagementSuite/Resource/ProjectsLocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,22 @@ public function get($name, $optParams = [])
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
* empty, the method lists the public locations available to all projects. *
* **Project-specific locations**: If `name` follows the format
* `projects/{project}`, the method lists locations visible to that specific
* project. This includes public, private, or other project-specific locations
* enabled for the project. For gRPC and client library implementations, the
* resource name is passed as the `name` field. For direct service calls, the
* resource name is incorporated into the request path based on the specific
* service implementation and version. (locations.listProjectsLocations)
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
Expand Down
18 changes: 18 additions & 0 deletions src/CustomerEngagementSuite/WidgetTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class WidgetTool extends \Google\Model
public $name;
protected $parametersType = Schema::class;
protected $parametersDataType = '';
protected $textResponseConfigType = WidgetToolTextResponseConfig::class;
protected $textResponseConfigDataType = '';
/**
* Optional. Configuration for rendering the widget.
*
Expand Down Expand Up @@ -166,6 +168,22 @@ public function getParameters()
{
return $this->parameters;
}
/**
* Optional. Configuration for always-included text responses.
*
* @param WidgetToolTextResponseConfig $textResponseConfig
*/
public function setTextResponseConfig(WidgetToolTextResponseConfig $textResponseConfig)
{
$this->textResponseConfig = $textResponseConfig;
}
/**
* @return WidgetToolTextResponseConfig
*/
public function getTextResponseConfig()
{
return $this->textResponseConfig;
}
/**
* Optional. Configuration for rendering the widget.
*
Expand Down
Loading
Loading