Skip to content

Commit 6b1e9fa

Browse files
chore: update googleapis commit at Tue May 7 02:17:59 UTC 2024 (#10801)
* chore: update googleapis commit at Tue May 7 02:17:59 UTC 2024 * chore: generate libraries at Tue May 7 02:21:02 UTC 2024 * chore: update googleapis commit at Tue May 7 02:34:59 UTC 2024 * chore: update googleapis commit at Tue May 7 02:46:54 UTC 2024 * chore: update googleapis commit at Tue May 7 02:56:01 UTC 2024 * chore: update googleapis commit at Tue May 7 03:07:40 UTC 2024
1 parent d2f9e7d commit 6b1e9fa

File tree

452 files changed

+91328
-8334
lines changed

Some content is hidden

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

452 files changed

+91328
-8334
lines changed

generation_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gapic_generator_version: 2.40.0
22
protoc_version: '25.3'
3-
googleapis_commitish: 5a0ae652df1ef39b7849bf2bd6ba417376ce3204
3+
googleapis_commitish: 900ed84f9f02a78eab2207e46fbdaa9d5f9ad875
44
libraries_bom_version: 26.38.0
55
owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409
66
synthtool_commitish: 63cc541da2c45fcfca2136c43e638da1fbae174d

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

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

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

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

+12
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ public UnaryCallSettings<CreateDatasetVersionRequest, Operation> createDatasetVe
165165
return ((DatasetServiceStubSettings) getStubSettings()).createDatasetVersionOperationSettings();
166166
}
167167

168+
/** Returns the object with the settings used for calls to updateDatasetVersion. */
169+
public UnaryCallSettings<UpdateDatasetVersionRequest, DatasetVersion>
170+
updateDatasetVersionSettings() {
171+
return ((DatasetServiceStubSettings) getStubSettings()).updateDatasetVersionSettings();
172+
}
173+
168174
/** Returns the object with the settings used for calls to deleteDatasetVersion. */
169175
public UnaryCallSettings<DeleteDatasetVersionRequest, Operation> deleteDatasetVersionSettings() {
170176
return ((DatasetServiceStubSettings) getStubSettings()).deleteDatasetVersionSettings();
@@ -445,6 +451,12 @@ public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSetting
445451
return getStubSettingsBuilder().createDatasetVersionOperationSettings();
446452
}
447453

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

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ public final OperationsClient getOperationsClient() {
481481
* }</pre>
482482
*
483483
* @param parent Required. The resource name of the Location to create FeatureGroups. Format:
484-
* `projects/{project}/locations/{location}'`
484+
* `projects/{project}/locations/{location}`
485485
* @param featureGroup Required. The FeatureGroup to create.
486486
* @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
487487
* final component of the FeatureGroup's resource name.
@@ -527,7 +527,7 @@ public final OperationsClient getOperationsClient() {
527527
* }</pre>
528528
*
529529
* @param parent Required. The resource name of the Location to create FeatureGroups. Format:
530-
* `projects/{project}/locations/{location}'`
530+
* `projects/{project}/locations/{location}`
531531
* @param featureGroup Required. The FeatureGroup to create.
532532
* @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the
533533
* final component of the FeatureGroup's resource name.

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

-43
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,6 @@
270270
* </td>
271271
* </tr>
272272
* <tr>
273-
* <td><p> ChatCompletions</td>
274-
* <td><p> Exposes an OpenAI-compatible endpoint for chat completions.</td>
275-
* <td>
276-
* <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>
277-
* <ul>
278-
* <li><p> chatCompletionsCallable()
279-
* </ul>
280-
* </td>
281-
* </tr>
282-
* <tr>
283273
* <td><p> ListLocations</td>
284274
* <td><p> Lists information about the supported locations for this service.</td>
285275
* <td>
@@ -1614,39 +1604,6 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ
16141604
return stub.streamGenerateContentCallable();
16151605
}
16161606

