|
45 | 45 | * calls that map to API methods. Sample code to get started:
|
46 | 46 | *
|
47 | 47 | * <pre>{@code
|
48 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
49 |
| - * // It may require modifications to work in your environment. |
| 48 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 49 | + * // It will require modifications to work: |
| 50 | + * // - It may require correct/in-range values for request initialization. |
| 51 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 52 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
50 | 53 | * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
|
51 | 54 | * QueryTimeSeriesRequest request =
|
52 | 55 | * QueryTimeSeriesRequest.newBuilder()
|
|
90 | 93 | * <p>To customize credentials:
|
91 | 94 | *
|
92 | 95 | * <pre>{@code
|
93 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
94 |
| - * // It may require modifications to work in your environment. |
| 96 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 97 | + * // It will require modifications to work: |
| 98 | + * // - It may require correct/in-range values for request initialization. |
| 99 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 100 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
95 | 101 | * QueryServiceSettings queryServiceSettings =
|
96 | 102 | * QueryServiceSettings.newBuilder()
|
97 | 103 | * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
|
|
102 | 108 | * <p>To customize the endpoint:
|
103 | 109 | *
|
104 | 110 | * <pre>{@code
|
105 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
106 |
| - * // It may require modifications to work in your environment. |
| 111 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 112 | + * // It will require modifications to work: |
| 113 | + * // - It may require correct/in-range values for request initialization. |
| 114 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 115 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
107 | 116 | * QueryServiceSettings queryServiceSettings =
|
108 | 117 | * QueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
|
109 | 118 | * QueryServiceClient queryServiceClient = QueryServiceClient.create(queryServiceSettings);
|
@@ -167,8 +176,11 @@ public QueryServiceStub getStub() {
|
167 | 176 | * <p>Sample code:
|
168 | 177 | *
|
169 | 178 | * <pre>{@code
|
170 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
171 |
| - * // It may require modifications to work in your environment. |
| 179 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 180 | + * // It will require modifications to work: |
| 181 | + * // - It may require correct/in-range values for request initialization. |
| 182 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 183 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
172 | 184 | * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
|
173 | 185 | * QueryTimeSeriesRequest request =
|
174 | 186 | * QueryTimeSeriesRequest.newBuilder()
|
@@ -197,8 +209,11 @@ public final QueryTimeSeriesPagedResponse queryTimeSeries(QueryTimeSeriesRequest
|
197 | 209 | * <p>Sample code:
|
198 | 210 | *
|
199 | 211 | * <pre>{@code
|
200 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
201 |
| - * // It may require modifications to work in your environment. |
| 212 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 213 | + * // It will require modifications to work: |
| 214 | + * // - It may require correct/in-range values for request initialization. |
| 215 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 216 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
202 | 217 | * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
|
203 | 218 | * QueryTimeSeriesRequest request =
|
204 | 219 | * QueryTimeSeriesRequest.newBuilder()
|
@@ -228,8 +243,11 @@ public final QueryTimeSeriesPagedResponse queryTimeSeries(QueryTimeSeriesRequest
|
228 | 243 | * <p>Sample code:
|
229 | 244 | *
|
230 | 245 | * <pre>{@code
|
231 |
| - * // This snippet has been automatically generated for illustrative purposes only. |
232 |
| - * // It may require modifications to work in your environment. |
| 246 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 247 | + * // It will require modifications to work: |
| 248 | + * // - It may require correct/in-range values for request initialization. |
| 249 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 250 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
233 | 251 | * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
|
234 | 252 | * QueryTimeSeriesRequest request =
|
235 | 253 | * QueryTimeSeriesRequest.newBuilder()
|
|
0 commit comments