|  | 
| 66 | 66 | import com.google.spanner.admin.database.v1.GetDatabaseDdlResponse; | 
| 67 | 67 | import com.google.spanner.admin.database.v1.GetDatabaseRequest; | 
| 68 | 68 | import com.google.spanner.admin.database.v1.InstanceName; | 
|  | 69 | +import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationRequest; | 
|  | 70 | +import com.google.spanner.admin.database.v1.InternalUpdateGraphOperationResponse; | 
| 69 | 71 | import com.google.spanner.admin.database.v1.ListBackupOperationsRequest; | 
| 70 | 72 | import com.google.spanner.admin.database.v1.ListBackupOperationsResponse; | 
| 71 | 73 | import com.google.spanner.admin.database.v1.ListBackupSchedulesRequest; | 
|  | 
| 640 | 642 |  *      </ul> | 
| 641 | 643 |  *       </td> | 
| 642 | 644 |  *    </tr> | 
|  | 645 | + *    <tr> | 
|  | 646 | + *      <td><p> InternalUpdateGraphOperation</td> | 
|  | 647 | + *      <td><p> This is an internal API called by Spanner Graph jobs. You should never need to call this API directly.</td> | 
|  | 648 | + *      <td> | 
|  | 649 | + *      <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> | 
|  | 650 | + *      <ul> | 
|  | 651 | + *           <li><p> internalUpdateGraphOperation(InternalUpdateGraphOperationRequest request) | 
|  | 652 | + *      </ul> | 
|  | 653 | + *      <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p> | 
|  | 654 | + *      <ul> | 
|  | 655 | + *           <li><p> internalUpdateGraphOperation(DatabaseName database, String operationId) | 
|  | 656 | + *           <li><p> internalUpdateGraphOperation(String database, String operationId) | 
|  | 657 | + *      </ul> | 
|  | 658 | + *      <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p> | 
|  | 659 | + *      <ul> | 
|  | 660 | + *           <li><p> internalUpdateGraphOperationCallable() | 
|  | 661 | + *      </ul> | 
|  | 662 | + *       </td> | 
|  | 663 | + *    </tr> | 
| 643 | 664 |  *  </table> | 
| 644 | 665 |  * | 
| 645 | 666 |  * <p>See the individual methods for example code. | 
| @@ -5119,6 +5140,146 @@ public final ListBackupSchedulesPagedResponse listBackupSchedules( | 
| 5119 | 5140 |     return stub.listBackupSchedulesCallable(); | 
| 5120 | 5141 |   } | 
| 5121 | 5142 | 
 | 
