Skip to content

Commit 241ecde

Browse files
yoshi-automationsduskis
authored andcommitted
Regenerate ml client (googleapis#823)
1 parent 39e6861 commit 241ecde

File tree

12 files changed

+6507
-5874
lines changed

12 files changed

+6507
-5874
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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.ml.v1.model;
18+
19+
/**
20+
* Represents the configration for a replica in a cluster.
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 Cloud Machine Learning Engine. For a detailed
24+
* explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudMlV1ReplicaConfig extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudMlV1AcceleratorConfig acceleratorConfig;
38+
39+
/**
40+
* The docker image to run on worker. This image must be in Google Container Registry.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String imageUri;
45+
46+
/**
47+
* @return value or {@code null} for none
48+
*/
49+
public GoogleCloudMlV1AcceleratorConfig getAcceleratorConfig() {
50+
return acceleratorConfig;
51+
}
52+
53+
/**
54+
* @param acceleratorConfig acceleratorConfig or {@code null} for none
55+
*/
56+
public GoogleCloudMlV1ReplicaConfig setAcceleratorConfig(GoogleCloudMlV1AcceleratorConfig acceleratorConfig) {
57+
this.acceleratorConfig = acceleratorConfig;
58+
return this;
59+
}
60+
61+
/**
62+
* The docker image to run on worker. This image must be in Google Container Registry.
63+
* @return value or {@code null} for none
64+
*/
65+
public java.lang.String getImageUri() {
66+
return imageUri;
67+
}
68+
69+
/**
70+
* The docker image to run on worker. This image must be in Google Container Registry.
71+
* @param imageUri imageUri or {@code null} for none
72+
*/
73+
public GoogleCloudMlV1ReplicaConfig setImageUri(java.lang.String imageUri) {
74+
this.imageUri = imageUri;
75+
return this;
76+
}
77+
78+
@Override
79+
public GoogleCloudMlV1ReplicaConfig set(String fieldName, Object value) {
80+
return (GoogleCloudMlV1ReplicaConfig) super.set(fieldName, value);
81+
}
82+
83+
@Override
84+
public GoogleCloudMlV1ReplicaConfig clone() {
85+
return (GoogleCloudMlV1ReplicaConfig) super.clone();
86+
}
87+
88+
}

clients/1.26.0/google-api-services-ml/v1/com/google/api/services/ml/v1/model/GoogleCloudMlV1TrainingInput.java

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ public final class GoogleCloudMlV1TrainingInput extends com.google.api.client.js
5757
@com.google.api.client.util.Key
5858
private java.lang.String jobDir;
5959

