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

Commit 019a774

Browse files
feat: add TPU_V2 & TPU_V3 values to AcceleratorType in aiplatform v1/v1beta1 accelerator_type.proto (#796)
* docs(aiplatform): fix misformatted field description PiperOrigin-RevId: 429098186 Source-Link: googleapis/googleapis@e75c527 Source-Link: https://github.com/googleapis/googleapis-gen/commit/611471333818f88f66bfe24ac97d2064ce0b52ad Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjExNDcxMzMzODE4Zjg4ZjY2YmZlMjRhYzk3ZDIwNjRjZTBiNTJhZCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add TPU_V2 & TPU_V3 values to AcceleratorType in aiplatform v1/v1beta1 accelerator_type.proto PiperOrigin-RevId: 430259767 Source-Link: googleapis/googleapis@f873e7f Source-Link: https://github.com/googleapis/googleapis-gen/commit/49f573f3b76da8880d3a82b7903036fad1a3afc5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDlmNTczZjNiNzZkYTg4ODBkM2E4MmI3OTAzMDM2ZmFkMWEzYWZjNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6e0e91d commit 019a774

File tree

14 files changed

+150
-63
lines changed

14 files changed

+150
-63
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2751,7 +2751,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
27512751
*
27522752
* @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name.
27532753
* Format:
2754-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
2754+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
27552755
* @param deployedModelId Required. The DeployedModel ID of the
27562756
* [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
27572757
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2795,7 +2795,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
27952795
*
27962796
* @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name.
27972797
* Format:
2798-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
2798+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
27992799
* @param deployedModelId Required. The DeployedModel ID of the
28002800
* [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
28012801
* @throws com.google.api.gax.rpc.ApiException if the remote call fails

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2752,7 +2752,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
27522752
*
27532753
* @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name.
27542754
* Format:
2755-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
2755+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
27562756
* @param deployedModelId Required. The DeployedModel ID of the
27572757
* [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
27582758
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2796,7 +2796,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
27962796
*
27972797
* @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name.
27982798
* Format:
2799-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
2799+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
28002800
* @param deployedModelId Required. The DeployedModel ID of the
28012801
* [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
28022802
* @throws com.google.api.gax.rpc.ApiException if the remote call fails

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

+44
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,26 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
9898
* <code>NVIDIA_TESLA_A100 = 8;</code>
9999
*/
100100
NVIDIA_TESLA_A100(8),
101+
/**
102+
*
103+
*
104+
* <pre>
105+
* TPU v2.
106+
* </pre>
107+
*
108+
* <code>TPU_V2 = 6;</code>
109+
*/
110+
TPU_V2(6),
111+
/**
112+
*
113+
*
114+
* <pre>
115+
* TPU v3.
116+
* </pre>
117+
*
118+
* <code>TPU_V3 = 7;</code>
119+
*/
120+
TPU_V3(7),
101121
UNRECOGNIZED(-1),
102122
;
103123

@@ -171,6 +191,26 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
171191
* <code>NVIDIA_TESLA_A100 = 8;</code>
172192
*/
173193
public static final int NVIDIA_TESLA_A100_VALUE = 8;
194+
/**
195+
*
196+
*
197+
* <pre>
198+
* TPU v2.
199+
* </pre>
200+
*
201+
* <code>TPU_V2 = 6;</code>
202+
*/
203+
public static final int TPU_V2_VALUE = 6;
204+
/**
205+
*
206+
*
207+
* <pre>
208+
* TPU v3.
209+
* </pre>
210+
*
211+
* <code>TPU_V3 = 7;</code>
212+
*/
213+
public static final int TPU_V3_VALUE = 7;
174214

175215
public final int getNumber() {
176216
if (this == UNRECOGNIZED) {
@@ -210,6 +250,10 @@ public static AcceleratorType forNumber(int value) {
210250
return NVIDIA_TESLA_T4;
211251
case 8:
212252
return NVIDIA_TESLA_A100;
253+
case 6:
254+
return TPU_V2;
255+
case 7:
256+
return TPU_V3;
213257
default:
214258
return null;
215259
}

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

+13-18
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
3636
static {
3737
java.lang.String[] descriptorData = {
3838
"\n1google/cloud/aiplatform/v1/accelerator"
39-
+ "_type.proto\022\032google.cloud.aiplatform.v1\032"
40-
+ "\034google/api/annotations.proto*\270\001\n\017Accele"
41-
+ "ratorType\022 \n\034ACCELERATOR_TYPE_UNSPECIFIE"
42-
+ "D\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDIA_TESL"
43-
+ "A_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n\017NVIDI"
44-
+ "A_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T4\020\005\022\025\n\021NVI"
45-
+ "DIA_TESLA_A100\020\010B\330\001\n\036com.google.cloud.ai"
46-
+ "platform.v1B\024AcceleratorTypeProtoP\001ZDgoo"
47-
+ "gle.golang.org/genproto/googleapis/cloud"
48-
+ "/aiplatform/v1;aiplatform\252\002\032Google.Cloud"
49-
+ ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform"
50-
+ "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro"
51-
+ "to3"
39+
+ "_type.proto\022\032google.cloud.aiplatform.v1*"
40+
+ "\320\001\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
41+
+ "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N"
42+
+ "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020"
43+
+ "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T"
44+
+ "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\n\n\006TPU_V2\020\006\022\n"
45+
+ "\n\006TPU_V3\020\007B\330\001\n\036com.google.cloud.aiplatfo"
46+
+ "rm.v1B\024AcceleratorTypeProtoP\001ZDgoogle.go"
47+
+ "lang.org/genproto/googleapis/cloud/aipla"
48+
+ "tform/v1;aiplatform\252\002\032Google.Cloud.AIPla"
49+
+ "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035"
50+
+ "Google::Cloud::AIPlatform::V1b\006proto3"
5251
};
5352
descriptor =
5453
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
55-
descriptorData,
56-
new com.google.protobuf.Descriptors.FileDescriptor[] {
57-
com.google.api.AnnotationsProto.getDescriptor(),
58-
});
59-
com.google.api.AnnotationsProto.getDescriptor();
54+
descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
6055
}
6156

6257
// @@protoc_insertion_point(outer_class_scope)

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ public com.google.protobuf.Parser<StatsAnomaliesObjective> getParserForType() {
986986
* <pre>
987987
* Required. ModelDeploymentMonitoring Job resource name.
988988
* Format:
989-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
989+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
990990
* </pre>
991991
*
992992
* <code>
@@ -1013,7 +1013,7 @@ public java.lang.String getModelDeploymentMonitoringJob() {
10131013
* <pre>
10141014
* Required. ModelDeploymentMonitoring Job resource name.
10151015
* Format:
1016-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
1016+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
10171017
* </pre>
10181018
*
10191019
* <code>
@@ -1936,7 +1936,7 @@ public Builder mergeFrom(
19361936
* <pre>
19371937
* Required. ModelDeploymentMonitoring Job resource name.
19381938
* Format:
1939-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
1939+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
19401940
* </pre>
19411941
*
19421942
* <code>
@@ -1962,7 +1962,7 @@ public java.lang.String getModelDeploymentMonitoringJob() {
19621962
* <pre>
19631963
* Required. ModelDeploymentMonitoring Job resource name.
19641964
* Format:
1965-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
1965+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
19661966
* </pre>
19671967
*
19681968
* <code>
@@ -1988,7 +1988,7 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() {
19881988
* <pre>
19891989
* Required. ModelDeploymentMonitoring Job resource name.
19901990
* Format:
1991-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
1991+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
19921992
* </pre>
19931993
*
19941994
* <code>
@@ -2013,7 +2013,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) {
20132013
* <pre>
20142014
* Required. ModelDeploymentMonitoring Job resource name.
20152015
* Format:
2016-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
2016+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
20172017
* </pre>
20182018
*
20192019
* <code>
@@ -2034,7 +2034,7 @@ public Builder clearModelDeploymentMonitoringJob() {
20342034
* <pre>
20352035
* Required. ModelDeploymentMonitoring Job resource name.
20362036
* Format:
2037-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
2037+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
20382038
* </pre>
20392039
*
20402040
* <code>

proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder
2929
* <pre>
3030
* Required. ModelDeploymentMonitoring Job resource name.
3131
* Format:
32-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
32+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
3333
* </pre>
3434
*
3535
* <code>
@@ -45,7 +45,7 @@ public interface SearchModelDeploymentMonitoringStatsAnomaliesRequestOrBuilder
4545
* <pre>
4646
* Required. ModelDeploymentMonitoring Job resource name.
4747
* Format:
48-
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
48+
* `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
4949
* </pre>
5050
*
5151
* <code>

proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ syntax = "proto3";
1616

1717
package google.cloud.aiplatform.v1;
1818

19-
import "google/api/annotations.proto";
20-
2119
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
2220
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
2321
option java_multiple_files = true;
@@ -48,4 +46,10 @@ enum AcceleratorType {
4846

4947
// Nvidia Tesla A100 GPU.
5048
NVIDIA_TESLA_A100 = 8;
49+
50+
// TPU v2.
51+
TPU_V2 = 6;
52+
53+
// TPU v3.
54+
TPU_V3 = 7;
5155
}

proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ message SearchModelDeploymentMonitoringStatsAnomaliesRequest {
813813

814814
// Required. ModelDeploymentMonitoring Job resource name.
815815
// Format:
816-
// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
816+
// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
817817
string model_deployment_monitoring_job = 1 [
818818
(google.api.field_behavior) = REQUIRED,
819819
(google.api.resource_reference) = {

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

+44
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,26 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
9898
* <code>NVIDIA_TESLA_A100 = 8;</code>
9999
*/
100100
NVIDIA_TESLA_A100(8),
101+
/**
102+
*
103+
*
104+
* <pre>
105+
* TPU v2.
106+
* </pre>
107+
*
108+
* <code>TPU_V2 = 6;</code>
109+
*/
110+
TPU_V2(6),
111+
/**
112+
*
113+
*
114+
* <pre>
115+
* TPU v3.
116+
* </pre>
117+
*
118+
* <code>TPU_V3 = 7;</code>
119+
*/
120+
TPU_V3(7),
101121
UNRECOGNIZED(-1),
102122
;
103123

@@ -171,6 +191,26 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
171191
* <code>NVIDIA_TESLA_A100 = 8;</code>
172192
*/
173193
public static final int NVIDIA_TESLA_A100_VALUE = 8;
194+
/**
195+
*
196+
*
197+
* <pre>
198+
* TPU v2.
199+
* </pre>
200+
*
201+
* <code>TPU_V2 = 6;</code>
202+
*/
203+
public static final int TPU_V2_VALUE = 6;
204+
/**
205+
*
206+
*
207+
* <pre>
208+
* TPU v3.
209+
* </pre>
210+
*
211+
* <code>TPU_V3 = 7;</code>
212+
*/
213+
public static final int TPU_V3_VALUE = 7;
174214

175215
public final int getNumber() {
176216
if (this == UNRECOGNIZED) {
@@ -210,6 +250,10 @@ public static AcceleratorType forNumber(int value) {
210250
return NVIDIA_TESLA_T4;
211251
case 8:
212252
return NVIDIA_TESLA_A100;
253+
case 6:
254+
return TPU_V2;
255+
case 7:
256+
return TPU_V3;
213257
default:
214258
return null;
215259
}

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

+13-17
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
3737
java.lang.String[] descriptorData = {
3838
"\n6google/cloud/aiplatform/v1beta1/accele"
3939
+ "rator_type.proto\022\037google.cloud.aiplatfor"
40-
+ "m.v1beta1\032\034google/api/annotations.proto*"
41-
+ "\270\001\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
42-
+ "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N"
43-
+ "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020"
44-
+ "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T"
45-
+ "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010B\361\001\n#com.googl"
46-
+ "e.cloud.aiplatform.v1beta1B\024AcceleratorT"
47-
+ "ypeProtoP\001ZIgoogle.golang.org/genproto/g"
48-
+ "oogleapis/cloud/aiplatform/v1beta1;aipla"
49-
+ "tform\252\002\037Google.Cloud.AIPlatform.V1Beta1\312"
50-
+ "\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goog"
51-
+ "le::Cloud::AIPlatform::V1beta1b\006proto3"
40+
+ "m.v1beta1*\320\001\n\017AcceleratorType\022 \n\034ACCELER"
41+
+ "ATOR_TYPE_UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_"
42+
+ "K80\020\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_T"
43+
+ "ESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVID"
44+
+ "IA_TESLA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\n\n\006"
45+
+ "TPU_V2\020\006\022\n\n\006TPU_V3\020\007B\361\001\n#com.google.clou"
46+
+ "d.aiplatform.v1beta1B\024AcceleratorTypePro"
47+
+ "toP\001ZIgoogle.golang.org/genproto/googlea"
48+
+ "pis/cloud/aiplatform/v1beta1;aiplatform\252"
49+
+ "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog"
50+
+ "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cl"
51+
+ "oud::AIPlatform::V1beta1b\006proto3"
5252
};
5353
descriptor =
5454
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
55-
descriptorData,
56-
new com.google.protobuf.Descriptors.FileDescriptor[] {
57-
com.google.api.AnnotationsProto.getDescriptor(),
58-
});
59-
com.google.api.AnnotationsProto.getDescriptor();
55+
descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
6056
}
6157

6258
// @@protoc_insertion_point(outer_class_scope)

0 commit comments

Comments
 (0)