Represents a GenAiCacheService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.aiplatform.v1beta1.GenAiCacheServicePackage
@google-cloud/aiplatformConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new GenAiCacheService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): GenAiCacheService;Creates new GenAiCacheService service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
GenAiCacheService |
RPC service. Useful where requests and/or responses are streamed. |
createCachedContent(request, callback)
public createCachedContent(request: google.cloud.aiplatform.v1beta1.ICreateCachedContentRequest, callback: google.cloud.aiplatform.v1beta1.GenAiCacheService.CreateCachedContentCallback): void;Calls CreateCachedContent.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateCachedContentRequest
CreateCachedContentRequest message or plain object |
callback |
CreateCachedContentCallback
Node-style callback called with the error, if any, and CachedContent |
| Returns | |
|---|---|
| Type | Description |
void |
|
createCachedContent(request)
public createCachedContent(request: google.cloud.aiplatform.v1beta1.ICreateCachedContentRequest): Promise<google.cloud.aiplatform.v1beta1.CachedContent>;Calls CreateCachedContent.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateCachedContentRequest
CreateCachedContentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.aiplatform.v1beta1.CachedContent> |
Promise |
deleteCachedContent(request, callback)
public deleteCachedContent(request: google.cloud.aiplatform.v1beta1.IDeleteCachedContentRequest, callback: google.cloud.aiplatform.v1beta1.GenAiCacheService.DeleteCachedContentCallback): void;Calls DeleteCachedContent.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteCachedContentRequest
DeleteCachedContentRequest message or plain object |
callback |
DeleteCachedContentCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteCachedContent(request)
public deleteCachedContent(request: google.cloud.aiplatform.v1beta1.IDeleteCachedContentRequest): Promise<google.protobuf.Empty>;Calls DeleteCachedContent.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteCachedContentRequest
DeleteCachedContentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getCachedContent(request, callback)
public getCachedContent(request: google.cloud.aiplatform.v1beta1.IGetCachedContentRequest, callback: google.cloud.aiplatform.v1beta1.GenAiCacheService.GetCachedContentCallback): void;Calls GetCachedContent.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetCachedContentRequest
GetCachedContentRequest message or plain object |
callback |
GetCachedContentCallback
Node-style callback called with the error, if any, and CachedContent |
| Returns | |
|---|---|
| Type | Description |
void |
|
getCachedContent(request)
public getCachedContent(request: google.cloud.aiplatform.v1beta1.IGetCachedContentRequest): Promise<google.cloud.aiplatform.v1beta1.CachedContent>;Calls GetCachedContent.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetCachedContentRequest
GetCachedContentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.aiplatform.v1beta1.CachedContent> |
Promise |
listCachedContents(request, callback)
public listCachedContents(request: google.cloud.aiplatform.v1beta1.IListCachedContentsRequest, callback: google.cloud.aiplatform.v1beta1.GenAiCacheService.ListCachedContentsCallback): void;Calls ListCachedContents.
| Parameters | |
|---|---|
| Name | Description |
request |
IListCachedContentsRequest
ListCachedContentsRequest message or plain object |
callback |
ListCachedContentsCallback
Node-style callback called with the error, if any, and ListCachedContentsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listCachedContents(request)
public listCachedContents(request: google.cloud.aiplatform.v1beta1.IListCachedContentsRequest): Promise<google.cloud.aiplatform.v1beta1.ListCachedContentsResponse>;Calls ListCachedContents.
| Parameter | |
|---|---|
| Name | Description |
request |
IListCachedContentsRequest
ListCachedContentsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.aiplatform.v1beta1.ListCachedContentsResponse> |
Promise |
updateCachedContent(request, callback)
public updateCachedContent(request: google.cloud.aiplatform.v1beta1.IUpdateCachedContentRequest, callback: google.cloud.aiplatform.v1beta1.GenAiCacheService.UpdateCachedContentCallback): void;Calls UpdateCachedContent.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateCachedContentRequest
UpdateCachedContentRequest message or plain object |
callback |
UpdateCachedContentCallback
Node-style callback called with the error, if any, and CachedContent |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateCachedContent(request)
public updateCachedContent(request: google.cloud.aiplatform.v1beta1.IUpdateCachedContentRequest): Promise<google.cloud.aiplatform.v1beta1.CachedContent>;Calls UpdateCachedContent.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateCachedContentRequest
UpdateCachedContentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.aiplatform.v1beta1.CachedContent> |
Promise |