Open birbbie96 opened 5 months ago
i want the result as json
That "HttpJson" client setting is to specify the underlying communication procotol. From library's API's perspective, you won't see the difference between the underlying gRPC or JSON. Consider the API is the result after JSON parsing was already performed.
Any luck on this? I am also facing similar problem.
First of all, I'm very new with this service google-cloud-discoveryengine. I trying to call https://discoveryengine.googleapis.com/v1 for vertex search with client lib from google cloud and i want the result as json, btw i always receive struct which is not json response. So i go to read this documentation https://cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/com.google.cloud.discoveryengine.v1.SearchServiceClient, they said that use
SearchServiceSettings searchServiceSettings = SearchServiceSettings.newHttpJsonBuilder().build(); but i still get struct response.
can u help me solve this problem? or tell me what i did wrong
this is my code
this is some part of my response
note* i try v1, v1beta, and v1alpha already
Java Version: java 22.0.1 Quarkus Version: 3.11.1
Thanks!