Stay organized with collections
Save and categorize content based on your preferences.
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
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["The `Uploader` class facilitates uploading requests to the Cloud Search Indexing API using a JSON payload."],["You need to provide the payload JSON file, service account private key file, and root URL as command-line arguments to run the Uploader."],["Optional configurations include request timeout, custom connector name, and debugging mode (use only when requested by Google)."],["The `UploadRequest` documentation offers a detailed schema for structuring the request JSON file."],["The main public method is `main`, which initiates the upload process, and may throw exceptions like `IOException`, `GeneralSecurityException`, or `InterruptedException`."]]],[]]