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

Commit d73ec5a

Browse files
authored
feat: adds enhanced protos for time series forecasting (#356)
Library generation was broken for a while and some commits were not auto proposed as PRs. This PR manually generated those changes. fix!: remove display_name from FeatureStore feat: add invalid_row_count to ImportFeatureValuesResponse and ImportFeatureValuesOperationMetadata
1 parent 0ab8e6b commit d73ec5a

File tree

36 files changed

+16292
-2606
lines changed

36 files changed

+16292
-2606
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
580580
* be overwritten. Set the update_mask to `*` to override all fields.
581581
* <p>Updatable fields:
582582
* <p>&#42; `display_name` &#42; `labels` &#42; `online_serving_config.fixed_node_count` &#42;
583-
* `online_serving_config.max_online_serving_size`
583+
* `retention_policy.online_storage_ttl_days`
584584
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
585585
*/
586586
public final OperationFuture<Featurestore, UpdateFeaturestoreOperationMetadata>

google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public void createFeaturestoreTest() throws Exception {
9595
Featurestore expectedResponse =
9696
Featurestore.newBuilder()
9797
.setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
98-
.setDisplayName("displayName1714148973")
9998
.setCreateTime(Timestamp.newBuilder().build())
10099
.setUpdateTime(Timestamp.newBuilder().build())
101100
.setEtag("etag3123477")
@@ -150,7 +149,6 @@ public void createFeaturestoreTest2() throws Exception {
150149
Featurestore expectedResponse =
151150
Featurestore.newBuilder()
152151
.setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
153-
.setDisplayName("displayName1714148973")
154152
.setCreateTime(Timestamp.newBuilder().build())
155153
.setUpdateTime(Timestamp.newBuilder().build())
156154
.setEtag("etag3123477")
@@ -205,7 +203,6 @@ public void getFeaturestoreTest() throws Exception {
205203
Featurestore expectedResponse =
206204
Featurestore.newBuilder()
207205
.setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
208-
.setDisplayName("displayName1714148973")
209206
.setCreateTime(Timestamp.newBuilder().build())
210207
.setUpdateTime(Timestamp.newBuilder().build())
211208
.setEtag("etag3123477")
@@ -249,7 +246,6 @@ public void getFeaturestoreTest2() throws Exception {
249246
Featurestore expectedResponse =
250247
Featurestore.newBuilder()
251248
.setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
252-
.setDisplayName("displayName1714148973")
253249
.setCreateTime(Timestamp.newBuilder().build())
254250
.setUpdateTime(Timestamp.newBuilder().build())
255251
.setEtag("etag3123477")
@@ -381,7 +377,6 @@ public void updateFeaturestoreTest() throws Exception {
381377
Featurestore expectedResponse =
382378
Featurestore.newBuilder()
383379
.setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
384-
.setDisplayName("displayName1714148973")
385380
.setCreateTime(Timestamp.newBuilder().build())
386381
.setUpdateTime(Timestamp.newBuilder().build())
387382
.setEtag("etag3123477")
@@ -1495,6 +1490,7 @@ public void importFeatureValuesTest() throws Exception {
14951490
ImportFeatureValuesResponse.newBuilder()
14961491
.setImportedEntityCount(-1840044274)
14971492
.setImportedFeatureValueCount(-1221471427)
1493+
.setInvalidRowCount(-366655966)
14981494
.build();
14991495
Operation resultOperation =
15001496
Operation.newBuilder()
@@ -1544,6 +1540,7 @@ public void importFeatureValuesTest2() throws Exception {
15441540
ImportFeatureValuesResponse.newBuilder()
15451541
.setImportedEntityCount(-1840044274)
15461542
.setImportedFeatureValueCount(-1221471427)
1543+
.setInvalidRowCount(-366655966)
15471544
.build();
15481545
Operation resultOperation =
15491546
Operation.newBuilder()

proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
<differenceType>7012</differenceType>
1717
<method>* has*()</method>
1818
</difference>
19+
1920
</differences>

proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml

+45
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,49 @@
135135
<differenceType>6001</differenceType>
136136
<field>TPU*</field>
137137
</difference>
138+
<difference>
139+
<differenceType>7002</differenceType>
140+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
141+
<method>* get*(*)</method>
142+
</difference>
143+
<difference>
144+
<differenceType>7002</differenceType>
145+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
146+
<method>* set*(*)</method>
147+
</difference>
148+
<difference>
149+
<differenceType>7002</differenceType>
150+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
151+
<method>* has*(*)</method>
152+
</difference>
153+
<difference>
154+
<differenceType>7002</differenceType>
155+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
156+
<method>* clear*(*)</method>
157+
</difference>
158+
<difference>
159+
<differenceType>7002</differenceType>
160+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
161+
<method>* merge*(*)</method>
162+
</difference>
163+
<difference>
164+
<differenceType>7002</differenceType>
165+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
166+
<method>* add*(*)</method>
167+
</difference>
168+
<difference>
169+
<differenceType>6001</differenceType>
170+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
171+
<field>REPEATED_*</field>
172+
</difference>
173+
<difference>
174+
<differenceType>6011</differenceType>
175+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
176+
<field>REPEATED_*</field>
177+
</difference>
178+
<difference>
179+
<differenceType>6011</differenceType>
180+
<className>com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs*</className>
181+
<field>*_FIELD_NUMBER</field>
182+
</difference>
138183
</differences>

proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java

+22
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
8888
* <code>NVIDIA_TESLA_T4 = 5;</code>
8989
*/
9090
NVIDIA_TESLA_T4(5),
91+
/**
92+
*
93+
*
94+
* <pre>
95+
* Nvidia Tesla A100 GPU.
96+
* </pre>
97+
*
98+
* <code>NVIDIA_TESLA_A100 = 8;</code>
99+
*/
100+
NVIDIA_TESLA_A100(8),
91101
UNRECOGNIZED(-1),
92102
;
93103

@@ -151,6 +161,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
151161
* <code>NVIDIA_TESLA_T4 = 5;</code>
152162
*/
153163
public static final int NVIDIA_TESLA_T4_VALUE = 5;
164+
/**
165+
*
166+
*
167+
* <pre>
168+
* Nvidia Tesla A100 GPU.
169+
* </pre>
170+
*
171+
* <code>NVIDIA_TESLA_A100 = 8;</code>
172+
*/
173+
public static final int NVIDIA_TESLA_A100_VALUE = 8;
154174

155175
public final int getNumber() {
156176
if (this == UNRECOGNIZED) {
@@ -188,6 +208,8 @@ public static AcceleratorType forNumber(int value) {
188208
return NVIDIA_TESLA_P4;
189209
case 5:
190210
return NVIDIA_TESLA_T4;
211+
case 8:
212+
return NVIDIA_TESLA_A100;
191213
default:
192214
return null;
193215
}

proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
3838
"\n6google/cloud/aiplatform/v1beta1/accele"
3939
+ "rator_type.proto\022\037google.cloud.aiplatfor"
4040
+ "m.v1beta1\032\034google/api/annotations.proto*"
41-
+ "\241\001\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
41+
+ "\270\001\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
4242
+ "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N"
4343
+ "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020"
4444
+ "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T"
45-
+ "4\020\005B\210\001\n#com.google.cloud.aiplatform.v1be"
46-
+ "ta1B\024AcceleratorTypeProtoP\001ZIgoogle.gola"
47-
+ "ng.org/genproto/googleapis/cloud/aiplatf"
48-
+ "orm/v1beta1;aiplatformb\006proto3"
45+
+ "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010B\210\001\n#com.googl"
46+
+ "e.cloud.aiplatform.v1beta1B\024AcceleratorT"
47+
+ "ypeProtoP\001ZIgoogle.golang.org/genproto/g"
48+
+ "oogleapis/cloud/aiplatform/v1beta1;aipla"
49+
+ "tformb\006proto3"
4950
};
5051
descriptor =
5152
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

0 commit comments

Comments
 (0)