Content-Length: 1648001 | pFad | http://www.github.com/googleapis/java-aiplatform/commit/2b79994249bb572aa72336acdbc38f6f16aa86b4

298 feat: add enable_private_service_connect field to Endpoint feat: add … · googleapis/java-aiplatform@2b79994 · GitHub
Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit 2b79994

Browse files
feat: add enable_private_service_connect field to Endpoint feat: add id field to DeployedModel feat: add service_attachment field to PrivateEndpoints feat: add endpoint_id to CreateEndpointRequest and method signature to CreateEndpoint feat: add method... (#729)
... signature to CreateFeatureStore, CreateEntityType, CreateFeature feat: add network and enable_private_service_connect to IndexEndpoint feat: add service_attachment to IndexPrivateEndpoints feat: add stratified_split field to training_pipeline InputDataConfig - [ ] Regenerate this pull request now. PiperOrigin-RevId: 413691586 Source-Link: googleapis/googleapis@5915024 Source-Link: https://github.com/googleapis/googleapis-gen/commit/afe7901e92c0bab0888cd29719a6b758d7e0dd35 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWZlNzkwMWU5MmMwYmFiMDg4OGNkMjk3MTlhNmI3NThkN2UwZGQzNSJ9
1 parent 7736643 commit 2b79994

File tree

251 files changed

+27607
-2700
lines changed

Some content is hidden

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

251 files changed

+27607
-2700
lines changed

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

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,84 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
222222
return createEndpointAsync(request);
223223
}
224224

