Skip to content

Commit 57025df

Browse files
feat: [aiplatform] add annotation_labels to ImportDataConfig in aiplatform v1 dataset.proto (#8725)
1 parent f857175 commit 57025df

File tree

151 files changed

+5771
-1461
lines changed

Some content is hidden

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

151 files changed

+5771
-1461
lines changed

java-aiplatform/README.md

Lines changed: 4 additions & 145 deletions
Large diffs are not rendered by default.

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
20552055
* @param feature Required. The Feature to create.
20562056
* @param featureId Required. The ID to use for the Feature, which will become the final component
20572057
* of the Feature's resource name.
2058-
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
2058+
* <p>This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
20592059
* character cannot be a number.
20602060
* <p>The value must be unique within an EntityType.
20612061
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2099,7 +2099,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
20992099
* @param feature Required. The Feature to create.
21002100
* @param featureId Required. The ID to use for the Feature, which will become the final component
21012101
* of the Feature's resource name.
2102-
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
2102+
* <p>This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
21032103
* character cannot be a number.
21042104
* <p>The value must be unique within an EntityType.
21052105
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -3302,6 +3302,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
33023302
* .addAllPassThroughFields(
33033303
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
33043304
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
3305+
* .setStartTime(Timestamp.newBuilder().build())
33053306
* .build();
33063307
* BatchReadFeatureValuesResponse response =
33073308
* featurestoreServiceClient.batchReadFeatureValuesAsync(request).get();
@@ -3342,6 +3343,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
33423343
* .addAllPassThroughFields(
33433344
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
33443345
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
3346+
* .setStartTime(Timestamp.newBuilder().build())
33453347
* .build();
33463348
* OperationFuture<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>
33473349
* future =
@@ -3386,6 +3388,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
33863388
* .addAllPassThroughFields(
33873389
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
33883390
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
3391+
* .setStartTime(Timestamp.newBuilder().build())
33893392
* .build();
33903393
* ApiFuture<Operation> future =
33913394
* featurestoreServiceClient.batchReadFeatureValuesCallable().futureCall(request);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ public final TensorboardExperiment updateTensorboardExperiment(
13101310
* }</pre>
13111311
*
13121312
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
1313-
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
1313+
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
13141314
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13151315
*/
13161316
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
@@ -1344,7 +1344,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
13441344
* }</pre>
13451345
*
13461346
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
1347-
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
1347+
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
13481348
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13491349
*/
13501350
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(String parent) {
@@ -2176,7 +2176,7 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
21762176
*
21772177
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
21782178
* Format:
2179-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
2179+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
21802180
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
21812181
*/
21822182
public final ListTensorboardRunsPagedResponse listTensorboardRuns(
@@ -2213,7 +2213,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
22132213
*
22142214
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
22152215
* Format:
2216-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
2216+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
22172217
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
22182218
*/
22192219
public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent) {
@@ -3087,7 +3087,7 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
30873087
*
30883088
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
30893089
* Format:
3090-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
3090+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
30913091
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
30923092
*/
30933093
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
@@ -3124,7 +3124,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
31243124
*
31253125
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
31263126
* Format:
3127-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
3127+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
31283128
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
31293129
*/
31303130
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(String parent) {

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public final OperationsClient getOperationsClient() {
220220
* }</pre>
221221
*
222222
* @param parent Required. The parent location resource where this DeploymentResourcePool will be
223-
* created. Format: projects/{project}/locations/{location}
223+
* created. Format: `projects/{project}/locations/{location}`
224224
* @param deploymentResourcePool Required. The DeploymentResourcePool to create.
225225
* @param deploymentResourcePoolId Required. The ID to use for the DeploymentResourcePool, which
226226
* will become the final component of the DeploymentResourcePool's resource name.
@@ -269,7 +269,7 @@ public final OperationsClient getOperationsClient() {
269269
* }</pre>
270270
*
271271
* @param parent Required. The parent location resource where this DeploymentResourcePool will be
272-
* created. Format: projects/{project}/locations/{location}
272+
* created. Format: `projects/{project}/locations/{location}`
273273
* @param deploymentResourcePool Required. The DeploymentResourcePool to create.
274274
* @param deploymentResourcePoolId Required. The ID to use for the DeploymentResourcePool, which
275275
* will become the final component of the DeploymentResourcePool's resource name.
@@ -420,7 +420,7 @@ public final OperationsClient getOperationsClient() {
420420
* }</pre>
421421
*
422422
* @param name Required. The name of the DeploymentResourcePool to retrieve. Format:
423-
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
423+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
424424
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
425425
*/
426426
public final DeploymentResourcePool getDeploymentResourcePool(DeploymentResourcePoolName name) {
@@ -454,7 +454,7 @@ public final DeploymentResourcePool getDeploymentResourcePool(DeploymentResource
454454
* }</pre>
455455
*
456456
* @param name Required. The name of the DeploymentResourcePool to retrieve. Format:
457-
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
457+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
458458
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
459459
*/
460460
public final DeploymentResourcePool getDeploymentResourcePool(String name) {
@@ -555,7 +555,7 @@ public final DeploymentResourcePool getDeploymentResourcePool(
555555
* }</pre>
556556
*
557557
* @param parent Required. The parent Location which owns this collection of
558-
* DeploymentResourcePools. Format: projects/{project}/locations/{location}
558+
* DeploymentResourcePools. Format: `projects/{project}/locations/{location}`
559559
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
560560
*/
561561
public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools(
@@ -590,7 +590,7 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool
590590
* }</pre>
591591
*
592592
* @param parent Required. The parent Location which owns this collection of
593-
* DeploymentResourcePools. Format: projects/{project}/locations/{location}
593+
* DeploymentResourcePools. Format: `projects/{project}/locations/{location}`
594594
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
595595
*/
596596
public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools(String parent) {
@@ -734,7 +734,7 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool
734734
* }</pre>
735735
*
736736
* @param name Required. The name of the DeploymentResourcePool to delete. Format:
737-
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
737+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
738738
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
739739
*/
740740
public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentResourcePoolAsync(
@@ -768,7 +768,7 @@ public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentRes
768768
* }</pre>
769769
*
770770
* @param name Required. The name of the DeploymentResourcePool to delete. Format:
771-
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
771+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
772772
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
773773
*/
774774
public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentResourcePoolAsync(
@@ -908,7 +908,7 @@ public final OperationFuture<Empty, DeleteOperationMetadata> deleteDeploymentRes
908908
*
909909
* @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query.
910910
* Format:
911-
* projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
911+
* `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
912912
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
913913
*/
914914
public final QueryDeployedModelsPagedResponse queryDeployedModels(String deploymentResourcePool) {

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
20572057
* @param feature Required. The Feature to create.
20582058
* @param featureId Required. The ID to use for the Feature, which will become the final component
20592059
* of the Feature's resource name.
2060-
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
2060+
* <p>This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
20612061
* character cannot be a number.
20622062
* <p>The value must be unique within an EntityType.
20632063
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2101,7 +2101,7 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
21012101
* @param feature Required. The Feature to create.
21022102
* @param featureId Required. The ID to use for the Feature, which will become the final component
21032103
* of the Feature's resource name.
2104-
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
2104+
* <p>This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first
21052105
* character cannot be a number.
21062106
* <p>The value must be unique within an EntityType.
21072107
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -3304,6 +3304,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
33043304
* .addAllPassThroughFields(
33053305
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
33063306
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
3307+
* .setStartTime(Timestamp.newBuilder().build())
33073308
* .build();
33083309
* BatchReadFeatureValuesResponse response =
33093310
* featurestoreServiceClient.batchReadFeatureValuesAsync(request).get();
@@ -3344,6 +3345,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
33443345
* .addAllPassThroughFields(
33453346
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
33463347
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
3348+
* .setStartTime(Timestamp.newBuilder().build())
33473349
* .build();
33483350
* OperationFuture<BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>
33493351
* future =
@@ -3388,6 +3390,7 @@ public final UnaryCallable<ImportFeatureValuesRequest, Operation> importFeatureV
33883390
* .addAllPassThroughFields(
33893391
* new ArrayList<BatchReadFeatureValuesRequest.PassThroughField>())
33903392
* .addAllEntityTypeSpecs(new ArrayList<BatchReadFeatureValuesRequest.EntityTypeSpec>())
3393+
* .setStartTime(Timestamp.newBuilder().build())
33913394
* .build();
33923395
* ApiFuture<Operation> future =
33933396
* featurestoreServiceClient.batchReadFeatureValuesCallable().futureCall(request);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ public final TensorboardExperiment updateTensorboardExperiment(
13121312
* }</pre>
13131313
*
13141314
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
1315-
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
1315+
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
13161316
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13171317
*/
13181318
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
@@ -1346,7 +1346,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
13461346
* }</pre>
13471347
*
13481348
* @param parent Required. The resource name of the Tensorboard to list TensorboardExperiments.
1349-
* Format: 'projects/{project}/locations/{location}/tensorboards/{tensorboard}'
1349+
* Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
13501350
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13511351
*/
13521352
public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(String parent) {
@@ -2178,7 +2178,7 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
21782178
*
21792179
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
21802180
* Format:
2181-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
2181+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
21822182
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
21832183
*/
21842184
public final ListTensorboardRunsPagedResponse listTensorboardRuns(
@@ -2215,7 +2215,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
22152215
*
22162216
* @param parent Required. The resource name of the TensorboardExperiment to list TensorboardRuns.
22172217
* Format:
2218-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}'
2218+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}`
22192219
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
22202220
*/
22212221
public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent) {
@@ -3089,7 +3089,7 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
30893089
*
30903090
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
30913091
* Format:
3092-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
3092+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
30933093
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
30943094
*/
30953095
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
@@ -3126,7 +3126,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
31263126
*
31273127
* @param parent Required. The resource name of the TensorboardRun to list TensorboardTimeSeries.
31283128
* Format:
3129-
* 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}'
3129+
* `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
31303130
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
31313131
*/
31323132
public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(String parent) {

java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public void getModelTest() throws Exception {
242242
.putAllLabels(new HashMap<String, String>())
243243
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
244244
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
245+
.setMetadataArtifact("metadataArtifact1018119713")
245246
.build();
246247
mockModelService.addResponse(expectedResponse);
247248

@@ -307,6 +308,7 @@ public void getModelTest2() throws Exception {
307308
.putAllLabels(new HashMap<String, String>())
308309
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
309310
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
311+
.setMetadataArtifact("metadataArtifact1018119713")
310312
.build();
311313
mockModelService.addResponse(expectedResponse);
312314

@@ -548,6 +550,7 @@ public void updateModelTest() throws Exception {
548550
.putAllLabels(new HashMap<String, String>())
549551
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
550552
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
553+
.setMetadataArtifact("metadataArtifact1018119713")
551554
.build();
552555
mockModelService.addResponse(expectedResponse);
553556

@@ -784,6 +787,7 @@ public void mergeVersionAliasesTest() throws Exception {
784787
.putAllLabels(new HashMap<String, String>())
785788
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
786789
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
790+
.setMetadataArtifact("metadataArtifact1018119713")
787791
.build();
788792
mockModelService.addResponse(expectedResponse);
789793

@@ -852,6 +856,7 @@ public void mergeVersionAliasesTest2() throws Exception {
852856
.putAllLabels(new HashMap<String, String>())
853857
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
854858
.setModelSourceInfo(ModelSourceInfo.newBuilder().build())
859+
.setMetadataArtifact("metadataArtifact1018119713")
855860
.build();
856861
mockModelService.addResponse(expectedResponse);
857862

0 commit comments

Comments
 (0)