Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [aiplatform] add annotation_labels to ImportDataConfig in aiplatform v1 dataset.proto #8725

Merged
merged 8 commits into from
Nov 4, 2022
149 changes: 4 additions & 145 deletions java-aiplatform/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
* @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
* <p>This value may be up to 128 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
Expand Down Expand Up @@ -2099,7 +2099,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
* @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
* <p>This value may be up to 128 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
Expand Down Expand Up @@ -3302,6 +3302,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
* .addAllPassThroughFields(
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
* .setStartTime(Timestamp.newBuilder().build())
* .build();
* BatchReadFeatureValuesResponse response =
* featurestoreServiceClient.batchReadFeatureValuesAsync(request).get();
Expand Down Expand Up @@ -3342,6 +3343,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
* .addAllPassThroughFields(
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
* .setStartTime(Timestamp.newBuilder().build())
* .build();
* OperationFuture<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>
* future =
Expand Down Expand Up @@ -3386,6 +3388,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
* .addAllPassThroughFields(
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
* .setStartTime(Timestamp.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* featurestoreServiceClient.batchReadFeatureValuesCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ public final TensorboardExperiment updateTensorboardExperiment(
* }</pre>
*
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
Expand Down Expand Up @@ -1344,7 +1344,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
* }</pre>
*
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(String parent) {
Expand Down Expand Up @@ -2176,7 +2176,7 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
*
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardRunsPagedResponse listTensorboardRuns(
Expand Down Expand Up @@ -2213,7 +2213,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
*
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent) {
Expand Down Expand Up @@ -3087,7 +3087,7 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
*
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
Expand Down Expand Up @@ -3124,7 +3124,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
*
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(String parent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The parent location resource where this DeploymentResourcePool will be
* created. Format: projects/{project}/locations/{location}
* created. Format: `projects/{project}/locations/{location}`
* @param deploymentResourcePool Required. The DeploymentResourcePool to create.
* @param deploymentResourcePoolId Required. The ID to use for the DeploymentResourcePool, which
* will become the final component of the DeploymentResourcePool's resource name.
Expand Down Expand Up @@ -269,7 +269,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The parent location resource where this DeploymentResourcePool will be
* created. Format: projects/{project}/locations/{location}
* created. Format: `projects/{project}/locations/{location}`
* @param deploymentResourcePool Required. The DeploymentResourcePool to create.
* @param deploymentResourcePoolId Required. The ID to use for the DeploymentResourcePool, which
* will become the final component of the DeploymentResourcePool's resource name.
Expand Down Expand Up @@ -420,7 +420,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param name Required. The name of the DeploymentResourcePool to retrieve. Format:
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DeploymentResourcePool getDeploymentResourcePool(DeploymentResourcePoolName name) {
Expand Down Expand Up @@ -454,7 +454,7 @@ public final DeploymentResourcePool getDeploymentResourcePool(DeploymentResource
* }</pre>
*
* @param name Required. The name of the DeploymentResourcePool to retrieve. Format:
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DeploymentResourcePool getDeploymentResourcePool(String name) {
Expand Down Expand Up @@ -555,7 +555,7 @@ public final DeploymentResourcePool getDeploymentResourcePool(
* }</pre>
*
* @param parent Required. The parent Location which owns this collection of
* DeploymentResourcePools. Format: projects/{project}/locations/{location}
* DeploymentResourcePools. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools(
Expand Down Expand Up @@ -590,7 +590,7 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool
* }</pre>
*
* @param parent Required. The parent Location which owns this collection of
* DeploymentResourcePools. Format: projects/{project}/locations/{location}
* DeploymentResourcePools. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools(String parent) {
Expand Down Expand Up @@ -734,7 +734,7 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool
* }</pre>
*
* @param name Required. The name of the DeploymentResourcePool to delete. Format:
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentResourcePoolAsync(
Expand Down Expand Up @@ -768,7 +768,7 @@ public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentRes
* }</pre>
*
* @param name Required. The name of the DeploymentResourcePool to delete. Format:
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentResourcePoolAsync(
Expand Down Expand Up @@ -908,7 +908,7 @@ public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentRes
*
* @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query.
* Format:
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final QueryDeployedModelsPagedResponse queryDeployedModels(String deploymentResourcePool) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
* @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
* <p>This value may be up to 128 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
Expand Down Expand Up @@ -2101,7 +2101,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
* @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
* <p>This value may be up to 128 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
Expand Down Expand Up @@ -3304,6 +3304,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
* .addAllPassThroughFields(
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
* .setStartTime(Timestamp.newBuilder().build())
* .build();
* BatchReadFeatureValuesResponse response =
* featurestoreServiceClient.batchReadFeatureValuesAsync(request).get();
Expand Down Expand Up @@ -3344,6 +3345,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
* .addAllPassThroughFields(
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
* .setStartTime(Timestamp.newBuilder().build())
* .build();
* OperationFuture<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>
* future =
Expand Down Expand Up @@ -3388,6 +3390,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
* .addAllPassThroughFields(
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
* .setStartTime(Timestamp.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* featurestoreServiceClient.batchReadFeatureValuesCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ public final TensorboardExperiment updateTensorboardExperiment(
* }</pre>
*
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
Expand Down Expand Up @@ -1346,7 +1346,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
* }</pre>
*
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(String parent) {
Expand Down Expand Up @@ -2178,7 +2178,7 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
*
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardRunsPagedResponse listTensorboardRuns(
Expand Down Expand Up @@ -2215,7 +2215,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
*
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent) {
Expand Down Expand Up @@ -3089,7 +3089,7 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
*
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
Expand Down Expand Up @@ -3126,7 +3126,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
*
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
* Format:
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(String parent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ public void getModelTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.build();
mockModelService.addResponse(expectedResponse);

Expand Down Expand Up @@ -307,6 +308,7 @@ public void getModelTest2() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.build();
mockModelService.addResponse(expectedResponse);

Expand Down Expand Up @@ -548,6 +550,7 @@ public void updateModelTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.build();
mockModelService.addResponse(expectedResponse);

Expand Down Expand Up @@ -784,6 +787,7 @@ public void mergeVersionAliasesTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.build();
mockModelService.addResponse(expectedResponse);

Expand Down Expand Up @@ -852,6 +856,7 @@ public void mergeVersionAliasesTest2() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
.setMetadataArtifact("metadataArtifact1018119713")
.build();
mockModelService.addResponse(expectedResponse);

Expand Down
Loading