60+
/**
61+
* Optional. The configuration for master.
62+
*
63+
* Only one of `masterConfig.imageUri` and `runtimeVersion` should be set.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private GoogleCloudMlV1ReplicaConfig masterConfig;
68+
6069
/**
6170
* Optional. Specifies the type of virtual machine to use for your training job's master worker.
6271
*
@@ -99,6 +108,16 @@ public final class GoogleCloudMlV1TrainingInput extends com.google.api.client.js
99108
@com.google.api.client.util.Key
100109
private java.util.List<java.lang.String> packageUris;
101110

111+
/**
112+
* Optional. The config of parameter servers.
113+
*
114+
* If `parameterServerConfig.imageUri` has not been set, the value of `masterConfig.imageUri` will
115+
* be used.
116+
* The value may be {@code null}.
117+
*/
118+
@com.google.api.client.util.Key
119+
private GoogleCloudMlV1ReplicaConfig parameterServerConfig;
120+
102121
/**
103122
* Optional. The number of parameter server replicas to use for the training job. Each replica in
104123
* the cluster will be of the type specified in `parameter_server_type`.
@@ -166,6 +185,15 @@ public final class GoogleCloudMlV1TrainingInput extends com.google.api.client.js
166185
@com.google.api.client.util.Key
167186
private java.lang.String scaleTier;
168187

188+
/**
189+
* Optional. The configrations for workers.
190+
*
191+
* If `workerConfig.imageUri` has not been set, the value of `masterConfig.imageUri` will be used.
192+
* The value may be {@code null}.
193+
*/
194+
@com.google.api.client.util.Key
195+
private GoogleCloudMlV1ReplicaConfig workerConfig;
196+
169197
/**
170198
* Optional. The number of worker replicas to use for the training job. Each replica in the
171199
* cluster will be of the type specified in `worker_type`.
@@ -248,6 +276,27 @@ public GoogleCloudMlV1TrainingInput setJobDir(java.lang.String jobDir) {
248276
return this;
249277
}
250278

279+
/**
280+
* Optional. The configuration for master.
281+
*
282+
* Only one of `masterConfig.imageUri` and `runtimeVersion` should be set.
283+
* @return value or {@code null} for none
284+
*/
285+
public GoogleCloudMlV1ReplicaConfig getMasterConfig() {
286+
return masterConfig;
287+
}
288+
289+
/**
290+
* Optional. The configuration for master.
291+
*
292+
* Only one of `masterConfig.imageUri` and `runtimeVersion` should be set.
293+
* @param masterConfig masterConfig or {@code null} for none
294+
*/
295+
public GoogleCloudMlV1TrainingInput setMasterConfig(GoogleCloudMlV1ReplicaConfig masterConfig) {
296+
this.masterConfig = masterConfig;
297+
return this;
298+
}
299+
251300
/**
252301
* Optional. Specifies the type of virtual machine to use for your training job's master worker.
253302
*
@@ -338,6 +387,29 @@ public GoogleCloudMlV1TrainingInput setPackageUris(java.util.List<java.lang.Stri
338387
return this;
339388
}
340389

390+
/**
391+
* Optional. The config of parameter servers.
392+
*
393+
* If `parameterServerConfig.imageUri` has not been set, the value of `masterConfig.imageUri` will
394+
* be used.
395+
* @return value or {@code null} for none
396+
*/
397+
public GoogleCloudMlV1ReplicaConfig getParameterServerConfig() {
398+
return parameterServerConfig;
399+
}
400+
401+
/**
402+
* Optional. The config of parameter servers.
403+
*
404+
* If `parameterServerConfig.imageUri` has not been set, the value of `masterConfig.imageUri` will
405+
* be used.
406+
* @param parameterServerConfig parameterServerConfig or {@code null} for none
407+
*/
408+
public GoogleCloudMlV1TrainingInput setParameterServerConfig(GoogleCloudMlV1ReplicaConfig parameterServerConfig) {
409+
this.parameterServerConfig = parameterServerConfig;
410+
return this;
411+
}
412+
341413
/**
342414
* Optional. The number of parameter server replicas to use for the training job. Each replica in
343415
* the cluster will be of the type specified in `parameter_server_type`.
@@ -493,6 +565,27 @@ public GoogleCloudMlV1TrainingInput setScaleTier(java.lang.String scaleTier) {
493565
return this;
494566
}
495567

568+
/**
569+
* Optional. The configrations for workers.
570+
*
571+
* If `workerConfig.imageUri` has not been set, the value of `masterConfig.imageUri` will be used.
572+
* @return value or {@code null} for none
573+
*/
574+
public GoogleCloudMlV1ReplicaConfig getWorkerConfig() {
575+
return workerConfig;
576+
}
577+
578+
/**
579+
* Optional. The configrations for workers.
580+
*
581+
* If `workerConfig.imageUri` has not been set, the value of `masterConfig.imageUri` will be used.
582+
* @param workerConfig workerConfig or {@code null} for none
583+
*/
584+
public GoogleCloudMlV1TrainingInput setWorkerConfig(GoogleCloudMlV1ReplicaConfig workerConfig) {
585+
this.workerConfig = workerConfig;
586+
return this;
587+
}
588+
496589
/**
497590
* Optional. The number of worker replicas to use for the training job. Each replica in the
498591
* cluster will be of the type specified in `worker_type`.

clients/1.26.0/google-api-services-ml/v1/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-ml</artifactId>
11-
<version>v1-rev20190123-1.26.0</version>
12-
<name>Cloud Machine Learning Engine v1-rev20190123-1.26.0</name>
11+
<version>v1-rev20190126-1.26.0</version>
12+
<name>Cloud Machine Learning Engine v1-rev20190126-1.26.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)