Uploader
Stay organized with collections
Save and categorize content based on your preferences.
This class reads in a json file to upload all the requests to the Cloud Search Indexing API.
java
-Dpayload={your json file contains all the request} \
-Dapi.serviceAccountPrivateKeyFile={service account private key file} \
-DrootUrl=https://www.googleapis.com/ \
-jar cloudsearch-uploader-{version}.jar
payload is the json file which contains the source Id and all the requests related to it.
api.serviceAccountPrivateKeyFile is the file contains private key information. If it is not a
json file then api.serviceAccountId is compulsory.
Optional command-line properties:
-DcontentUpload.requestTimeout=<seconds>
-DcontentUpload.connectorName=customConnectorName
-DcontentUpload.enableDebugging=false
Only set enableDebugging to true if asked by Google to help with debugging.
Detailed schema of request json file can be found at UploadRequest
.
Inherited Method Summary
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
public
static
void
main
(String[] args)
Throws
IOException |
|
GeneralSecurityException |
|
InterruptedException |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-18 UTC.
[null,null,["Last updated 2025-03-18 UTC."],[],[],null,["# Uploader\n\npublic class **Uploader** extends Object \nThis class reads in a json file to upload all the requests to the Cloud Search Indexing API.\n\n```\n java\n -Dpayload={your json file contains all the request} \\\n -Dapi.serviceAccountPrivateKeyFile={service account private key file} \\\n -DrootUrl=https://www.googleapis.com/ \\\n -jar cloudsearch-uploader-{version}.jar\n \n```\npayload is the json file which contains the source Id and all the requests related to it. api.serviceAccountPrivateKeyFile is the file contains private key information. If it is not a json file then api.serviceAccountId is compulsory.\n\n\nOptional command-line properties: \n\n```\n -DcontentUpload.requestTimeout=\u003cseconds\u003e\n -DcontentUpload.connectorName=customConnectorName\n -DcontentUpload.enableDebugging=false\n \n```\n**Only set enableDebugging to true if asked by Google to help with debugging.**\n\n\nDetailed schema of request json file can be found at [UploadRequest](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/indexing/util/UploadRequest). \n\n### Public Method Summary\n\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static void | [main](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/indexing/util/Uploader#main(java.lang.String[]))(String\\[\\] args) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static void\n**main**\n(String\\[\\] args)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| args | |\n|------|---|\n\n##### Throws\n\n| IOException | |\n| GeneralSecurityException | |\n| InterruptedException | |\n|--------------------------|---|"]]