225+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
226+
/**
227+
* Creates an Endpoint.
228+
*
229+
* <p>Sample code:
230+
*
231+
* <pre>{@code
232+
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
233+
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
234+
* Endpoint endpoint = Endpoint.newBuilder().build();
235+
* String endpointId = "endpointId-1837754992";
236+
* Endpoint response =
237+
* endpointServiceClient.createEndpointAsync(parent, endpoint, endpointId).get();
238+
* }
239+
* }</pre>
240+
*
241+
* @param parent Required. The resource name of the Location to create the Endpoint in. Format:
242+
* `projects/{project}/locations/{location}`
243+
* @param endpoint Required. The Endpoint to create.
244+
* @param endpointId Immutable. The ID to use for endpoint, which will become the final component
245+
* of the endpoint resource name. If not provided, Vertex AI will generate a value for this
246+
* ID.
247+
* <p>This value should be 1-10 characters, and valid characters are /[0-9]/. When using
248+
* HTTP/JSON, this field is populated based on a query string argument, such as
249+
* `?endpoint_id=12345`. This is the fallback for fields that are not included in either the
250+
* URI or the body.
251+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
252+
*/
253+
public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEndpointAsync(
254+
LocationName parent, Endpoint endpoint, String endpointId) {
255+
CreateEndpointRequest request =
256+
CreateEndpointRequest.newBuilder()
257+
.setParent(parent == null ? null : parent.toString())
258+
.setEndpoint(endpoint)
259+
.setEndpointId(endpointId)
260+
.build();
261+
return createEndpointAsync(request);
262+
}
263+
264+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
265+
/**
266+
* Creates an Endpoint.
267+
*
268+
* <p>Sample code:
269+
*
270+
* <pre>{@code
271+
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
272+
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
273+
* Endpoint endpoint = Endpoint.newBuilder().build();
274+
* String endpointId = "endpointId-1837754992";
275+
* Endpoint response =
276+
* endpointServiceClient.createEndpointAsync(parent, endpoint, endpointId).get();
277+
* }
278+
* }</pre>
279+
*
280+
* @param parent Required. The resource name of the Location to create the Endpoint in. Format:
281+
* `projects/{project}/locations/{location}`
282+
* @param endpoint Required. The Endpoint to create.
283+
* @param endpointId Immutable. The ID to use for endpoint, which will become the final component
284+
* of the endpoint resource name. If not provided, Vertex AI will generate a value for this
285+
* ID.
286+
* <p>This value should be 1-10 characters, and valid characters are /[0-9]/. When using
287+
* HTTP/JSON, this field is populated based on a query string argument, such as
288+
* `?endpoint_id=12345`. This is the fallback for fields that are not included in either the
289+
* URI or the body.
290+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
291+
*/
292+
public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEndpointAsync(
293+
String parent, Endpoint endpoint, String endpointId) {
294+
CreateEndpointRequest request =
295+
CreateEndpointRequest.newBuilder()
296+
.setParent(parent)
297+
.setEndpoint(endpoint)
298+
.setEndpointId(endpointId)
299+
.build();
300+
return createEndpointAsync(request);
301+
}
302+
225303
// AUTO-GENERATED DOCUMENTATION AND METHOD.
226304
/**
227305
* Creates an Endpoint.
@@ -234,6 +312,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
234312
* CreateEndpointRequest.newBuilder()
235313
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
236314
* .setEndpoint(Endpoint.newBuilder().build())
315+
* .setEndpointId("endpointId-1837754992")
237316
* .build();
238317
* Endpoint response = endpointServiceClient.createEndpointAsync(request).get();
239318
* }
@@ -259,6 +338,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
259338
* CreateEndpointRequest.newBuilder()
260339
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
261340
* .setEndpoint(Endpoint.newBuilder().build())
341+
* .setEndpointId("endpointId-1837754992")
262342
* .build();
263343
* OperationFuture<Endpoint, CreateEndpointOperationMetadata> future =
264344
* endpointServiceClient.createEndpointOperationCallable().futureCall(request);
@@ -284,6 +364,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
284364
* CreateEndpointRequest.newBuilder()
285365
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
286366
* .setEndpoint(Endpoint.newBuilder().build())
367+
* .setEndpointId("endpointId-1837754992")
287368
* .build();
288369
* ApiFuture<Operation> future =
289370
* endpointServiceClient.createEndpointCallable().futureCall(request);

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

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,85 @@ public final OperationsClient getOperationsClient() {
226226
return createFeaturestoreAsync(request);
227227
}
228228

229+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
230+
/**
231+
* Creates a new Featurestore in a given project and location.
232+
*
233+
* <p>Sample code:
234+
*
235+
* <pre>{@code
236+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
237+
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
238+
* Featurestore featurestore = Featurestore.newBuilder().build();
239+
* String featurestoreId = "featurestoreId-1315851738";
240+
* Featurestore response =
241+
* featurestoreServiceClient
242+
* .createFeaturestoreAsync(parent, featurestore, featurestoreId)
243+
* .get();
244+
* }
245+
* }</pre>
246+
*
247+
* @param parent Required. The resource name of the Location to create Featurestores. Format:
248+
* `projects/{project}/locations/{location}'`
249+
* @param featurestore Required. The Featurestore to create.
250+
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
251+
* final component of the Featurestore's resource name.
252+
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
253+
* character cannot be a number.
254+
* <p>The value must be unique within the project and location.
255+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
256+
*/
257+
public final OperationFuture<Featurestore, CreateFeaturestoreOperationMetadata>
258+
createFeaturestoreAsync(
259+
LocationName parent, Featurestore featurestore, String featurestoreId) {
260+
CreateFeaturestoreRequest request =
261+
CreateFeaturestoreRequest.newBuilder()
262+
.setParent(parent == null ? null : parent.toString())
263+
.setFeaturestore(featurestore)
264+
.setFeaturestoreId(featurestoreId)
265+
.build();
266+
return createFeaturestoreAsync(request);
267+
}
268+
269+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
270+
/**
271+
* Creates a new Featurestore in a given project and location.
272+
*
273+
* <p>Sample code:
274+
*
275+
* <pre>{@code
276+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
277+
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
278+
* Featurestore featurestore = Featurestore.newBuilder().build();
279+
* String featurestoreId = "featurestoreId-1315851738";
280+
* Featurestore response =
281+
* featurestoreServiceClient
282+
* .createFeaturestoreAsync(parent, featurestore, featurestoreId)
283+
* .get();
284+
* }
285+
* }</pre>
286+
*
287+
* @param parent Required. The resource name of the Location to create Featurestores. Format:
288+
* `projects/{project}/locations/{location}'`
289+
* @param featurestore Required. The Featurestore to create.
290+
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
291+
* final component of the Featurestore's resource name.
292+
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
293+
* character cannot be a number.
294+
* <p>The value must be unique within the project and location.
295+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
296+
*/
297+
public final OperationFuture<Featurestore, CreateFeaturestoreOperationMetadata>
298+
createFeaturestoreAsync(String parent, Featurestore featurestore, String featurestoreId) {
299+
CreateFeaturestoreRequest request =
300+
CreateFeaturestoreRequest.newBuilder()
301+
.setParent(parent)
302+
.setFeaturestore(featurestore)
303+
.setFeaturestoreId(featurestoreId)
304+
.build();
305+
return createFeaturestoreAsync(request);
306+
}
307+
229308
// AUTO-GENERATED DOCUMENTATION AND METHOD.
230309
/**
231310
* Creates a new Featurestore in a given project and location.
@@ -904,6 +983,80 @@ public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> crea
904983
return createEntityTypeAsync(request);
905984
}
906985

986+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
987+
/**
988+
* Creates a new EntityType in a given Featurestore.
989+
*
990+
* <p>Sample code:
991+
*
992+
* <pre>{@code
993+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
994+
* FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
995+
* EntityType entityType = EntityType.newBuilder().build();
996+
* String entityTypeId = "entityTypeId767740856";
997+
* EntityType response =
998+
* featurestoreServiceClient.createEntityTypeAsync(parent, entityType, entityTypeId).get();
999+
* }
1000+
* }</pre>
1001+
*
1002+
* @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
1003+
* `projects/{project}/locations/{location}/featurestores/{featurestore}`
1004+
* @param entityType The EntityType to create.
1005+
* @param entityTypeId Required. The ID to use for the EntityType, which will become the final
1006+
* component of the EntityType's resource name.
1007+
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
1008+
* character cannot be a number.
1009+
* <p>The value must be unique within a featurestore.
1010+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1011+
*/
1012+
public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> createEntityTypeAsync(
1013+
FeaturestoreName parent, EntityType entityType, String entityTypeId) {
1014+
CreateEntityTypeRequest request =
1015+
CreateEntityTypeRequest.newBuilder()
1016+
.setParent(parent == null ? null : parent.toString())
1017+
.setEntityType(entityType)
1018+
.setEntityTypeId(entityTypeId)
1019+
.build();
1020+
return createEntityTypeAsync(request);
1021+
}
1022+
1023+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1024+
/**
1025+
* Creates a new EntityType in a given Featurestore.
1026+
*
1027+
* <p>Sample code:
1028+
*
1029+
* <pre>{@code
1030+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
1031+
* String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
1032+
* EntityType entityType = EntityType.newBuilder().build();
1033+
* String entityTypeId = "entityTypeId767740856";
1034+
* EntityType response =
1035+
* featurestoreServiceClient.createEntityTypeAsync(parent, entityType, entityTypeId).get();
1036+
* }
1037+
* }</pre>
1038+
*
1039+
* @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
1040+
* `projects/{project}/locations/{location}/featurestores/{featurestore}`
1041+
* @param entityType The EntityType to create.
1042+
* @param entityTypeId Required. The ID to use for the EntityType, which will become the final
1043+
* component of the EntityType's resource name.
1044+
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
1045+
* character cannot be a number.
1046+
* <p>The value must be unique within a featurestore.
1047+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1048+
*/
1049+
public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> createEntityTypeAsync(
1050+
String parent, EntityType entityType, String entityTypeId) {
1051+
CreateEntityTypeRequest request =
1052+
CreateEntityTypeRequest.newBuilder()
1053+
.setParent(parent)
1054+
.setEntityType(entityType)
1055+
.setEntityTypeId(entityTypeId)
1056+
.build();
1057+
return createEntityTypeAsync(request);
1058+
}
1059+
9071060
// AUTO-GENERATED DOCUMENTATION AND METHOD.
9081061
/**
9091062
* Creates a new EntityType in a given Featurestore.
@@ -1574,6 +1727,83 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
15741727
return createFeatureAsync(request);
15751728
}
15761729

1730+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1731+
/**
1732+
* Creates a new Feature in a given EntityType.
1733+
*
1734+
* <p>Sample code:
1735+
*
1736+
* <pre>{@code
1737+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
1738+
* EntityTypeName parent =
1739+
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
1740+
* Feature feature = Feature.newBuilder().build();
1741+
* String featureId = "featureId-420503887";
1742+
* Feature response =
1743+
* featurestoreServiceClient.createFeatureAsync(parent, feature, featureId).get();
1744+
* }
1745+
* }</pre>
1746+
*
1747+
* @param parent Required. The resource name of the EntityType to create a Feature. Format:
1748+
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
1749+
* @param feature Required. The Feature to create.
1750+
* @param featureId Required. The ID to use for the Feature, which will become the final component
1751+
* of the Feature's resource name.
1752+
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
1753+
* character cannot be a number.
1754+
* <p>The value must be unique within an EntityType.
1755+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1756+
*/
1757+
public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeatureAsync(
1758+
EntityTypeName parent, Feature feature, String featureId) {
1759+
CreateFeatureRequest request =
1760+
CreateFeatureRequest.newBuilder()
1761+
.setParent(parent == null ? null : parent.toString())
1762+
.setFeature(feature)
1763+
.setFeatureId(featureId)
1764+
.build();
1765+
return createFeatureAsync(request);
1766+
}
1767+
1768+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1769+
/**
1770+
* Creates a new Feature in a given EntityType.
1771+
*
1772+
* <p>Sample code:
1773+
*
1774+
* <pre>{@code
1775+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
1776+
* String parent =
1777+
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
1778+
* .toString();
1779+
* Feature feature = Feature.newBuilder().build();
1780+
* String featureId = "featureId-420503887";
1781+
* Feature response =
1782+
* featurestoreServiceClient.createFeatureAsync(parent, feature, featureId).get();
1783+
* }
1784+
* }</pre>
1785+
*
1786+
* @param parent Required. The resource name of the EntityType to create a Feature. Format:
1787+
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
1788+
* @param feature Required. The Feature to create.
1789+
* @param featureId Required. The ID to use for the Feature, which will become the final component
1790+
* of the Feature's resource name.
1791+
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
1792+
* character cannot be a number.
1793+
* <p>The value must be unique within an EntityType.
1794+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1795+
*/
1796+
public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeatureAsync(
1797+
String parent, Feature feature, String featureId) {
1798+
CreateFeatureRequest request =
1799+
CreateFeatureRequest.newBuilder()
1800+
.setParent(parent)
1801+
.setFeature(feature)
1802+
.setFeatureId(featureId)
1803+
.build();
1804+
return createFeatureAsync(request);
1805+
}
1806+
15771807
// AUTO-GENERATED DOCUMENTATION AND METHOD.
15781808
/**
15791809
* Creates a new Feature in a given EntityType.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.github.com/googleapis/java-aiplatform/commit/2b79994249bb572aa72336acdbc38f6f16aa86b4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy