Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
feat: add enable_private_service_connect field to Endpoint feat: add …
Browse files Browse the repository at this point in the history
…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: googleapis/googleapis-gen@afe7901
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWZlNzkwMWU5MmMwYmFiMDg4OGNkMjk3MTlhNmI3NThkN2UwZGQzNSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Dec 2, 2021
1 parent 7736643 commit 2b79994
Show file tree
Hide file tree
Showing 251 changed files with 27,607 additions and 2,700 deletions.
Expand Up @@ -222,6 +222,84 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
return createEndpointAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates an Endpoint.
*
* <p>Sample code:
*
* <pre>{@code
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Endpoint endpoint = Endpoint.newBuilder().build();
* String endpointId = "endpointId-1837754992";
* Endpoint response =
* endpointServiceClient.createEndpointAsync(parent, endpoint, endpointId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create the Endpoint in. Format:
* `projects/{project}/locations/{location}`
* @param endpoint Required. The Endpoint to create.
* @param endpointId Immutable. The ID to use for endpoint, which will become the final component
* of the endpoint resource name. If not provided, Vertex AI will generate a value for this
* ID.
* <p>This value should be 1-10 characters, and valid characters are /[0-9]/. When using
* HTTP/JSON, this field is populated based on a query string argument, such as
* `?endpoint_id=12345`. This is the fallback for fields that are not included in either the
* URI or the body.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEndpointAsync(
LocationName parent, Endpoint endpoint, String endpointId) {
CreateEndpointRequest request =
CreateEndpointRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setEndpoint(endpoint)
.setEndpointId(endpointId)
.build();
return createEndpointAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates an Endpoint.
*
* <p>Sample code:
*
* <pre>{@code
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Endpoint endpoint = Endpoint.newBuilder().build();
* String endpointId = "endpointId-1837754992";
* Endpoint response =
* endpointServiceClient.createEndpointAsync(parent, endpoint, endpointId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create the Endpoint in. Format:
* `projects/{project}/locations/{location}`
* @param endpoint Required. The Endpoint to create.
* @param endpointId Immutable. The ID to use for endpoint, which will become the final component
* of the endpoint resource name. If not provided, Vertex AI will generate a value for this
* ID.
* <p>This value should be 1-10 characters, and valid characters are /[0-9]/. When using
* HTTP/JSON, this field is populated based on a query string argument, such as
* `?endpoint_id=12345`. This is the fallback for fields that are not included in either the
* URI or the body.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEndpointAsync(
String parent, Endpoint endpoint, String endpointId) {
CreateEndpointRequest request =
CreateEndpointRequest.newBuilder()
.setParent(parent)
.setEndpoint(endpoint)
.setEndpointId(endpointId)
.build();
return createEndpointAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates an Endpoint.
Expand All @@ -234,6 +312,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
* CreateEndpointRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setEndpoint(Endpoint.newBuilder().build())
* .setEndpointId("endpointId-1837754992")
* .build();
* Endpoint response = endpointServiceClient.createEndpointAsync(request).get();
* }
Expand All @@ -259,6 +338,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
* CreateEndpointRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setEndpoint(Endpoint.newBuilder().build())
* .setEndpointId("endpointId-1837754992")
* .build();
* OperationFuture<Endpoint, CreateEndpointOperationMetadata> future =
* endpointServiceClient.createEndpointOperationCallable().futureCall(request);
Expand All @@ -284,6 +364,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
* CreateEndpointRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setEndpoint(Endpoint.newBuilder().build())
* .setEndpointId("endpointId-1837754992")
* .build();
* ApiFuture<Operation> future =
* endpointServiceClient.createEndpointCallable().futureCall(request);
Expand Down
Expand Up @@ -226,6 +226,85 @@ public final OperationsClient getOperationsClient() {
return createFeaturestoreAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Featurestore in a given project and location.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Featurestore featurestore = Featurestore.newBuilder().build();
* String featurestoreId = "featurestoreId-1315851738";
* Featurestore response =
* featurestoreServiceClient
* .createFeaturestoreAsync(parent, featurestore, featurestoreId)
* .get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* @param featurestore Required. The Featurestore to create.
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
* final component of the Featurestore's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within the project and location.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Featurestore, CreateFeaturestoreOperationMetadata>
createFeaturestoreAsync(
LocationName parent, Featurestore featurestore, String featurestoreId) {
CreateFeaturestoreRequest request =
CreateFeaturestoreRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setFeaturestore(featurestore)
.setFeaturestoreId(featurestoreId)
.build();
return createFeaturestoreAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Featurestore in a given project and location.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Featurestore featurestore = Featurestore.newBuilder().build();
* String featurestoreId = "featurestoreId-1315851738";
* Featurestore response =
* featurestoreServiceClient
* .createFeaturestoreAsync(parent, featurestore, featurestoreId)
* .get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* @param featurestore Required. The Featurestore to create.
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
* final component of the Featurestore's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within the project and location.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Featurestore, CreateFeaturestoreOperationMetadata>
createFeaturestoreAsync(String parent, Featurestore featurestore, String featurestoreId) {
CreateFeaturestoreRequest request =
CreateFeaturestoreRequest.newBuilder()
.setParent(parent)
.setFeaturestore(featurestore)
.setFeaturestoreId(featurestoreId)
.build();
return createFeaturestoreAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Featurestore in a given project and location.
Expand Down Expand Up @@ -904,6 +983,80 @@ public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> crea
return createEntityTypeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new EntityType in a given Featurestore.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
* EntityType entityType = EntityType.newBuilder().build();
* String entityTypeId = "entityTypeId767740856";
* EntityType response =
* featurestoreServiceClient.createEntityTypeAsync(parent, entityType, entityTypeId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}`
* @param entityType The EntityType to create.
* @param entityTypeId Required. The ID to use for the EntityType, which will become the final
* component of the EntityType's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within a featurestore.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> createEntityTypeAsync(
FeaturestoreName parent, EntityType entityType, String entityTypeId) {
CreateEntityTypeRequest request =
CreateEntityTypeRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setEntityType(entityType)
.setEntityTypeId(entityTypeId)
.build();
return createEntityTypeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new EntityType in a given Featurestore.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
* EntityType entityType = EntityType.newBuilder().build();
* String entityTypeId = "entityTypeId767740856";
* EntityType response =
* featurestoreServiceClient.createEntityTypeAsync(parent, entityType, entityTypeId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}`
* @param entityType The EntityType to create.
* @param entityTypeId Required. The ID to use for the EntityType, which will become the final
* component of the EntityType's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within a featurestore.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> createEntityTypeAsync(
String parent, EntityType entityType, String entityTypeId) {
CreateEntityTypeRequest request =
CreateEntityTypeRequest.newBuilder()
.setParent(parent)
.setEntityType(entityType)
.setEntityTypeId(entityTypeId)
.build();
return createEntityTypeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new EntityType in a given Featurestore.
Expand Down Expand Up @@ -1574,6 +1727,83 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
return createFeatureAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Feature in a given EntityType.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* EntityTypeName parent =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
* Feature feature = Feature.newBuilder().build();
* String featureId = "featureId-420503887";
* Feature response =
* featurestoreServiceClient.createFeatureAsync(parent, feature, featureId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the EntityType to create a Feature. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
* @param feature Required. The Feature to create.
* @param featureId Required. The ID to use for the Feature, which will become the final component
* of the Feature's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within an EntityType.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeatureAsync(
EntityTypeName parent, Feature feature, String featureId) {
CreateFeatureRequest request =
CreateFeatureRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setFeature(feature)
.setFeatureId(featureId)
.build();
return createFeatureAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Feature in a given EntityType.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String parent =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString();
* Feature feature = Feature.newBuilder().build();
* String featureId = "featureId-420503887";
* Feature response =
* featurestoreServiceClient.createFeatureAsync(parent, feature, featureId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the EntityType to create a Feature. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
* @param feature Required. The Feature to create.
* @param featureId Required. The ID to use for the Feature, which will become the final component
* of the Feature's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within an EntityType.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeatureAsync(
String parent, Feature feature, String featureId) {
CreateFeatureRequest request =
CreateFeatureRequest.newBuilder()
.setParent(parent)
.setFeature(feature)
.setFeatureId(featureId)
.build();
return createFeatureAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Feature in a given EntityType.
Expand Down

0 comments on commit 2b79994

Please sign in to comment.