Skip to content

Commit

Permalink
chore: regenerate dataflow client (#23769)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Nov 1, 2024
1 parent 5651ee6 commit 9967509
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-dataflow/v1b3/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-dataflow</artifactId>
<version>v1b3-rev20241014-2.0.0</version>
<version>v1b3-rev20241028-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241014-2.0.0'
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241028-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.dataflow.model;

/**
* Information about the GPU usage on the worker.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Dataflow API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GPUUsage extends com.google.api.client.json.GenericJson {

/**
* Required. Timestamp of the measurement.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String timestamp;

/**
* Required. Utilization info about the GPU.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GPUUtilization utilization;

/**
* Required. Timestamp of the measurement.
* @return value or {@code null} for none
*/
public String getTimestamp() {
return timestamp;
}

/**
* Required. Timestamp of the measurement.
* @param timestamp timestamp or {@code null} for none
*/
public GPUUsage setTimestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}

/**
* Required. Utilization info about the GPU.
* @return value or {@code null} for none
*/
public GPUUtilization getUtilization() {
return utilization;
}

/**
* Required. Utilization info about the GPU.
* @param utilization utilization or {@code null} for none
*/
public GPUUsage setUtilization(GPUUtilization utilization) {
this.utilization = utilization;
return this;
}

@Override
public GPUUsage set(String fieldName, Object value) {
return (GPUUsage) super.set(fieldName, value);
}

@Override
public GPUUsage clone() {
return (GPUUsage) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.dataflow.model;

/**
* Utilization details about the GPU.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Dataflow API. For a detailed explanation see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GPUUtilization extends com.google.api.client.json.GenericJson {

/**
* Required. GPU utilization rate of any kernel over the last sample period in the range of [0,
* 1].
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Double rate;

/**
* Required. GPU utilization rate of any kernel over the last sample period in the range of [0,
* 1].
* @return value or {@code null} for none
*/
public java.lang.Double getRate() {
return rate;
}

/**
* Required. GPU utilization rate of any kernel over the last sample period in the range of [0,
* 1].
* @param rate rate or {@code null} for none
*/
public GPUUtilization setRate(java.lang.Double rate) {
this.rate = rate;
return this;
}

@Override
public GPUUtilization set(String fieldName, Object value) {
return (GPUUtilization) super.set(fieldName, value);
}

@Override
public GPUUtilization clone() {
return (GPUUtilization) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ public final class ResourceUtilizationReport extends com.google.api.client.json.
com.google.api.client.util.Data.nullOf(CPUTime.class);
}

/**
* Optional. GPU usage samples.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GPUUsage> gpuUsage;

static {
// hack to force ProGuard to consider GPUUsage used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(GPUUsage.class);
}

/**
* Memory utilization samples.
* The value may be {@code null}.
Expand Down Expand Up @@ -97,6 +110,23 @@ public ResourceUtilizationReport setCpuTime(java.util.List<CPUTime> cpuTime) {
return this;
}

/**
* Optional. GPU usage samples.
* @return value or {@code null} for none
*/
public java.util.List<GPUUsage> getGpuUsage() {
return gpuUsage;
}

/**
* Optional. GPU usage samples.
* @param gpuUsage gpuUsage or {@code null} for none
*/
public ResourceUtilizationReport setGpuUsage(java.util.List<GPUUsage> gpuUsage) {
this.gpuUsage = gpuUsage;
return this;
}

/**
* Memory utilization samples.
* @return value or {@code null} for none
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-dataflow/v1b3/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-dataflow</artifactId>
<version>v1b3-rev20241014-2.0.0</version>
<name>Dataflow API v1b3-rev20241014-2.0.0</name>
<version>v1b3-rev20241028-2.0.0</version>
<name>Dataflow API v1b3-rev20241028-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-dataflow/v1b3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-dataflow</artifactId>
<version>v1b3-rev20241014-2.0.0</version>
<version>v1b3-rev20241028-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241014-2.0.0'
implementation 'com.google.apis:google-api-services-dataflow:v1b3-rev20241028-2.0.0'
}
```

Expand Down

0 comments on commit 9967509

Please sign in to comment.