Index
-
AudioOverviewService
(interface) -
NotebookService
(interface) -
SourceService
(interface) -
AccountAndRole
(message) -
AgentspaceMetadata
(message) -
AudioOverview
(message) -
AudioOverview.MimeType
(enum) -
AudioOverviewGenerationOptions
(message) -
AudioOverviewStatus
(enum) -
BatchCreateSourcesRequest
(message) -
BatchCreateSourcesResponse
(message) -
BatchDeleteNotebooksRequest
(message) -
BatchDeleteSourcesRequest
(message) -
CmekConfig
(message) -
CreateAudioOverviewRequest
(message) -
CreateAudioOverviewResponse
(message) -
CreateNotebookRequest
(message) -
DeleteAudioOverviewRequest
(message) -
FailureReason
(message) -
FailureReason.AudioTranscriptionError
(message) -
FailureReason.AudioTranscriptionError.LanguageDetectionFailed
(message) -
FailureReason.AudioTranscriptionError.NoAudioDetected
(message) -
FailureReason.DomainBlocked
(message) -
FailureReason.GoogleDriveError
(message) -
FailureReason.GoogleDriveError.DownloadPrevented
(message) -
FailureReason.IngestionError
(message) -
FailureReason.PaywallError
(message) -
FailureReason.SourceEmpty
(message) -
FailureReason.SourceLimitExceeded
(message) -
FailureReason.SourceTooLong
(message) -
FailureReason.SourceUnreachable
(message) -
FailureReason.Unknown
(message) -
FailureReason.UploadError
(message) -
FailureReason.YoutubeError
(message) -
FailureReason.YoutubeError.VideoDeleted
(message) -
GetNotebookRequest
(message) -
GetSourceRequest
(message) -
GoogleDocsSourceMetadata
(message) -
ListRecentlyViewedNotebooksRequest
(message) -
ListRecentlyViewedNotebooksResponse
(message) -
Notebook
(message) -
NotebookMetadata
(message) -
ProjectRole
(enum) -
ShareNotebookRequest
(message) -
ShareNotebookResponse
(message) -
Source
(message) -
SourceId
(message) -
SourceMetadata
(message) -
SourceSettings
(message) -
SourceStatus
(enum) -
SourceUnreachableErrorReason
(enum) -
UserContent
(message) -
UserContent.AgentspaceContent
(message) -
UserContent.GoogleDriveContent
(message) -
UserContent.TextContent
(message) -
UserContent.VideoContent
(message) -
UserContent.WebContent
(message) -
YoutubeMetadata
(message)
AudioOverviewService
Service for managing audio overviews.
rpc CreateAudioOverview(
CreateAudioOverviewRequest
) returns ( CreateAudioOverviewResponse
)
Generates a new audio overview.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
parent
resource:-
discoveryengine.audioOverviews.create
For more information, see the IAM documentation .
-
rpc DeleteAudioOverview(
DeleteAudioOverviewRequest
) returns ( Empty
)
Deletes an audio overview.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
name
resource:-
discoveryengine.audioOverviews.delete
For more information, see the IAM documentation .
-
NotebookService
Service for managing notebooks.
rpc BatchDeleteNotebooks(
BatchDeleteNotebooksRequest
) returns ( Empty
)
Batch deletes Notebooks.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
rpc CreateNotebook(
CreateNotebookRequest
) returns ( Notebook
)
Creates a notebook.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
parent
resource:-
discoveryengine.notebooks.create
For more information, see the IAM documentation .
-
rpc GetNotebook(
GetNotebookRequest
) returns ( Notebook
)
Gets a notebook.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
name
resource:-
discoveryengine.notebooks.get
For more information, see the IAM documentation .
-
rpc ListRecentlyViewedNotebooks(
ListRecentlyViewedNotebooksRequest
) returns ( ListRecentlyViewedNotebooksResponse
)
Lists the notebooks ordered by last view time.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
parent
resource:-
discoveryengine.notebooks.list
For more information, see the IAM documentation .
-
SourceService
Service for managing sources.
rpc BatchCreateSources(
BatchCreateSourcesRequest
) returns ( BatchCreateSourcesResponse
)
Creates a list of Source
s.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
parent
resource:-
discoveryengine.sources.create
For more information, see the IAM documentation .
-
rpc BatchDeleteSources(
BatchDeleteSourcesRequest
) returns ( Empty
)
Deletes multiple sources
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
parent
resource:-
discoveryengine.sources.delete
For more information, see the IAM documentation .
-
rpc GetSource(
GetSourceRequest
) returns ( Source
)
Gets a Source
.
- Authorization scopes
-
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
name
resource:-
discoveryengine.sources.get
For more information, see the IAM documentation .
-
AccountAndRole
Account and role information.
Fields | |
---|---|
email
|
Required. The email address associated with the account. |
role
|
Required. The role in the notebook. |
AgentspaceMetadata
Metadata about an agentspace source.
Fields | |
---|---|
document_name
|
Output only. The full document name in Agentspace. |
document_title
|
Output only. The title of the document. |
AudioOverview
An audio overview of a notebook. This is a summary of the notebook in audio format.
Fields | |
---|---|
name
|
Identifier. The full resource name of the notebook. Format: This field must be a UTF-8 encoded string with a length limit of 1024 characters. |
audio_overview_id
|
Output only. Unique ID of the audio overview. |
status
|
The status of the audio overview. |
audio
|
The audio overview in wav format. This is only present if the status is AUDIO_OVERVIEW_STATUS_COMPLETE. |
mime_type
|
The mime type of the audio overview. |
playback_url
|
The url used to play the audio overview. |
language_code
|
The language code of the generated audio overview. Use the BCP 47 language code (e.g. "en", "es", "hi", etc.). |
MimeType
Supported mime types for audio overviews.
Enums | |
---|---|
MIME_TYPE_UNKNOWN
|
The mime type has not been set. |
MIME_TYPE_WAV
|
The mime type is audio/wav. |
MIME_TYPE_MP4
|
The mime type is audio/mp4. |
AudioOverviewGenerationOptions
Options used during audio overview generation.
Fields | |
---|---|
source_ids[]
|
Optional. The sources in which the audio overview is grounded. |
episode_focus
|
What the hosts of the show should focus on. |
language_code
|
The language that the audio overview was requested in. |
AudioOverviewStatus
The status of an audio overview.
Enums | |
---|---|
AUDIO_OVERVIEW_STATUS_UNSPECIFIED
|
The status has not been set. |
AUDIO_OVERVIEW_STATUS_NOT_STARTED
|
The audio overview has not started being generated. |
AUDIO_OVERVIEW_STATUS_IN_PROGRESS
|
The audio overview is in the process of being generated. |
AUDIO_OVERVIEW_STATUS_COMPLETE
|
The audio overview has been generated and is available. |
AUDIO_OVERVIEW_STATUS_FAILED
|
The audio overview failed to be generated. |
BatchCreateSourcesRequest
Request for SourceService.BatchCreateSources
method.
Fields | |
---|---|
parent
|
Required. The parent resource where the sources will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook} |
user_contents[]
|
Required. The |
BatchCreateSourcesResponse
Response for SourceService.BatchCreateSources
method.
Fields | |
---|---|
sources[]
|
The |
BatchDeleteNotebooksRequest
Request for NotebookService.BatchDeleteNotebooks
method.
Fields | |
---|---|
parent
|
Required. The parent branch resource name, such as |
names[]
|
Required. Full resource names of |
BatchDeleteSourcesRequest
Request for [SourceService.BatchDeleteSourcesRequest][] method.
Fields | |
---|---|
parent
|
Required. The parent resource where the sources will be deleted. Format: projects/{project}/locations/{location}/notebooks/{notebook} |
names[]
|
Required. Names of sources to be deleted. Format: projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} |
CmekConfig
Customer-managed encryption configuration for Notebooks.
Fields | |
---|---|
kms_key
|
Required. KMS key resource name which will be used to encrypt resources |
CreateAudioOverviewRequest
Request for AudioOverviewService.CreateAudioOverview
method.
Fields | |
---|---|
parent
|
Required. The parent resource where this notebook will be created. Format: projects/{project}/locations/{location}/notebooks/{notebook} |
generation_options
|
Options for the audio overview generation. |
CreateAudioOverviewResponse
Response for AudioOverviewService.CreateAudioOverview
method.
Fields | |
---|---|
audio_overview
|
The generated audio overview. |
CreateNotebookRequest
Request for NotebookService.CreateNotebook
method.
Fields | |
---|---|
parent
|
Required. The parent resource name, such as |
notebook
|
Required. The notebook to create. |
DeleteAudioOverviewRequest
Request for AudioOverviewService.DeleteAudioOverview
method.
Fields | |
---|---|
name
|
Required. The full resource name of the |
FailureReason
Failure reason containing details about why a source failed to ingest.
error
. The specific error. error
can be only one of the following:unknown
Indicates an unknown error occurred.
source_too_long
Indicates source word count exceeded the user's limit.
ingestion_error
Indicates an error occurred while ingesting the source.
source_empty
Indicates that the source is empty.
upload_error
Indicates an error occurred while uploading the source.
paywall_error
Indicates that the source is paywalled and cannot be ingested.
source_unreachable
Indicates that the source is unreachable.
google_drive_error
A google drive specific error.
youtube_error
A youtube specific error.
audio_transcription_error
An audio file transcription specific error.
source_limit_exceeded
Error if the user tries to update beyond their limits.
domain_blocked
Error if the user tries to add a source from a blocked domain.
AudioTranscriptionError
An audio file transcription specific error.
error
. The audio file transcription specific error. error
can be only one of the following:language_detection_failed
Could not detect language of the file (it may not be speech).
no_audio_detected
No audio was detected in the input file (it may have been a video).
LanguageDetectionFailed
This type has no fields.
Could not detect language of the file (it may not be speech).
NoAudioDetected
This type has no fields.
No audio was detected in the input file.
DomainBlocked
This type has no fields.
Error to indicate that the source was removed because the domain was blocked.
GoogleDriveError
A google drive specific error.
error
. The Drive specific error. error
can be only one of the following:download_prevented
The user was prevented from downloading the file.
DownloadPrevented
This type has no fields.
The user was prevented from downloading the file.
IngestionError
This type has no fields.
Indicates an error occurred while ingesting the source.
PaywallError
This type has no fields.
Indicates that the source is paywalled and cannot be ingested.
SourceEmpty
This type has no fields.
Indicates that the source is empty.
SourceLimitExceeded
This type has no fields.
Indicates that the user does not have space for this source.
SourceTooLong
Indicates source word count exceeded the user's limit.
Fields | |
---|---|
word_count
|
The number of words in the source. |
word_limit
|
The word count limit for the current user at the time of the upload. |
SourceUnreachable
Indicates that the source is unreachable. This is primarily used for sources that are added via URL.
Fields | |
---|---|
error_details
|
Describes why the source is unreachable. |
Unknown
This type has no fields.
Indicates an unknown error occurred.
UploadError
This type has no fields.
Indicates an error occurred while uploading the source.
YoutubeError
A youtube specific error.
error
. The youtube specific error. error
can be only one of the following:video_deleted
Error to indicate that the source was removed because the video was deleted.
VideoDeleted
This type has no fields.
Error to indicate that the source was removed because the video was deleted.
GetNotebookRequest
Request for NotebookService.GetNotebook
method.
Fields | |
---|---|
name
|
Required. Full resource name of |
GetSourceRequest
Request for SourceService.GetSource
method.
Fields | |
---|---|
name
|
Required. The resource name for source Format: projects/{project}/locations/{location}/notebooks/{notebook}/sources/{source} |
GoogleDocsSourceMetadata
Metadata about a google doc source.
Fields | |
---|---|
document_id
|
Output only. The document id of the google doc. |
revision_id
|
Output only. Revision id for the doc. |
ListRecentlyViewedNotebooksRequest
Request for NotebookService.ListRecentlyViewedNotebooks
method.
Fields | |
---|---|
parent
|
Required. The parent branch resource name, such as |
page_size
|
Optional. Maximum number of |
page_token
|
Optional. The page token, provide this to retrieve the subsequent page. |
ListRecentlyViewedNotebooksResponse
Response for NotebookService.ListRecentlyViewedNotebooks
method.
Fields | |
---|---|
notebooks[]
|
The list of recently viewed notebooks. |
next_page_token
|
The page token, provide this to retrieve the subsequent page. |
Notebook
Notebook is a resource where users can store their content (as sources) and interacts with the content.
Fields | |
---|---|
name
|
Identifier. The identifier of the notebook. Format: This field must be a UTF-8 encoded string. |
sources[]
|
Output only. List of sources in the notebook. This is an output only field. |
cmek_config
|
Output only. CMEK-related information for the Notebook. |
title
|
Optional. The title of the notebook. |
notebook_id
|
Output only. Notebook id, which is the last segment of the notebook's resource name. |
emoji
|
Output only. The emoji of the notebook. |
metadata
|
Output only. The metadata of the notebook. |
NotebookMetadata
Metadata for a notebook.
Fields | |
---|---|
is_shared
|
True if this project is currently shared with other people, false otherwise. |
is_shareable
|
True if the project is shareable. |
last_viewed
|
A timestamp indicating the time that the current in session user has last viewed the project. |
create_time
|
The time at which this project was created. |
ProjectRole
The role of the project.
Enums | |
---|---|
PROJECT_ROLE_UNKNOWN
|
Unknown role. |
PROJECT_ROLE_OWNER
|
The user owns the project. |
PROJECT_ROLE_WRITER
|
The user has writer permissions on the project. |
PROJECT_ROLE_READER
|
The user has reader permissions on the project. |
PROJECT_ROLE_NOT_SHARED
|
The user has no access to the project. |
Source
Source represents a single source of content.
Fields | |
---|---|
name
|
Identifier. The full resource name of the source. Format: This field must be a UTF-8 encoded string with a length limit of 1024 characters. |
title
|
Optional. Title of the source. |
source_id
|
Optional. Output only. Source id, which is the last segment of the source's resource name. |
metadata
|
Output only. Metadata about the source. |
settings
|
Output only. Status of the source, and any failure reasons. |
SourceId
SourceId is the last segment of the source's resource name.
Fields | |
---|---|
id
|
The id of the source. |
SourceMetadata
Represents the metadata of a source and some additional information.
word_count
int32
The word count of the source.
token_count
int32
The number of tokens in the source.
SourceSettings
Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request).
Fields | |
---|---|
status
|
Status of the source. |
failure_reason
|
Failure reason containing details about why a source failed to ingest. |
SourceStatus
List of possible statuses for a source.
Enums | |
---|---|
SOURCE_STATUS_UNSPECIFIED
|
Unspecified status. |
SOURCE_STATUS_PENDING
|
The source is pending addition. |
SOURCE_STATUS_COMPLETE
|
Source addition is complete and successful. |
SOURCE_STATUS_ERROR
|
Source addition has permanently failed. |
SOURCE_STATUS_PENDING_DELETION
|
The source is pending deletion. |
SOURCE_STATUS_TENTATIVE
|
The user is attempting to add a source, but we have not yet uploaded it or checked user limits. Does not count towards the user's source limit. |
SourceUnreachableErrorReason
Details about why the source is unreachable. Used to display appropriate message to the user.
Enums | |
---|---|
ERROR_REASON_UNSPECIFIED
|
Default |
ERROR_REASON_INVALID_URL
|
The source URL is invalid. |
ERROR_REASON_NOT_ACCESSIBLE
|
The source URL is not accessible. |
ERROR_REASON_NOT_REACHABLE
|
The source URL is not reachable. |
ERROR_REASON_URL_NOT_FOUND
|
The source URL returned 404. |
ERROR_REASON_TRANSIENT_ERROR
|
The source URL not reachable due to a transient network error or host timeout etc. |
ERROR_REASON_FETCH_FAILED
|
The source URL could not be fetched due to an internal error. |
ERROR_REASON_NOT_SUPPORTED
|
The URL is not yet supported. Examples include: the fetched content exceeds the trawler fetch max size, the fetched content is a type we do not yet support, etc. |
UserContent
The "Content" messages refer to data the user wants to upload.
content
. The user content. content
can be only one of the following:google_drive_content
The content from Google Drive.
text_content
The text content uploaded as source.
web_content
The web content uploaded as source.
video_content
The video content uploaded as source.
agentspace_content
Agentspace content uploaded as source.
AgentspaceContent
Agentspace content uploaded as source.
Fields | |
---|---|
document_name
|
Optional. The full document name in Agentspace. |
engine_name
|
Optional. Engine to verify the permission of the document. |
ideaforge_idea_name
|
Optional. The full idea name for IdeaForge. |
GoogleDriveContent
The content from Google Drive.
Fields | |
---|---|
document_id
|
The document id of the selected document. |
mime_type
|
The mime type of the selected document. This can be used to differentiate type of content selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or application/vnd.google-apps.presentation for Google Slides. |
source_name
|
The name to be displayed for the source. |
TextContent
The text content uploaded as source.
Fields | |
---|---|
source_name
|
The display name of the text source. |
content
|
The name to be displayed for the source. |
VideoContent
Video content uploaded as source.
format
. Specifies the format of the video content format
can be only one of the following:youtube_url
string
The youtube url of the video content.
WebContent
The web content uploaded as source.
Fields | |
---|---|
url
|
If URL is supplied, will fetch the webpage in the backend. |
source_name
|
The name to be displayed for the source. |
YoutubeMetadata
Metadata about a youtube video source.
Fields | |
---|---|
video_id
|
Output only. The id of the youtube video. |
channel_name
|
Output only. The channel name of the youtube video. |