Google Cloud Ai Platform V1 Client - Class CreateCachedContentRequest (1.14.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class CreateCachedContentRequest.

Request message for GenAiCacheService.CreateCachedContent.

Generated from protobuf message google.cloud.aiplatform.v1.CreateCachedContentRequest

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource where the cached content will be created

↳ cached_content CachedContent

Required. The cached content to create

getParent

Required. The parent resource where the cached content will be created

Returns
Type Description
string

setParent

Required. The parent resource where the cached content will be created

Parameter
Name Description
var string
Returns
Type Description
$this

getCachedContent

Required. The cached content to create

Returns
Type Description
CachedContent|null

hasCachedContent

clearCachedContent

setCachedContent

Required. The cached content to create

Parameter
Name Description
var CachedContent
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent resource where the cached content will be created Please see GenAiCacheServiceClient::locationName() for help formatting this field.

cachedContent CachedContent

Required. The cached content to create

Returns
Type Description
CreateCachedContentRequest