Skip to content

Commit 9967509

Browse files
1 parent 5651ee6 commit 9967509

File tree

6 files changed

+195
-6
lines changed

6 files changed

+195
-6
lines changed

clients/google-api-services-dataflow/v1b3/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-dataflow</artifactId>
25-
<version>v1b3-rev20241014-2.0.0</version>
25+
<version>v1b3-rev20241028-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241014-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241028-2.0.0'
3939
}
4040
```
4141

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dataflow.model;
18+
19+
/**
20+
* Information about the GPU usage on the worker.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Dataflow API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GPUUsage extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Timestamp of the measurement.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private String timestamp;
38+
39+
/**
40+
* Required. Utilization info about the GPU.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private GPUUtilization utilization;
45+
46+
/**
47+
* Required. Timestamp of the measurement.
48+
* @return value or {@code null} for none
49+
*/
50+
public String getTimestamp() {
51+
return timestamp;
52+
}
53+
54+
/**
55+
* Required. Timestamp of the measurement.
56+
* @param timestamp timestamp or {@code null} for none
57+
*/
58+
public GPUUsage setTimestamp(String timestamp) {
59+
this.timestamp = timestamp;
60+
return this;
61+
}
62+
63+
/**
64+
* Required. Utilization info about the GPU.
65+
* @return value or {@code null} for none
66+
*/
67+
public GPUUtilization getUtilization() {
68+
return utilization;
69+
}
70+
71+
/**
72+
* Required. Utilization info about the GPU.
73+
* @param utilization utilization or {@code null} for none
74+
*/
75+
public GPUUsage setUtilization(GPUUtilization utilization) {
76+
this.utilization = utilization;
77+
return this;
78+
}
79+
80+
@Override
81+
public GPUUsage set(String fieldName, Object value) {
82+
return (GPUUsage) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public GPUUsage clone() {
87+
return (GPUUsage) super.clone();
88+
}
89+
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dataflow.model;
18+
19+
/**
20+
* Utilization details about the GPU.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Dataflow API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GPUUtilization extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. GPU utilization rate of any kernel over the last sample period in the range of [0,
34+
* 1].
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Double rate;
39+
40+
/**
41+
* Required. GPU utilization rate of any kernel over the last sample period in the range of [0,
42+
* 1].
43+
* @return value or {@code null} for none
44+
*/
45+
public java.lang.Double getRate() {
46+
return rate;
47+
}
48+
49+
/**
50+
* Required. GPU utilization rate of any kernel over the last sample period in the range of [0,
51+
* 1].
52+
* @param rate rate or {@code null} for none
53+
*/
54+
public GPUUtilization setRate(java.lang.Double rate) {
55+
this.rate = rate;
56+
return this;
57+
}
58+
59+
@Override
60+
public GPUUtilization set(String fieldName, Object value) {
61+
return (GPUUtilization) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public GPUUtilization clone() {
66+
return (GPUUtilization) super.clone();
67+
}
68+
69+
}

clients/google-api-services-dataflow/v1b3/2.0.0/com/google/api/services/dataflow/model/ResourceUtilizationReport.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ public final class ResourceUtilizationReport extends com.google.api.client.json.
5050
com.google.api.client.util.Data.nullOf(CPUTime.class);
5151
}
5252

53+
/**
54+
* Optional. GPU usage samples.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.util.List<GPUUsage> gpuUsage;
59+
60+
static {
61+
// hack to force ProGuard to consider GPUUsage used, since otherwise it would be stripped out
62+
// see https://github.com/google/google-api-java-client/issues/543
63+
com.google.api.client.util.Data.nullOf(GPUUsage.class);
64+
}
65+
5366
/**
5467
* Memory utilization samples.
5568
* The value may be {@code null}.
@@ -97,6 +110,23 @@ public ResourceUtilizationReport setCpuTime(java.util.List<CPUTime> cpuTime) {
97110
return this;
98111
}
99112

113+
/**
114+
* Optional. GPU usage samples.
115+
* @return value or {@code null} for none
116+
*/
117+
public java.util.List<GPUUsage> getGpuUsage() {
118+
return gpuUsage;
119+
}
120+
121+
/**
122+
* Optional. GPU usage samples.
123+
* @param gpuUsage gpuUsage or {@code null} for none
124+
*/
125+
public ResourceUtilizationReport setGpuUsage(java.util.List<GPUUsage> gpuUsage) {
126+
this.gpuUsage = gpuUsage;
127+
return this;
128+
}
129+
100130
/**
101131
* Memory utilization samples.
102132
* @return value or {@code null} for none

clients/google-api-services-dataflow/v1b3/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-dataflow</artifactId>
11-
<version>v1b3-rev20241014-2.0.0</version>
12-
<name>Dataflow API v1b3-rev20241014-2.0.0</name>
11+
<version>v1b3-rev20241028-2.0.0</version>
12+
<name>Dataflow API v1b3-rev20241028-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-dataflow/v1b3/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-dataflow</artifactId>
25-
<version>v1b3-rev20241014-2.0.0</version>
25+
<version>v1b3-rev20241028-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241014-2.0.0'
38+
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241028-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)