Questions tagged [spring-cloud-gcp]

Ask questions about the Spring Cloud GCP project.

Integrations between Google Cloud Platform APIs and Spring.

The Spring Cloud GCP project makes the Spring Framework a first-class citizen of Google Cloud Platform (GCP).

Spring Cloud GCP lets you leverage the power and simplicity of the Spring Framework to:

  • Publish and subscribe to Google Cloud Pub/Sub topics

  • Configure Spring JDBC with a few properties to use Google Cloud SQL

  • Map objects, relationships, and collections with Spring Data Cloud Spanner and Spring Data Cloud Datastore

  • Write and read from Spring Resources backed up by Google Cloud Storage

  • Exchange messages with Spring Integration using Google Cloud Pub/Sub on the background

  • Trace the execution of your app with Spring Cloud Sleuth and Google Stackdriver Trace

  • Configure your app with Spring Cloud Config, backed up by the Google Runtime Configuration API

  • Consume and produce Google Cloud Storage data via Spring Integration GCS Channel Adapters

  • Use Spring Security via Google Cloud IAP

  • Analyze your images for text, objects, and other content with Google Cloud Vision

147 questions
0
votes
1 answer

Spring Firestore optimistic lock (data versioning)

I'm looking for the way to enable Optimistic locking for Firestore DB document, but seems @Version annotation doesn't work. Currently I'm using spring-cloud-gcp-starter-data-firestore lib for extending FirestoreReactiveRepository interface…
0
votes
1 answer

GCP Datastore Querying on nested entity references (entityB.name)

I am having trouble figuring out if GCP Datastore supports querying nested properties of an entity. My use case right now is like so: Module -> Application Module Application @Entity class Module { Long id; @Reference Applicaiton…
0
votes
1 answer

Persistence guarantee for publishing to Pub/Sub via Spring Cloud Stream

I'm using Spring Cloud Stream to send and receive messages from Google Pub/Sub topics and have a question regarding publishing. If I have an @Output MessageChanel and I call channel.send(message) and the call returns normally (no Exceptions), am I…
0
votes
2 answers

GCP's SSH terminal not working after stopping and starting vm instance

I am using gcp vm machine instance N1-standard 8V-30GB and N1-standard 4V-15GB os-Debian version - Debian GNU/Linux 10(buster) this issue i am facing from last 1 month. public access permission denied is one of message i am seeing while trying to…
0
votes
1 answer

How to override one of the default Spanner converters in Spring Cloud GCP

I use spring-cloud-gcp-data-spanner for fetching data from GCP Spanner. One of my tables contains the TIMESTAMP column, which contains date-time in UTC. Spring Data Cloud Data already has some default Spanner converters for some custom types. My…
0
votes
2 answers

Google Datastore Entity does not return ID. Entity ID is null

I have a product entity which is extended from DataType Entity. Like this: @ Entity(name = "Product") @Getter @Setter public class ProductEntity extends DataTypeEntity{ public Date created; String name; String url; …
0
votes
1 answer

Spring cloud gcp DatastoreRepository intialize without autoconfig or annotations

I am trying to use gcp datastore sample but I would like initialize repository manually. Something like SimpleJpaRepository in another SO. Is it possible to initialize DatastoreRepository ? Example with JPA repository one can simply do :…
0
votes
1 answer

Connecting to Cloud SQL is failing

I am trying to connect to GCP cloud sql using service account which has cloud editor role.I am following the example given here Spring cloud GCP postgres example using service account my application.properties file # Set to the Postgres user…
0
votes
0 answers

Integration of S3 storage with Jackrabbit Oak implementation application deployed on GCP

I am working on Spring boot application(Content Management System) which will store multiple files in amazon-s3 repository with the help of jack rabbit oak node structure implementation and all node metadata will get store in PostgreSQL 10.4 db. I…
0
votes
1 answer

is there common BOM file for spring-cloud and spring-cloud-gcp?

Currently in my project I import 2 bom dependencies(for spring cloud and for spring cloud-gcp) inside my build.gradle: dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:Greenwich.SR3" …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

spring-cloud-gcp-starter-bigquery ignores spring.cloud.gcp.credentials.location from property file

I am playing with spring gcp project. My first example with GCP bucket works properly and uses correct google account which I pointed in the property file: spring.cloud.gcp.credentials.location=file:secret.json On the next step I tried to repeat…
0
votes
0 answers

How to use BigTable from the spring boot application?

I was investigating "What's the difference between BigQuery and BigTable?". And found that BigTable is like traditional database. Also I found that for current moment Spring supports BigQuery but doesn't support BigTable. It is a bit surprising for…
0
votes
1 answer

Get all the collection in document

I have following structure in firebase data Orders -> OrderID -> LocationHistory -> LocationHistoryID -> FieldsData Orders and LocationHistory are constant whereas OrderID ,LocationHistoryID are document ID I want to know if it is possible to…
Haider
  • 615
  • 1
  • 16
  • 38
0
votes
1 answer

How to achieve that each node from the cluster accepts message from the Google pub/sub topic?

I have cluster application which listen messages from tge subscription So I have 1 topic and 1 subsctiption. Following schema works as load balancer so each node in the cluster accepts unique messages. like this producer produces A, B, C, D, E Lets…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

GAE - Class not found: Caused by: java.lang.ClassNotFoundExceptionAppIdentityCredential$AppEngineCredentialWrapper

I'm trying to launch a simple Java (Maven) Spring Boot application on GAE that communicates with an PostrgreSql server (also on the Cloud Platform) however I keep running into missing dependencies. I had these dependencies in my pom: …
1 2 3
9
10