|  | 5143 | +  // AUTO-GENERATED DOCUMENTATION AND METHOD. | 
|  | 5144 | +  /** | 
|  | 5145 | +   * This is an internal API called by Spanner Graph jobs. You should never need to call this API | 
|  | 5146 | +   * directly. | 
|  | 5147 | +   * | 
|  | 5148 | +   * <p>Sample code: | 
|  | 5149 | +   * | 
|  | 5150 | +   * <pre>{@code | 
|  | 5151 | +   * // This snippet has been automatically generated and should be regarded as a code template only. | 
|  | 5152 | +   * // It will require modifications to work: | 
|  | 5153 | +   * // - It may require correct/in-range values for request initialization. | 
|  | 5154 | +   * // - It may require specifying regional endpoints when creating the service client as shown in | 
|  | 5155 | +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | 
|  | 5156 | +   * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | 
|  | 5157 | +   *   DatabaseName database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]"); | 
|  | 5158 | +   *   String operationId = "operationId129704162"; | 
|  | 5159 | +   *   InternalUpdateGraphOperationResponse response = | 
|  | 5160 | +   *       databaseAdminClient.internalUpdateGraphOperation(database, operationId); | 
|  | 5161 | +   * } | 
|  | 5162 | +   * }</pre> | 
|  | 5163 | +   * | 
|  | 5164 | +   * @param database Internal field, do not use directly. | 
|  | 5165 | +   * @param operationId Internal field, do not use directly. | 
|  | 5166 | +   * @throws com.google.api.gax.rpc.ApiException if the remote call fails | 
|  | 5167 | +   */ | 
|  | 5168 | +  public final InternalUpdateGraphOperationResponse internalUpdateGraphOperation( | 
|  | 5169 | +      DatabaseName database, String operationId) { | 
|  | 5170 | +    InternalUpdateGraphOperationRequest request = | 
|  | 5171 | +        InternalUpdateGraphOperationRequest.newBuilder() | 
|  | 5172 | +            .setDatabase(database == null ? null : database.toString()) | 
|  | 5173 | +            .setOperationId(operationId) | 
|  | 5174 | +            .build(); | 
|  | 5175 | +    return internalUpdateGraphOperation(request); | 
|  | 5176 | +  } | 
|  | 5177 | + | 
|  | 5178 | +  // AUTO-GENERATED DOCUMENTATION AND METHOD. | 
|  | 5179 | +  /** | 
|  | 5180 | +   * This is an internal API called by Spanner Graph jobs. You should never need to call this API | 
|  | 5181 | +   * directly. | 
|  | 5182 | +   * | 
|  | 5183 | +   * <p>Sample code: | 
|  | 5184 | +   * | 
|  | 5185 | +   * <pre>{@code | 
|  | 5186 | +   * // This snippet has been automatically generated and should be regarded as a code template only. | 
|  | 5187 | +   * // It will require modifications to work: | 
|  | 5188 | +   * // - It may require correct/in-range values for request initialization. | 
|  | 5189 | +   * // - It may require specifying regional endpoints when creating the service client as shown in | 
|  | 5190 | +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | 
|  | 5191 | +   * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | 
|  | 5192 | +   *   String database = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString(); | 
|  | 5193 | +   *   String operationId = "operationId129704162"; | 
|  | 5194 | +   *   InternalUpdateGraphOperationResponse response = | 
|  | 5195 | +   *       databaseAdminClient.internalUpdateGraphOperation(database, operationId); | 
|  | 5196 | +   * } | 
|  | 5197 | +   * }</pre> | 
|  | 5198 | +   * | 
|  | 5199 | +   * @param database Internal field, do not use directly. | 
|  | 5200 | +   * @param operationId Internal field, do not use directly. | 
|  | 5201 | +   * @throws com.google.api.gax.rpc.ApiException if the remote call fails | 
|  | 5202 | +   */ | 
|  | 5203 | +  public final InternalUpdateGraphOperationResponse internalUpdateGraphOperation( | 
|  | 5204 | +      String database, String operationId) { | 
|  | 5205 | +    InternalUpdateGraphOperationRequest request = | 
|  | 5206 | +        InternalUpdateGraphOperationRequest.newBuilder() | 
|  | 5207 | +            .setDatabase(database) | 
|  | 5208 | +            .setOperationId(operationId) | 
|  | 5209 | +            .build(); | 
|  | 5210 | +    return internalUpdateGraphOperation(request); | 
|  | 5211 | +  } | 
|  | 5212 | + | 
|  | 5213 | +  // AUTO-GENERATED DOCUMENTATION AND METHOD. | 
|  | 5214 | +  /** | 
|  | 5215 | +   * This is an internal API called by Spanner Graph jobs. You should never need to call this API | 
|  | 5216 | +   * directly. | 
|  | 5217 | +   * | 
|  | 5218 | +   * <p>Sample code: | 
|  | 5219 | +   * | 
|  | 5220 | +   * <pre>{@code | 
|  | 5221 | +   * // This snippet has been automatically generated and should be regarded as a code template only. | 
|  | 5222 | +   * // It will require modifications to work: | 
|  | 5223 | +   * // - It may require correct/in-range values for request initialization. | 
|  | 5224 | +   * // - It may require specifying regional endpoints when creating the service client as shown in | 
|  | 5225 | +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | 
|  | 5226 | +   * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | 
|  | 5227 | +   *   InternalUpdateGraphOperationRequest request = | 
|  | 5228 | +   *       InternalUpdateGraphOperationRequest.newBuilder() | 
|  | 5229 | +   *           .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) | 
|  | 5230 | +   *           .setOperationId("operationId129704162") | 
|  | 5231 | +   *           .setVmIdentityToken("vmIdentityToken-417652124") | 
|  | 5232 | +   *           .setProgress(-1001078227) | 
|  | 5233 | +   *           .setStatus(Status.newBuilder().build()) | 
|  | 5234 | +   *           .build(); | 
|  | 5235 | +   *   InternalUpdateGraphOperationResponse response = | 
|  | 5236 | +   *       databaseAdminClient.internalUpdateGraphOperation(request); | 
|  | 5237 | +   * } | 
|  | 5238 | +   * }</pre> | 
|  | 5239 | +   * | 
|  | 5240 | +   * @param request The request object containing all of the parameters for the API call. | 
|  | 5241 | +   * @throws com.google.api.gax.rpc.ApiException if the remote call fails | 
|  | 5242 | +   */ | 
|  | 5243 | +  public final InternalUpdateGraphOperationResponse internalUpdateGraphOperation( | 
|  | 5244 | +      InternalUpdateGraphOperationRequest request) { | 
|  | 5245 | +    return internalUpdateGraphOperationCallable().call(request); | 
|  | 5246 | +  } | 
|  | 5247 | + | 
|  | 5248 | +  // AUTO-GENERATED DOCUMENTATION AND METHOD. | 
|  | 5249 | +  /** | 
|  | 5250 | +   * This is an internal API called by Spanner Graph jobs. You should never need to call this API | 
|  | 5251 | +   * directly. | 
|  | 5252 | +   * | 
|  | 5253 | +   * <p>Sample code: | 
|  | 5254 | +   * | 
|  | 5255 | +   * <pre>{@code | 
|  | 5256 | +   * // This snippet has been automatically generated and should be regarded as a code template only. | 
|  | 5257 | +   * // It will require modifications to work: | 
|  | 5258 | +   * // - It may require correct/in-range values for request initialization. | 
|  | 5259 | +   * // - It may require specifying regional endpoints when creating the service client as shown in | 
|  | 5260 | +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library | 
|  | 5261 | +   * try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) { | 
|  | 5262 | +   *   InternalUpdateGraphOperationRequest request = | 
|  | 5263 | +   *       InternalUpdateGraphOperationRequest.newBuilder() | 
|  | 5264 | +   *           .setDatabase(DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]").toString()) | 
|  | 5265 | +   *           .setOperationId("operationId129704162") | 
|  | 5266 | +   *           .setVmIdentityToken("vmIdentityToken-417652124") | 
|  | 5267 | +   *           .setProgress(-1001078227) | 
|  | 5268 | +   *           .setStatus(Status.newBuilder().build()) | 
|  | 5269 | +   *           .build(); | 
|  | 5270 | +   *   ApiFuture<InternalUpdateGraphOperationResponse> future = | 
|  | 5271 | +   *       databaseAdminClient.internalUpdateGraphOperationCallable().futureCall(request); | 
|  | 5272 | +   *   // Do something. | 
|  | 5273 | +   *   InternalUpdateGraphOperationResponse response = future.get(); | 
|  | 5274 | +   * } | 
|  | 5275 | +   * }</pre> | 
|  | 5276 | +   */ | 
|  | 5277 | +  public final UnaryCallable< | 
|  | 5278 | +          InternalUpdateGraphOperationRequest, InternalUpdateGraphOperationResponse> | 
|  | 5279 | +      internalUpdateGraphOperationCallable() { | 
|  | 5280 | +    return stub.internalUpdateGraphOperationCallable(); | 
|  | 5281 | +  } | 
|  | 5282 | + | 
| 5122 | 5283 |   @Override | 
| 5123 | 5284 |   public final void close() { | 
| 5124 | 5285 |     stub.close(); | 
|  | 
0 commit comments