Send feedback
Class DatastoreOptions.Builder (2.18.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.18.5 keyboard_arrow_down
public static class DatastoreOptions.Builder
Constructors
Builder()
Builder(DatastoreOptions options)
public Builder(DatastoreOptions options)
Methods
build()
public DatastoreOptions build()
credential(Credential credential)
public DatastoreOptions.Builder credential(Credential credential)
Sets the Google APIs Credential used to access Cloud Datastore.
Parameter Name Description credential
com.google.api.client.auth.oauth2.Credential
host(String host)
public DatastoreOptions.Builder host(String host)
Sets the host used to access Cloud Datastore. To connect to the Cloud Datastore Emulator, use
#localHost instead.
Parameter Name Description host
String
initializer(HttpRequestInitializer initializer)
public DatastoreOptions.Builder initializer(HttpRequestInitializer initializer)
Sets the (optional) initializer to run on HTTP requests to Cloud Datastore.
Parameter Name Description initializer
com.google.api.client.http.HttpRequestInitializer
localHost(String localHost)
public DatastoreOptions.Builder localHost(String localHost)
Configures the client to access Cloud Datastore on a local host (typically a Cloud Datastore
Emulator instance). Call this method also configures the client not to attach credentials to
requests.
Parameter Name Description localHost
String
projectEndpoint(String projectEndpoint) (deprecated)
public DatastoreOptions.Builder projectEndpoint(String projectEndpoint)
Parameter Name Description projectEndpoint
String
projectId(String projectId)
public DatastoreOptions.Builder projectId(String projectId)
Sets the project ID used to access Cloud Datastore.
Parameter Name Description projectId
String
transport(HttpTransport transport)
public DatastoreOptions.Builder transport(HttpTransport transport)
Sets the transport used to access Cloud Datastore.
Parameter Name Description transport
com.google.api.client.http.HttpTransport
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["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 2024-11-19 UTC."],[],[]]