Questions tagged [gcloud-java]

gcloud-java is a Google Cloud Platform client library for Java applications.

Google Cloud Client Library for Java - an idiomatic, intuitive, and natural way for Java developers to integrate with Google Cloud Platform services, like Cloud Datastore and Cloud Storage.

35 questions
1
vote
0 answers

Retrieve the most recent file uploaded before a certain date from Google Cloud Storage

I'm trying to retrieve the most recent file uploaded before a certain time in a versioning-enabled GCS bucket. For example: $ gsutil ls -la gs://my-versioned-bucket/ 7 2016-02-28T23:59:27Z gs://my-versioned-bucket/file#1456707567816000 …
dimo414
  • 47,227
  • 18
  • 148
  • 244
1
vote
1 answer

Get archived versions from Google Cloud Storage

How do I get a list of archived versions of a file via gcloud-java? I don't see an option in Bucket.list(), is there somewhere else I should be looking?
dimo414
  • 47,227
  • 18
  • 148
  • 244
1
vote
1 answer

Image or Pdf File download from Gcloud Storage is corrupted

I am using file downloaded from Gcloud storage as attachment to Mandrill API for sending as an attachment in email. The problem is it's only working for Text file, but for Image or Pdf, the attachment is corrupted. Following Code is for downloading…
pradex
  • 328
  • 4
  • 18
0
votes
1 answer

Connect Java Google AppEngine Local Standard Server to Cloud DB | appengine-api-1.0-sdk-1.9.84.jar | IntelliJ & Cloud Code

EDIT2: I have managed to get past the GlobalDatastoreConfig has already been set error. I managed to pinpoint all the locations that were getting called before the init function. They were in static space in some weird files. I have now pointed ALL…
0
votes
0 answers

From remote machine getting connection refused for GCP Bigquery

I am running a sample code from google to get a simple select query. Which is working fine in my local but from my k8s environment I am getting the below error Exception in thread "main" com.google.cloud.bigquery.BigQueryException: Error getting…
0
votes
2 answers

Google BigQuery Proxy settings in JAVA SDK

I am trying to use Google BigQuery SDK to do a query. It works fine on my local but in a VM it gets timed out all the time. My best guess is the proxy settings I have tried following way to set it but SDK client doesn't seem to pick it up …
Pritbh
  • 120
  • 1
  • 12
0
votes
1 answer

Can someone help me add a new column in Google cloud Search Index using Java

I tried adding a new column to an existing search index but it is throwing an error, the error as stated below:- Field docname is present 0 times; expected 1 java.lang.IllegalArgumentException: Field docname is present 0 times; expected 1 I can…
0
votes
1 answer

Using gcloud-java-datastore in Android app

I'm trying to use the gcloud-java-datastore library in an Android app project. However, I keep running into the following error when trying to build: Execution failed for task ':app:transformClassesWithJarMergingForDebug'. …
user58094
  • 53
  • 3
0
votes
1 answer

Datastore create child entities with gcloud-java

How can I create an entity with a parent (which I created earlier)? I didn't find anything in the docs which worked for me. Please provide an example of code of how to create an entity with a parent.
Luis Kleinwort
  • 655
  • 5
  • 10
0
votes
0 answers

Why are Transactions not working as expected with Google Cloud Datastore using gcloud-java API?

I'm using the gcloud-java-datastore API (v0.2.3) to work with Google Cloud Datastore. Trying to use transactions to prevent simultaneous updates to a root entity I just can't seem to get the transactions work the way I think they should. Perhaps my…
Sai Pullabhotla
  • 2,207
  • 17
  • 17
0
votes
1 answer

how to deploy java web project using ant on gcloud vm instance

I have searched out for gcloud doc for java web project deployment but I got only maven project doc in result. Project already created in google cloud console and google sdk also installed.
0
votes
1 answer

com.google.gcloud.bigquery.BigQueryException: Error getting access token for service account:

I am having a program will involves frequently accessing BigQuery using com.google.gcloud:gcloudjava:0.1.4 with default BigQueryOptions configuration However sometime I am getting error with stacktrace as follows Caused by: java.io.IOException:…
Xinwei Liu
  • 333
  • 6
  • 15
0
votes
1 answer

gcloud-java datastore performance Issue

I am developing multiplayer game backend and I have decided to use Google Container Engine to install my docker image. As datastore, Google Datastore sounds fine but I have run some performance tests over it, it doesn't look promising. I am…
0
votes
2 answers

gcloud-java authentication datastore (upgrade to v1beta3 in 0.1.7/0.2.0)

I had a java GAE application running using gcloud-java 0.1.4 for some time and wanted to upgrade to gcloud-java 0.1.7/0.2.0, as we are experiences several 404s etc. (another problem). We are using gcloud as we connect to a datastore instance in…
0
votes
0 answers

Model datastore application

I am looking how to create an efficient model which will satisfy the requirements I put below. I have tried using gcloud-node but have noticed it has limitations with read consistencies, references, etc. I would prefer to write this is nodejs, but…