Docs Cloud Redpanda Connect Components Processors google_drive_download google_drive_download Available in: Cloud, Self-Managed Downloads files from Google Drive that contain matching file IDs. Try out the example pipeline on this page, which downloads all files from your Google Drive. Common Advanced # Common configuration fields, showing default values label: "" google_drive_download: credentials_json: "" # No default (optional) file_id: "" # No default (required) mime_type: "" # No default (required) # All configuration fields, showing default values label: "" google_drive_download: credentials_json: "" # No default (optional) file_id: "" # No default (required) mime_type: "" # No default (required) export_mime_types: application/vnd.google-apps.document: text/markdown application/vnd.google-apps.drawing: image/png application/vnd.google-apps.presentation: application/pdf application/vnd.google-apps.script: application/vnd.google-apps.script+json application/vnd.google-apps.spreadsheet: text/csv Authentication By default, this processor uses Google Application Default Credentials (ADC) to authenticate with Google APIs. To set up local ADC authentication, use the following gcloud commands: Authenticate using Application Default Credentials and grant read-only access to your Google Drive. gcloud auth application-default login --scopes='openid,https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/drive.readonly' Assign a quota project to the Application Default Credentials when using a user account. gcloud auth application-default set-quota-project <project-id> Replace the <project-id> placeholder with your Google Cloud project ID To use a service account instead, create a JSON key for the account and add it to the credentials_json field. To access Google Drive files using a service account, either: Explicitly share files with the service account’s email account Use domain-wide delegation to share all files within a Google Workspace Fields credentials_json The JSON key for your service account (optional). If left empty, Application Default Credentials are used. For more details, see Authentication. This field contains sensitive information that usually shouldn’t be added to a configuration directly. For more information, see Manage Secrets before adding it to your configuration. Type: string Default: "" file_id The ID of the file to download from Google Drive. This field supports interpolation functions. Type: string Default: "" mime_type The MIME type of the file for download. This field supports interpolation functions. Type: string Default: "" export_mime_types Maps Google Drive MIME types to supported file export formats. The MIME type is the key, and the export format is the value. Type: object Default: {"application/vnd.google-apps.document":"text/markdown","application/vnd.google-apps.drawing":"image/png","application/vnd.google-apps.presentation":"application/pdf","application/vnd.google-apps.script":"application/vnd.google-apps.script+json","application/vnd.google-apps.spreadsheet":"text/csv"} # Examples export_mime_types: application/vnd.google-apps.document: application/pdf application/vnd.google-apps.drawing: application/pdf application/vnd.google-apps.presentation: application/pdf application/vnd.google-apps.spreadsheet: application/pdf export_mime_types: application/vnd.google-apps.document: application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.google-apps.drawing: image/svg+xml application/vnd.google-apps.presentation: application/vnd.openxmlformats-officedocument.presentationml.presentation application/vnd.google-apps.spreadsheet: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Example This example downloads all files from a Google Drive. input: stdin: {} pipeline: processors: - google_drive_search: query: "${!content().string()}" - mutation: 'meta path = this.name' - google_drive_download: file_id: "${!this.id}" mime_type: "${!this.mimeType}" output: file: path: "${!@path}" codec: all-bytes Back to top × Simple online edits For simple changes, such as fixing a typo, you can edit the content directly on GitHub. Edit on GitHub Or, open an issue to let us know about something that you want us to change. Open an issue Contribution guide For extensive content updates, or if you prefer to work locally, read our contribution guide . Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback group_add Make a contribution 🎉 Thanks for your feedback! gcp_vertex_ai_embeddings google_drive_list_labels