Skip to content

Commit

Permalink
chore: update googleapis commit at Tue Jun 4 20:08:27 UTC 2024 (#10918)
Browse files Browse the repository at this point in the history
* chore: update googleapis commit at Tue Jun  4 20:08:27 UTC 2024

* chore: generate libraries at Tue Jun  4 20:11:44 UTC 2024
  • Loading branch information
cloud-java-bot authored Jun 5, 2024
1 parent 706b490 commit 2c46a48
Show file tree
Hide file tree
Showing 1,027 changed files with 191,233 additions and 14,917 deletions.
2 changes: 1 addition & 1 deletion generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gapic_generator_version: 2.40.1
protoc_version: '25.3'
googleapis_commitish: f49123a39efc18f0a20a2183629c62830725343c
googleapis_commitish: ede5e02ad747c9199a7953b222b85715e097189c
libraries_bom_version: 26.40.0
template_excludes:
- .github/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,24 @@
* </td>
* </tr>
* <tr>
* <td><p> UpdateDatasetVersion</td>
* <td><p> Updates a DatasetVersion.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateDatasetVersion(UpdateDatasetVersionRequest request)
* </ul>
* <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>
* <ul>
* <li><p> updateDatasetVersion(DatasetVersion datasetVersion, FieldMask updateMask)
* </ul>
* <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>
* <ul>
* <li><p> updateDatasetVersionCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DeleteDatasetVersion</td>
* <td><p> Deletes a Dataset version.</td>
* <td>
Expand Down Expand Up @@ -1741,6 +1759,101 @@ public final UnaryCallable<ExportDataRequest, Operation> exportDataCallable() {
return stub.createDatasetVersionCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a DatasetVersion.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* DatasetVersion datasetVersion = DatasetVersion.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
* DatasetVersion response =
* datasetServiceClient.updateDatasetVersion(datasetVersion, updateMask);
* }
* }</pre>
*
* @param datasetVersion Required. The DatasetVersion which replaces the resource on the server.
* @param updateMask Required. The update mask applies to the resource. For the `FieldMask`
* definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. Updatable fields:
* <p>&#42; `display_name`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DatasetVersion updateDatasetVersion(
DatasetVersion datasetVersion, FieldMask updateMask) {
UpdateDatasetVersionRequest request =
UpdateDatasetVersionRequest.newBuilder()
.setDatasetVersion(datasetVersion)
.setUpdateMask(updateMask)
.build();
return updateDatasetVersion(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a DatasetVersion.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* UpdateDatasetVersionRequest request =
* UpdateDatasetVersionRequest.newBuilder()
* .setDatasetVersion(DatasetVersion.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* DatasetVersion response = datasetServiceClient.updateDatasetVersion(request);
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DatasetVersion updateDatasetVersion(UpdateDatasetVersionRequest request) {
return updateDatasetVersionCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a DatasetVersion.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* UpdateDatasetVersionRequest request =
* UpdateDatasetVersionRequest.newBuilder()
* .setDatasetVersion(DatasetVersion.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<DatasetVersion> future =
* datasetServiceClient.updateDatasetVersionCallable().futureCall(request);
* // Do something.
* DatasetVersion response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<UpdateDatasetVersionRequest, DatasetVersion>
updateDatasetVersionCallable() {
return stub.updateDatasetVersionCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a Dataset version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ public UnaryCallSettings<CreateDatasetVersionRequest, Operation> createDatasetVe
return ((DatasetServiceStubSettings) getStubSettings()).createDatasetVersionOperationSettings();
}

/** Returns the object with the settings used for calls to updateDatasetVersion. */
public UnaryCallSettings<UpdateDatasetVersionRequest, DatasetVersion>
updateDatasetVersionSettings() {
return ((DatasetServiceStubSettings) getStubSettings()).updateDatasetVersionSettings();
}

/** Returns the object with the settings used for calls to deleteDatasetVersion. */
public UnaryCallSettings<DeleteDatasetVersionRequest, Operation> deleteDatasetVersionSettings() {
return ((DatasetServiceStubSettings) getStubSettings()).deleteDatasetVersionSettings();
Expand Down Expand Up @@ -443,6 +449,12 @@ public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSetting
return getStubSettingsBuilder().createDatasetVersionOperationSettings();
}

/** Returns the builder for the settings used for calls to updateDatasetVersion. */
public UnaryCallSettings.Builder<UpdateDatasetVersionRequest, DatasetVersion>
updateDatasetVersionSettings() {
return getStubSettingsBuilder().updateDatasetVersionSettings();
}

/** Returns the builder for the settings used for calls to deleteDatasetVersion. */
public UnaryCallSettings.Builder<DeleteDatasetVersionRequest, Operation>
deleteDatasetVersionSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import com.google.longrunning.Operation;
import com.google.longrunning.OperationsClient;
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -157,6 +158,24 @@
* </td>
* </tr>
* <tr>
* <td><p> UpdateNotebookRuntimeTemplate</td>
* <td><p> Updates a NotebookRuntimeTemplate.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateNotebookRuntimeTemplate(UpdateNotebookRuntimeTemplateRequest request)
* </ul>
* <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>
* <ul>
* <li><p> updateNotebookRuntimeTemplate(NotebookRuntimeTemplate notebookRuntimeTemplate, FieldMask updateMask)
* </ul>
* <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>
* <ul>
* <li><p> updateNotebookRuntimeTemplateCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> AssignNotebookRuntime</td>
* <td><p> Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.</td>
* <td>
Expand Down Expand Up @@ -1119,6 +1138,105 @@ public final OperationFuture<Empty, DeleteOperationMetadata> deleteNotebookRunti
return stub.deleteNotebookRuntimeTemplateCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a NotebookRuntimeTemplate.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* NotebookRuntimeTemplate notebookRuntimeTemplate =
* NotebookRuntimeTemplate.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
* NotebookRuntimeTemplate response =
* notebookServiceClient.updateNotebookRuntimeTemplate(notebookRuntimeTemplate, updateMask);
* }
* }</pre>
*
* @param notebookRuntimeTemplate Required. The NotebookRuntimeTemplate to update.
* @param updateMask Required. The update mask applies to the resource. For the `FieldMask`
* definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. Input format:
* `{paths: "${updated_filed}"}` Updatable fields:
* <p>&#42; `encryption_spec.kms_key_name`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate(
NotebookRuntimeTemplate notebookRuntimeTemplate, FieldMask updateMask) {
UpdateNotebookRuntimeTemplateRequest request =
UpdateNotebookRuntimeTemplateRequest.newBuilder()
.setNotebookRuntimeTemplate(notebookRuntimeTemplate)
.setUpdateMask(updateMask)
.build();
return updateNotebookRuntimeTemplate(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a NotebookRuntimeTemplate.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateNotebookRuntimeTemplateRequest request =
* UpdateNotebookRuntimeTemplateRequest.newBuilder()
* .setNotebookRuntimeTemplate(NotebookRuntimeTemplate.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* NotebookRuntimeTemplate response =
* notebookServiceClient.updateNotebookRuntimeTemplate(request);
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate(
UpdateNotebookRuntimeTemplateRequest request) {
return updateNotebookRuntimeTemplateCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a NotebookRuntimeTemplate.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
* UpdateNotebookRuntimeTemplateRequest request =
* UpdateNotebookRuntimeTemplateRequest.newBuilder()
* .setNotebookRuntimeTemplate(NotebookRuntimeTemplate.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture<NotebookRuntimeTemplate> future =
* notebookServiceClient.updateNotebookRuntimeTemplateCallable().futureCall(request);
* // Do something.
* NotebookRuntimeTemplate response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<UpdateNotebookRuntimeTemplateRequest, NotebookRuntimeTemplate>
updateNotebookRuntimeTemplateCallable() {
return stub.updateNotebookRuntimeTemplateCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ public class NotebookServiceSettings extends ClientSettings<NotebookServiceSetti
.deleteNotebookRuntimeTemplateOperationSettings();
}

/** Returns the object with the settings used for calls to updateNotebookRuntimeTemplate. */
public UnaryCallSettings<UpdateNotebookRuntimeTemplateRequest, NotebookRuntimeTemplate>
updateNotebookRuntimeTemplateSettings() {
return ((NotebookServiceStubSettings) getStubSettings())
.updateNotebookRuntimeTemplateSettings();
}

/** Returns the object with the settings used for calls to assignNotebookRuntime. */
public UnaryCallSettings<AssignNotebookRuntimeRequest, Operation>
assignNotebookRuntimeSettings() {
Expand Down Expand Up @@ -372,6 +379,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().deleteNotebookRuntimeTemplateOperationSettings();
}

/** Returns the builder for the settings used for calls to updateNotebookRuntimeTemplate. */
public UnaryCallSettings.Builder<UpdateNotebookRuntimeTemplateRequest, NotebookRuntimeTemplate>
updateNotebookRuntimeTemplateSettings() {
return getStubSettingsBuilder().updateNotebookRuntimeTemplateSettings();
}

/** Returns the builder for the settings used for calls to assignNotebookRuntime. */
public UnaryCallSettings.Builder<AssignNotebookRuntimeRequest, Operation>
assignNotebookRuntimeSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,7 @@ public final GenerateContentResponse generateContent(String model, List<Content>
* .addAllContents(new ArrayList<Content>())
* .setSystemInstruction(Content.newBuilder().build())
* .addAllTools(new ArrayList<Tool>())
* .setToolConfig(ToolConfig.newBuilder().build())
* .addAllSafetySettings(new ArrayList<SafetySetting>())
* .setGenerationConfig(GenerationConfig.newBuilder().build())
* .build();
Expand Down Expand Up @@ -1428,6 +1429,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ
* .addAllContents(new ArrayList<Content>())
* .setSystemInstruction(Content.newBuilder().build())
* .addAllTools(new ArrayList<Tool>())
* .setToolConfig(ToolConfig.newBuilder().build())
* .addAllSafetySettings(new ArrayList<SafetySetting>())
* .setGenerationConfig(GenerationConfig.newBuilder().build())
* .build();
Expand Down Expand Up @@ -1462,6 +1464,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ
* .addAllContents(new ArrayList<Content>())
* .setSystemInstruction(Content.newBuilder().build())
* .addAllTools(new ArrayList<Tool>())
* .setToolConfig(ToolConfig.newBuilder().build())
* .addAllSafetySettings(new ArrayList<SafetySetting>())
* .setGenerationConfig(GenerationConfig.newBuilder().build())
* .build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
},
"UpdateDataset": {
"methods": ["updateDataset", "updateDataset", "updateDatasetCallable"]
},
"UpdateDatasetVersion": {
"methods": ["updateDatasetVersion", "updateDatasetVersion", "updateDatasetVersionCallable"]
}
}
}
Expand Down Expand Up @@ -1057,6 +1060,9 @@
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
},
"UpdateNotebookRuntimeTemplate": {
"methods": ["updateNotebookRuntimeTemplate", "updateNotebookRuntimeTemplate", "updateNotebookRuntimeTemplateCallable"]
},
"UpgradeNotebookRuntime": {
"methods": ["upgradeNotebookRuntimeAsync", "upgradeNotebookRuntimeAsync", "upgradeNotebookRuntimeAsync", "upgradeNotebookRuntimeOperationCallable", "upgradeNotebookRuntimeCallable"]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
import com.google.cloud.aiplatform.v1.SearchDataItemsRequest;
import com.google.cloud.aiplatform.v1.SearchDataItemsResponse;
import com.google.cloud.aiplatform.v1.UpdateDatasetRequest;
import com.google.cloud.aiplatform.v1.UpdateDatasetVersionRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
Expand Down Expand Up @@ -152,6 +153,10 @@ public UnaryCallable<CreateDatasetVersionRequest, Operation> createDatasetVersio
throw new UnsupportedOperationException("Not implemented: createDatasetVersionCallable()");
}

public UnaryCallable<UpdateDatasetVersionRequest, DatasetVersion> updateDatasetVersionCallable() {
throw new UnsupportedOperationException("Not implemented: updateDatasetVersionCallable()");
}

public OperationCallable<DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata>
deleteDatasetVersionOperationCallable() {
throw new UnsupportedOperationException(
Expand Down
Loading

0 comments on commit 2c46a48

Please sign in to comment.