[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[],[],null,["# visionai::ServiceConnectionOptions Struct Reference\n\nvisionai::ServiceConnectionOptions\n==================================\n\n`#include \u003cstreams.h\u003e`\n\n[ServiceConnectionOptions](/vision-ai/docs/reference/cpp/struct/visionai/service-connection-options#structvisionai_1_1_service_connection_options) is a structure that contains options to connect to the Vertex AI Vision service.\n\nSummary\n-------\n\nFor example, if you have a Vision AI cluster created at\n\n\n`visionai.googleapis.com/projects/my-project/locations/us-central1-a/clusters/my-cluster`\n\nthen you will set the following:\n\n\n```c++\nservice_endpoint = \"visionai.googleapis.com\"\nproject_id = \"my-project\"\nlocation_id = \"us-central1-a\"\ncluster_id = \"my-cluster\"\n```\n\n\u003cbr /\u003e\n\nPublic attributes\n-----------------\n\n### cluster_id\n\n```c++\nstd::string visionai::ServiceConnectionOptions::cluster_id\n``` \nThe specific cluster-id of Vertex AI Vision.\n\nClusters are automatically created the first time you deploy a Vertex AI Vision application. \n\n### location_id\n\n```c++\nstd::string visionai::ServiceConnectionOptions::location_id\n``` \nThe Google Cloud location-id. \n\n### project_id\n\n```c++\nstd::string visionai::ServiceConnectionOptions::project_id\n``` \nThe Google Cloud project-id. \n\n### service_endpoint\n\n```c++\nstd::string visionai::ServiceConnectionOptions::service_endpoint\n``` \nThe service endpoint of Vertex AI Vision.\n\nMost commonly, this is simply visionai.googleapis.com."]]