Update an existing knowledge collection in workspace. This method returns a Long Running Operation (LRO). Can only be called for knowledge collections in the workspace associated with the provided API key. There are several limits that need to be considered when updating knowledge collection:
update_mask field specifies which fields in the Knowledge resource should be updated. If empty, the request will fail.Note: The provided records will override the existing knowledge records.
Should follow the format Basic {credentials}. The {credentials} consists of the Base64-encoded string of the API key and the secret in the format key:secret
Resource name that is provided by user and can contain only lowercase letters, digits, underscores, or hyphens and has length up to 61 symbols
The updated knowledge collection details.
List of knowledge records in the collection. The provided records will override the existing knowledge records
Language codes following the format of Language_Locale. Language is defined per ISO 639-1. Locale is defined per ISO 3166-1. Current protobuf value: 3. Please update with each revision.
LANGUAGE_CODE_UNSPECIFIED, EN_US, ZH_CN, KO_KR, JA_JP, RU_RU, AUTO A successful response.
Long running operation that handle update knowledge
The server-assigned name, which is only unique within the Public Knowledge Retrieval APIservice.
Metadata for LRO associated with UpdateKnowledge.
If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the API Design Guide.
Represents a knowledge collection, which contains multiple knowledge records.