You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename setters/getters/builders for core classes to meet proto conventions (#1341)
* Rename setters/getters/builders for core classes to meet proto conventions
* Update examples, snippets and READMEs to use renamed core getters/setters/builders
* Specify the environment variable `GOOGLE_CLOUD_PROJECT` to be your desired project ID.
100
100
* Set the project ID using the [Google Cloud SDK](https://cloud.google.com/sdk/?hl=en). To use the SDK, [download the SDK](https://cloud.google.com/sdk/?hl=en) if you haven't already, and set the project ID from the command line. For example:
@@ -128,18 +128,18 @@ Next, choose a method for authenticating API requests from within your project:
128
128
```
129
129
* Supply the JSON credentials file when building the service options. For example, this Storage object has the necessary permissions to interact with your Google Cloud Storage data:
* If running locally fordevelopment/testing, you can use Google Cloud SDK. Download the SDK if you haven't already, then login using the SDK (`gcloud auth login`incommand line). Be sure to set your project ID as described above.
137
137
* If you already have an OAuth2 access token, you can use it to authenticate (notice that in this case the access token will not be automatically refreshed):
@@ -99,12 +99,12 @@ You can test against a temporary local Datastore by following these steps:
99
99
You can test against a remote Datastore emulator as well. To do this, set the `DatastoreOptions` project endpoint to the hostname of the remote machine, like the example below.
.setProjectId("my-project-id") // must match project ID specified on remote machine
104
+
.setHost("http://<hostname of machine>:<port>")
105
+
.setAuthCredentials(AuthCredentials.noAuth())
106
106
.build();
107
-
Datastore localDatastore = options.service();
107
+
Datastore localDatastore = options.getService();
108
108
```
109
109
110
110
We recommend that you start the emulator on the remote machine using the [Google Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/beta/emulators/datastore/) from command line, as shown below:
@@ -135,7 +135,7 @@ You can test against an in-memory local DNS by following these steps:
135
135
For example:
136
136
137
137
```java
138
-
Dns dns =LocalDnsHelper.getOptions().service();
138
+
Dns dns =LocalDnsHelper.getOptions().getService();
139
139
```
140
140
141
141
3. Run your tests.
@@ -164,7 +164,7 @@ uses the `RemoteLoggingHelper` to create a metric.
0 commit comments