1617-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1618-
/**
1619-
* Exposes an OpenAI-compatible endpoint for chat completions.
1620-
*
1621-
* <p>Sample code:
1622-
*
1623-
* <pre>{@code
1624-
* // This snippet has been automatically generated and should be regarded as a code template only.
1625-
* // It will require modifications to work:
1626-
* // - It may require correct/in-range values for request initialization.
1627-
* // - It may require specifying regional endpoints when creating the service client as shown in
1628-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1629-
* try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
1630-
* ChatCompletionsRequest request =
1631-
* ChatCompletionsRequest.newBuilder()
1632-
* .setEndpoint(
1633-
* EndpointName.ofProjectLocationEndpointName(
1634-
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
1635-
* .toString())
1636-
* .setHttpBody(HttpBody.newBuilder().build())
1637-
* .build();
1638-
* ServerStream<HttpBody> stream =
1639-
* predictionServiceClient.chatCompletionsCallable().call(request);
1640-
* for (HttpBody response : stream) {
1641-
* // Do something when a response is received.
1642-
* }
1643-
* }
1644-
* }</pre>
1645-
*/
1646-
public final ServerStreamingCallable<ChatCompletionsRequest, HttpBody> chatCompletionsCallable() {
1647-
return stub.chatCompletionsCallable();
1648-
}
1649-
16501607
// AUTO-GENERATED DOCUMENTATION AND METHOD.
16511608
/**
16521609
* Lists information about the supported locations for this service.

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java

-11
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,6 @@ public UnaryCallSettings<CountTokensRequest, CountTokensResponse> countTokensSet
160160
return ((PredictionServiceStubSettings) getStubSettings()).streamGenerateContentSettings();
161161
}
162162

163-
/** Returns the object with the settings used for calls to chatCompletions. */
164-
public ServerStreamingCallSettings<ChatCompletionsRequest, HttpBody> chatCompletionsSettings() {
165-
return ((PredictionServiceStubSettings) getStubSettings()).chatCompletionsSettings();
166-
}
167-
168163
/** Returns the object with the settings used for calls to listLocations. */
169164
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
170165
listLocationsSettings() {
@@ -364,12 +359,6 @@ public UnaryCallSettings.Builder<ExplainRequest, ExplainResponse> explainSetting
364359
return getStubSettingsBuilder().streamGenerateContentSettings();
365360
}
366361

367-
/** Returns the builder for the settings used for calls to chatCompletions. */
368-
public ServerStreamingCallSettings.Builder<ChatCompletionsRequest, HttpBody>
369-
chatCompletionsSettings() {
370-
return getStubSettingsBuilder().chatCompletionsSettings();
371-
}
372-
373362
/** Returns the builder for the settings used for calls to listLocations. */
374363
public PagedCallSettings.Builder<
375364
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>

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

+3-3
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
}
@@ -1300,9 +1303,6 @@
13001303
"grpc": {
13011304
"libraryClient": "PredictionServiceClient",
13021305
"rpcs": {
1303-
"ChatCompletions": {
1304-
"methods": ["chatCompletionsCallable"]
1305-
},
13061306
"CountTokens": {
13071307
"methods": ["countTokens", "countTokens", "countTokens", "countTokensCallable"]
13081308
},

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

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
import com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest;
6464
import com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse;
6565
import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest;
66+
import com.google.cloud.aiplatform.v1beta1.UpdateDatasetVersionRequest;
6667
import com.google.cloud.location.GetLocationRequest;
6768
import com.google.cloud.location.ListLocationsRequest;
6869
import com.google.cloud.location.ListLocationsResponse;
@@ -154,6 +155,10 @@ public UnaryCallable<CreateDatasetVersionRequest, Operation> createDatasetVersio
154155
throw new UnsupportedOperationException("Not implemented: createDatasetVersionCallable()");
155156
}
156157

158+
public UnaryCallable<UpdateDatasetVersionRequest, DatasetVersion> updateDatasetVersionCallable() {
159+
throw new UnsupportedOperationException("Not implemented: updateDatasetVersionCallable()");
160+
}
161+
157162
public OperationCallable<DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata>
158163
deleteDatasetVersionOperationCallable() {
159164
throw new UnsupportedOperationException(

0 commit comments

Comments
 (0)