Skip to content

Commit 2c46a48

Browse files
chore: update googleapis commit at Tue Jun 4 20:08:27 UTC 2024 (#10918)
* 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
1 parent 706b490 commit 2c46a48

1,027 files changed

Lines changed: 191233 additions & 14917 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gapic_generator_version: 2.40.1
22
protoc_version: '25.3'
3-
googleapis_commitish: f49123a39efc18f0a20a2183629c62830725343c
3+
googleapis_commitish: ede5e02ad747c9199a7953b222b85715e097189c
44
libraries_bom_version: 26.40.0
55
template_excludes:
66
- .github/*

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,24 @@
234234
* </td>
235235
* </tr>
236236
* <tr>
237+
* <td><p> UpdateDatasetVersion</td>
238+
* <td><p> Updates a DatasetVersion.</td>
239+
* <td>
240+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
241+
* <ul>
242+
* <li><p> updateDatasetVersion(UpdateDatasetVersionRequest request)
243+
* </ul>
244+
* <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>
245+
* <ul>
246+
* <li><p> updateDatasetVersion(DatasetVersion datasetVersion, FieldMask updateMask)
247+
* </ul>
248+
* <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>
249+
* <ul>
250+
* <li><p> updateDatasetVersionCallable()
251+
* </ul>
252+
* </td>
253+
* </tr>
254+
* <tr>
237255
* <td><p> DeleteDatasetVersion</td>
238256
* <td><p> Deletes a Dataset version.</td>
239257
* <td>
@@ -1741,6 +1759,101 @@ public final UnaryCallable<ExportDataRequest, Operation> exportDataCallable() {
17411759
return stub.createDatasetVersionCallable();
17421760
}
17431761

1762+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1763+
/**
1764+
* Updates a DatasetVersion.
1765+
*
1766+
* <p>Sample code:
1767+
*
1768+
* <pre>{@code
1769+
* // This snippet has been automatically generated and should be regarded as a code template only.
1770+
* // It will require modifications to work:
1771+
* // - It may require correct/in-range values for request initialization.
1772+
* // - It may require specifying regional endpoints when creating the service client as shown in
1773+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1774+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1775+
* DatasetVersion datasetVersion = DatasetVersion.newBuilder().build();
1776+
* FieldMask updateMask = FieldMask.newBuilder().build();
1777+
* DatasetVersion response =
1778+
* datasetServiceClient.updateDatasetVersion(datasetVersion, updateMask);
1779+
* }
1780+
* }</pre>
1781+
*
1782+
* @param datasetVersion Required. The DatasetVersion which replaces the resource on the server.
1783+
* @param updateMask Required. The update mask applies to the resource. For the `FieldMask`
1784+
* definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. Updatable fields:
1785+
* <p>&#42; `display_name`
1786+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1787+
*/
1788+
public final DatasetVersion updateDatasetVersion(
1789+
DatasetVersion datasetVersion, FieldMask updateMask) {
1790+
UpdateDatasetVersionRequest request =
1791+
UpdateDatasetVersionRequest.newBuilder()
1792+
.setDatasetVersion(datasetVersion)
1793+
.setUpdateMask(updateMask)
1794+
.build();
1795+
return updateDatasetVersion(request);
1796+
}
1797+
1798+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1799+
/**
1800+
* Updates a DatasetVersion.
1801+
*
1802+
* <p>Sample code:
1803+
*
1804+
* <pre>{@code
1805+
* // This snippet has been automatically generated and should be regarded as a code template only.
1806+
* // It will require modifications to work:
1807+
* // - It may require correct/in-range values for request initialization.
1808+
* // - It may require specifying regional endpoints when creating the service client as shown in
1809+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1810+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1811+
* UpdateDatasetVersionRequest request =
1812+
* UpdateDatasetVersionRequest.newBuilder()
1813+
* .setDatasetVersion(DatasetVersion.newBuilder().build())
1814+
* .setUpdateMask(FieldMask.newBuilder().build())
1815+
* .build();
1816+
* DatasetVersion response = datasetServiceClient.updateDatasetVersion(request);
1817+
* }
1818+
* }</pre>
1819+
*
1820+
* @param request The request object containing all of the parameters for the API call.
1821+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1822+
*/
1823+
public final DatasetVersion updateDatasetVersion(UpdateDatasetVersionRequest request) {
1824+
return updateDatasetVersionCallable().call(request);
1825+
}
1826+
1827+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1828+
/**
1829+
* Updates a DatasetVersion.
1830+
*
1831+
* <p>Sample code:
1832+
*
1833+
* <pre>{@code
1834+
* // This snippet has been automatically generated and should be regarded as a code template only.
1835+
* // It will require modifications to work:
1836+
* // - It may require correct/in-range values for request initialization.
1837+
* // - It may require specifying regional endpoints when creating the service client as shown in
1838+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1839+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1840+
* UpdateDatasetVersionRequest request =
1841+
* UpdateDatasetVersionRequest.newBuilder()
1842+
* .setDatasetVersion(DatasetVersion.newBuilder().build())
1843+
* .setUpdateMask(FieldMask.newBuilder().build())
1844+
* .build();
1845+
* ApiFuture<DatasetVersion> future =
1846+
* datasetServiceClient.updateDatasetVersionCallable().futureCall(request);
1847+
* // Do something.
1848+
* DatasetVersion response = future.get();
1849+
* }
1850+
* }</pre>
1851+
*/
1852+
public final UnaryCallable<UpdateDatasetVersionRequest, DatasetVersion>
1853+
updateDatasetVersionCallable() {
1854+
return stub.updateDatasetVersionCallable();
1855+
}
1856+
17441857
// AUTO-GENERATED DOCUMENTATION AND METHOD.
17451858
/**
17461859
* Deletes a Dataset version.

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ public UnaryCallSettings<CreateDatasetVersionRequest, Operation> createDatasetVe
163163
return ((DatasetServiceStubSettings) getStubSettings()).createDatasetVersionOperationSettings();
164164
}
165165

166+
/** Returns the object with the settings used for calls to updateDatasetVersion. */
167+
public UnaryCallSettings<UpdateDatasetVersionRequest, DatasetVersion>
168+
updateDatasetVersionSettings() {
169+
return ((DatasetServiceStubSettings) getStubSettings()).updateDatasetVersionSettings();
170+
}
171+
166172
/** Returns the object with the settings used for calls to deleteDatasetVersion. */
167173
public UnaryCallSettings<DeleteDatasetVersionRequest, Operation> deleteDatasetVersionSettings() {
168174
return ((DatasetServiceStubSettings) getStubSettings()).deleteDatasetVersionSettings();
@@ -443,6 +449,12 @@ public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSetting
443449
return getStubSettingsBuilder().createDatasetVersionOperationSettings();
444450
}
445451

452+
/** Returns the builder for the settings used for calls to updateDatasetVersion. */
453+
public UnaryCallSettings.Builder<UpdateDatasetVersionRequest, DatasetVersion>
454+
updateDatasetVersionSettings() {
455+
return getStubSettingsBuilder().updateDatasetVersionSettings();
456+
}
457+
446458
/** Returns the builder for the settings used for calls to deleteDatasetVersion. */
447459
public UnaryCallSettings.Builder<DeleteDatasetVersionRequest, Operation>
448460
deleteDatasetVersionSettings() {

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import com.google.longrunning.Operation;
4242
import com.google.longrunning.OperationsClient;
4343
import com.google.protobuf.Empty;
44+
import com.google.protobuf.FieldMask;
4445
import java.io.IOException;
4546
import java.util.List;
4647
import java.util.concurrent.TimeUnit;
@@ -157,6 +158,24 @@
157158
* </td>
158159
* </tr>
159160
* <tr>
161+
* <td><p> UpdateNotebookRuntimeTemplate</td>
162+
* <td><p> Updates a NotebookRuntimeTemplate.</td>
163+
* <td>
164+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
165+
* <ul>
166+
* <li><p> updateNotebookRuntimeTemplate(UpdateNotebookRuntimeTemplateRequest request)
167+
* </ul>
168+
* <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>
169+
* <ul>
170+
* <li><p> updateNotebookRuntimeTemplate(NotebookRuntimeTemplate notebookRuntimeTemplate, FieldMask updateMask)
171+
* </ul>
172+
* <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>
173+
* <ul>
174+
* <li><p> updateNotebookRuntimeTemplateCallable()
175+
* </ul>
176+
* </td>
177+
* </tr>
178+
* <tr>
160179
* <td><p> AssignNotebookRuntime</td>
161180
* <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>
162181
* <td>
@@ -1119,6 +1138,105 @@ public final OperationFuture<Empty, DeleteOperationMetadata> deleteNotebookRunti
11191138
return stub.deleteNotebookRuntimeTemplateCallable();
11201139
}
11211140

1141+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1142+
/**
1143+
* Updates a NotebookRuntimeTemplate.
1144+
*
1145+
* <p>Sample code:
1146+
*
1147+
* <pre>{@code
1148+
* // This snippet has been automatically generated and should be regarded as a code template only.
1149+
* // It will require modifications to work:
1150+
* // - It may require correct/in-range values for request initialization.
1151+
* // - It may require specifying regional endpoints when creating the service client as shown in
1152+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1153+
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
1154+
* NotebookRuntimeTemplate notebookRuntimeTemplate =
1155+
* NotebookRuntimeTemplate.newBuilder().build();
1156+
* FieldMask updateMask = FieldMask.newBuilder().build();
1157+
* NotebookRuntimeTemplate response =
1158+
* notebookServiceClient.updateNotebookRuntimeTemplate(notebookRuntimeTemplate, updateMask);
1159+
* }
1160+
* }</pre>
1161+
*
1162+
* @param notebookRuntimeTemplate Required. The NotebookRuntimeTemplate to update.
1163+
* @param updateMask Required. The update mask applies to the resource. For the `FieldMask`
1164+
* definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. Input format:
1165+
* `{paths: "${updated_filed}"}` Updatable fields:
1166+
* <p>&#42; `encryption_spec.kms_key_name`
1167+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1168+
*/
1169+
public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate(
1170+
NotebookRuntimeTemplate notebookRuntimeTemplate, FieldMask updateMask) {
1171+
UpdateNotebookRuntimeTemplateRequest request =
1172+
UpdateNotebookRuntimeTemplateRequest.newBuilder()
1173+
.setNotebookRuntimeTemplate(notebookRuntimeTemplate)
1174+
.setUpdateMask(updateMask)
1175+
.build();
1176+
return updateNotebookRuntimeTemplate(request);
1177+
}
1178+
1179+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1180+
/**
1181+
* Updates a NotebookRuntimeTemplate.
1182+
*
1183+
* <p>Sample code:
1184+
*
1185+
* <pre>{@code
1186+
* // This snippet has been automatically generated and should be regarded as a code template only.
1187+
* // It will require modifications to work:
1188+
* // - It may require correct/in-range values for request initialization.
1189+
* // - It may require specifying regional endpoints when creating the service client as shown in
1190+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1191+
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
1192+
* UpdateNotebookRuntimeTemplateRequest request =
1193+
* UpdateNotebookRuntimeTemplateRequest.newBuilder()
1194+
* .setNotebookRuntimeTemplate(NotebookRuntimeTemplate.newBuilder().build())
1195+
* .setUpdateMask(FieldMask.newBuilder().build())
1196+
* .build();
1197+
* NotebookRuntimeTemplate response =
1198+
* notebookServiceClient.updateNotebookRuntimeTemplate(request);
1199+
* }
1200+
* }</pre>
1201+
*
1202+
* @param request The request object containing all of the parameters for the API call.
1203+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1204+
*/
1205+
public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate(
1206+
UpdateNotebookRuntimeTemplateRequest request) {
1207+
return updateNotebookRuntimeTemplateCallable().call(request);
1208+
}
1209+
1210+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1211+
/**
1212+
* Updates a NotebookRuntimeTemplate.
1213+
*
1214+
* <p>Sample code:
1215+
*
1216+
* <pre>{@code
1217+
* // This snippet has been automatically generated and should be regarded as a code template only.
1218+
* // It will require modifications to work:
1219+
* // - It may require correct/in-range values for request initialization.
1220+
* // - It may require specifying regional endpoints when creating the service client as shown in
1221+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1222+
* try (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
1223+
* UpdateNotebookRuntimeTemplateRequest request =
1224+
* UpdateNotebookRuntimeTemplateRequest.newBuilder()
1225+
* .setNotebookRuntimeTemplate(NotebookRuntimeTemplate.newBuilder().build())
1226+
* .setUpdateMask(FieldMask.newBuilder().build())
1227+
* .build();
1228+
* ApiFuture<NotebookRuntimeTemplate> future =
1229+
* notebookServiceClient.updateNotebookRuntimeTemplateCallable().futureCall(request);
1230+
* // Do something.
1231+
* NotebookRuntimeTemplate response = future.get();
1232+
* }
1233+
* }</pre>
1234+
*/
1235+
public final UnaryCallable<UpdateNotebookRuntimeTemplateRequest, NotebookRuntimeTemplate>
1236+
updateNotebookRuntimeTemplateCallable() {
1237+
return stub.updateNotebookRuntimeTemplateCallable();
1238+
}
1239+
11221240
// AUTO-GENERATED DOCUMENTATION AND METHOD.
11231241
/**
11241242
* Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ public class NotebookServiceSettings extends ClientSettings<NotebookServiceSetti
133133
.deleteNotebookRuntimeTemplateOperationSettings();
134134
}
135135

136+
/** Returns the object with the settings used for calls to updateNotebookRuntimeTemplate. */
137+
public UnaryCallSettings<UpdateNotebookRuntimeTemplateRequest, NotebookRuntimeTemplate>
138+
updateNotebookRuntimeTemplateSettings() {
139+
return ((NotebookServiceStubSettings) getStubSettings())
140+
.updateNotebookRuntimeTemplateSettings();
141+
}
142+
136143
/** Returns the object with the settings used for calls to assignNotebookRuntime. */
137144
public UnaryCallSettings<AssignNotebookRuntimeRequest, Operation>
138145
assignNotebookRuntimeSettings() {
@@ -372,6 +379,12 @@ public Builder applyToAllUnaryMethods(
372379
return getStubSettingsBuilder().deleteNotebookRuntimeTemplateOperationSettings();
373380
}
374381

382+
/** Returns the builder for the settings used for calls to updateNotebookRuntimeTemplate. */
383+
public UnaryCallSettings.Builder<UpdateNotebookRuntimeTemplateRequest, NotebookRuntimeTemplate>
384+
updateNotebookRuntimeTemplateSettings() {
385+
return getStubSettingsBuilder().updateNotebookRuntimeTemplateSettings();
386+
}
387+
375388
/** Returns the builder for the settings used for calls to assignNotebookRuntime. */
376389
public UnaryCallSettings.Builder<AssignNotebookRuntimeRequest, Operation>
377390
assignNotebookRuntimeSettings() {

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ public final GenerateContentResponse generateContent(String model, List<Content>
13951395
* .addAllContents(new ArrayList<Content>())
13961396
* .setSystemInstruction(Content.newBuilder().build())
13971397
* .addAllTools(new ArrayList<Tool>())
1398+
* .setToolConfig(ToolConfig.newBuilder().build())
13981399
* .addAllSafetySettings(new ArrayList<SafetySetting>())
13991400
* .setGenerationConfig(GenerationConfig.newBuilder().build())
14001401
* .build();
@@ -1428,6 +1429,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ
14281429
* .addAllContents(new ArrayList<Content>())
14291430
* .setSystemInstruction(Content.newBuilder().build())
14301431
* .addAllTools(new ArrayList<Tool>())
1432+
* .setToolConfig(ToolConfig.newBuilder().build())
14311433
* .addAllSafetySettings(new ArrayList<SafetySetting>())
14321434
* .setGenerationConfig(GenerationConfig.newBuilder().build())
14331435
* .build();
@@ -1462,6 +1464,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ
14621464
* .addAllContents(new ArrayList<Content>())
14631465
* .setSystemInstruction(Content.newBuilder().build())
14641466
* .addAllTools(new ArrayList<Tool>())
1467+
* .setToolConfig(ToolConfig.newBuilder().build())
14651468
* .addAllSafetySettings(new ArrayList<SafetySetting>())
14661469
* .setGenerationConfig(GenerationConfig.newBuilder().build())
14671470
* .build();

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
},
7979
"UpdateDataset": {
8080
"methods": ["updateDataset", "updateDataset", "updateDatasetCallable"]
81+
},
82+
"UpdateDatasetVersion": {
83+
"methods": ["updateDatasetVersion", "updateDatasetVersion", "updateDatasetVersionCallable"]
8184
}
8285
}
8386
}
@@ -1057,6 +1060,9 @@
10571060
"TestIamPermissions": {
10581061
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
10591062
},
1063+
"UpdateNotebookRuntimeTemplate": {
1064+
"methods": ["updateNotebookRuntimeTemplate", "updateNotebookRuntimeTemplate", "updateNotebookRuntimeTemplateCallable"]
1065+
},
10601066
"UpgradeNotebookRuntime": {
10611067
"methods": ["upgradeNotebookRuntimeAsync", "upgradeNotebookRuntimeAsync", "upgradeNotebookRuntimeAsync", "upgradeNotebookRuntimeOperationCallable", "upgradeNotebookRuntimeCallable"]
10621068
}

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
import com.google.cloud.aiplatform.v1.SearchDataItemsRequest;
6363
import com.google.cloud.aiplatform.v1.SearchDataItemsResponse;
6464
import com.google.cloud.aiplatform.v1.UpdateDatasetRequest;
65+
import com.google.cloud.aiplatform.v1.UpdateDatasetVersionRequest;
6566
import com.google.cloud.location.GetLocationRequest;
6667
import com.google.cloud.location.ListLocationsRequest;
6768
import com.google.cloud.location.ListLocationsResponse;
@@ -152,6 +153,10 @@ public UnaryCallable<CreateDatasetVersionRequest, Operation> createDatasetVersio
152153
throw new UnsupportedOperationException("Not implemented: createDatasetVersionCallable()");
153154
}
154155

156+
public UnaryCallable<UpdateDatasetVersionRequest, DatasetVersion> updateDatasetVersionCallable() {
157+
throw new UnsupportedOperationException("Not implemented: updateDatasetVersionCallable()");
158+
}
159+
155160
public OperationCallable<DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata>
156161
deleteDatasetVersionOperationCallable() {
157162
throw new UnsupportedOperationException(

0 commit comments

Comments
 (0)