Package com.google.cloud.datastore
Class DatastoreOptions
- java.lang.Object
-
- com.google.cloud.ServiceOptions<Datastore,DatastoreOptions>
-
- com.google.cloud.datastore.DatastoreOptions
-
- All Implemented Interfaces:
Serializable
public class DatastoreOptions extends com.google.cloud.ServiceOptions<Datastore,DatastoreOptions>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DatastoreOptions.Builder
static class
DatastoreOptions.DefaultDatastoreFactory
static class
DatastoreOptions.DefaultDatastoreRpcFactory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDatabaseId()
protected DatastoreRpc
getDatastoreRpcV1()
protected String
getDefaultHost()
static com.google.cloud.http.HttpTransportOptions
getDefaultHttpTransportOptions()
static DatastoreOptions
getDefaultInstance()
Returns a defaultDatastoreOptions
instance.protected String
getDefaultProject()
String
getNamespace()
Returns the default namespace to be used by the datastore service.protected Set<String>
getScopes()
int
hashCode()
static DatastoreOptions.Builder
newBuilder()
DatastoreOptions.Builder
toBuilder()
-
Methods inherited from class com.google.cloud.ServiceOptions
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClientLibToken, getClock, getCredentials, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getLibraryVersion, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getQuotaProjectId, getRetrySettings, getRpc, getScopedCredentials, getService, getServiceAccountProjectId, getTransportOptions, getUserAgent, newInstance, projectIdRequired, shouldRefreshRpc, shouldRefreshService
-
-
-
-
Method Detail
-
getDefaultHost
protected String getDefaultHost()
- Overrides:
getDefaultHost
in classcom.google.cloud.ServiceOptions<Datastore,DatastoreOptions>
-
getDefaultProject
protected String getDefaultProject()
- Overrides:
getDefaultProject
in classcom.google.cloud.ServiceOptions<Datastore,DatastoreOptions>
-
getDefaultHttpTransportOptions
public static com.google.cloud.http.HttpTransportOptions getDefaultHttpTransportOptions()
-
getNamespace
public String getNamespace()
Returns the default namespace to be used by the datastore service.
-
getDatabaseId
@BetaApi public String getDatabaseId()
-
getDefaultInstance
public static DatastoreOptions getDefaultInstance()
Returns a defaultDatastoreOptions
instance.
-
getScopes
protected Set<String> getScopes()
- Specified by:
getScopes
in classcom.google.cloud.ServiceOptions<Datastore,DatastoreOptions>
-
getDatastoreRpcV1
protected DatastoreRpc getDatastoreRpcV1()
-
toBuilder
public DatastoreOptions.Builder toBuilder()
- Specified by:
toBuilder
in classcom.google.cloud.ServiceOptions<Datastore,DatastoreOptions>
-
newBuilder
public static DatastoreOptions.Builder newBuilder()
-
-