public class
Uploader
extends Object
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
Optional command-line properties:
-DcontentUpload.requestTimeout=<seconds> -DcontentUpload.connectorName=customConnectorName -DcontentUpload.enableDebugging=false
Detailed schema of request json file can be found at UploadRequest
.
Public Method Summary
static void |
main(String[] args)
|
Inherited Method Summary
Public Methods
public static void main (String[] args)
Parameters
args |
---|
Throws
IOException | |
---|---|
GeneralSecurityException | |
InterruptedException |