Skip to content
Open
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
98 changes: 98 additions & 0 deletions src/Contactcenterinsights/GoogleCloudAiplatformV1Blob.php
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\Contactcenterinsights;

class GoogleCloudAiplatformV1Blob extends \Google\Model
{
/**
* Required. The raw bytes of the data.
*
* @var string
*/
public $data;
/**
* Optional. The display name of the blob. Used to provide a label or filename
* to distinguish blobs. This field is only returned in `PromptMessage` for
* prompt management. It is used in the Gemini calls only when server-side
* tools (`code_execution`, `google_search`, and `url_context`) are enabled.
*
* @var string
*/
public $displayName;
/**
* Required. The IANA standard MIME type of the source data.
*
* @var string
*/
public $mimeType;

/**
* Required. The raw bytes of the data.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Optional. The display name of the blob. Used to provide a label or filename
* to distinguish blobs. This field is only returned in `PromptMessage` for
* prompt management. It is used in the Gemini calls only when server-side
* tools (`code_execution`, `google_search`, and `url_context`) are enabled.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Required. The IANA standard MIME type of the source data.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAiplatformV1Blob::class, 'Google_Service_Contactcenterinsights_GoogleCloudAiplatformV1Blob');
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?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\Contactcenterinsights;

class GoogleCloudAiplatformV1CodeExecutionResult extends \Google\Model
{
/**
* Unspecified status. This value should not be used.
*/
public const OUTCOME_OUTCOME_UNSPECIFIED = 'OUTCOME_UNSPECIFIED';
/**
* Code execution completed successfully. `output` contains the stdout, if
* any.
*/
public const OUTCOME_OUTCOME_OK = 'OUTCOME_OK';
/**
* Code execution failed. `output` contains the stderr and stdout, if any.
*/
public const OUTCOME_OUTCOME_FAILED = 'OUTCOME_FAILED';
/**
* Code execution ran for too long, and was cancelled. There may or may not be
* a partial `output` present.
*/
public const OUTCOME_OUTCOME_DEADLINE_EXCEEDED = 'OUTCOME_DEADLINE_EXCEEDED';
/**
* Required. Outcome of the code execution.
*
* @var string
*/
public $outcome;
/**
* Optional. Contains stdout when code execution is successful, stderr or
* other description otherwise.
*
* @var string
*/
public $output;

/**
* Required. Outcome of the code execution.
*
* Accepted values: OUTCOME_UNSPECIFIED, OUTCOME_OK, OUTCOME_FAILED,
* OUTCOME_DEADLINE_EXCEEDED
*
* @param self::OUTCOME_* $outcome
*/
public function setOutcome($outcome)
{
$this->outcome = $outcome;
}
/**
* @return self::OUTCOME_*
*/
public function getOutcome()
{
return $this->outcome;
}
/**
* Optional. Contains stdout when code execution is successful, stderr or
* other description otherwise.
*
* @param string $output
*/
public function setOutput($output)
{
$this->output = $output;
}
/**
* @return string
*/
public function getOutput()
{
return $this->output;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAiplatformV1CodeExecutionResult::class, 'Google_Service_Contactcenterinsights_GoogleCloudAiplatformV1CodeExecutionResult');
71 changes: 71 additions & 0 deletions src/Contactcenterinsights/GoogleCloudAiplatformV1Content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?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\Contactcenterinsights;

class GoogleCloudAiplatformV1Content extends \Google\Collection
{
protected $collection_key = 'parts';
protected $partsType = GoogleCloudAiplatformV1Part::class;
protected $partsDataType = 'array';
/**
* Optional. The producer of the content. Must be either 'user' or 'model'. If
* not set, the service will default to 'user'.
*
* @var string
*/
public $role;

/**
* Required. A list of Part objects that make up a single message. Parts of a
* message can have different MIME types. A Content message must have at least
* one Part.
*
* @param GoogleCloudAiplatformV1Part[] $parts
*/
public function setParts($parts)
{
$this->parts = $parts;
}
/**
* @return GoogleCloudAiplatformV1Part[]
*/
public function getParts()
{
return $this->parts;
}
/**
* Optional. The producer of the content. Must be either 'user' or 'model'. If
* not set, the service will default to 'user'.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAiplatformV1Content::class, 'Google_Service_Contactcenterinsights_GoogleCloudAiplatformV1Content');
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?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\Contactcenterinsights;

class GoogleCloudAiplatformV1ExecutableCode extends \Google\Model
{
/**
* Unspecified language. This value should not be used.
*/
public const LANGUAGE_LANGUAGE_UNSPECIFIED = 'LANGUAGE_UNSPECIFIED';
/**
* Python >= 3.10, with numpy and simpy available.
*/
public const LANGUAGE_PYTHON = 'PYTHON';
/**
* Required. The code to be executed.
*
* @var string
*/
public $code;
/**
* Required. Programming language of the `code`.
*
* @var string
*/
public $language;

/**
* Required. The code to be executed.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Required. Programming language of the `code`.
*
* Accepted values: LANGUAGE_UNSPECIFIED, PYTHON
*
* @param self::LANGUAGE_* $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return self::LANGUAGE_*
*/
public function getLanguage()
{
return $this->language;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAiplatformV1ExecutableCode::class, 'Google_Service_Contactcenterinsights_GoogleCloudAiplatformV1ExecutableCode');
Loading
Loading