Updated generated files
diff --git a/generated/googleapis/test/ml/v1_test.dart b/generated/googleapis/test/ml/v1_test.dart
index d537f21..981d714 100644
--- a/generated/googleapis/test/ml/v1_test.dart
+++ b/generated/googleapis/test/ml/v1_test.dart
@@ -50,7 +50,7 @@
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed3128() {
+buildUnnamed3271() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -65,7 +65,7 @@
return o;
}
-checkUnnamed3128(core.Map<core.String, core.Object> o) {
+checkUnnamed3271(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted1 = (o["x"]) as core.Map;
unittest.expect(casted1, unittest.hasLength(3));
@@ -79,17 +79,17 @@
unittest.expect(casted2["string"], unittest.equals('foo'));
}
-buildUnnamed3129() {
+buildUnnamed3272() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed3128());
- o.add(buildUnnamed3128());
+ o.add(buildUnnamed3271());
+ o.add(buildUnnamed3271());
return o;
}
-checkUnnamed3129(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed3272(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed3128(o[0]);
- checkUnnamed3128(o[1]);
+ checkUnnamed3271(o[0]);
+ checkUnnamed3271(o[1]);
}
core.int buildCounterGoogleApiHttpBody = 0;
@@ -99,7 +99,7 @@
if (buildCounterGoogleApiHttpBody < 3) {
o.contentType = "foo";
o.data = "foo";
- o.extensions = buildUnnamed3129();
+ o.extensions = buildUnnamed3272();
}
buildCounterGoogleApiHttpBody--;
return o;
@@ -110,11 +110,62 @@
if (buildCounterGoogleApiHttpBody < 3) {
unittest.expect(o.contentType, unittest.equals('foo'));
unittest.expect(o.data, unittest.equals('foo'));
- checkUnnamed3129(o.extensions);
+ checkUnnamed3272(o.extensions);
}
buildCounterGoogleApiHttpBody--;
}
+core.int
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig =
+ 0;
+buildGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig() {
+ var o = new api
+ .GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig();
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig++;
+ if (buildCounterGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig <
+ 3) {
+ o.useElapsedTime = true;
+ }
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig(
+ api.GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig
+ o) {
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig++;
+ if (buildCounterGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig <
+ 3) {
+ unittest.expect(o.useElapsedTime, unittest.isTrue);
+ }
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig--;
+}
+
+core.int
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig =
+ 0;
+buildGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig() {
+ var o = new api
+ .GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig();
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig++;
+ if (buildCounterGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig <
+ 3) {
+ o.useElapsedTime = true;
+ }
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig(
+ api.GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig o) {
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig++;
+ if (buildCounterGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig <
+ 3) {
+ unittest.expect(o.useElapsedTime, unittest.isTrue);
+ }
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig--;
+}
+
core.int buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric =
0;
buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric() {
@@ -138,6 +189,374 @@
buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric--;
}
+core.int buildCounterGoogleCloudMlV1MeasurementMetric = 0;
+buildGoogleCloudMlV1MeasurementMetric() {
+ var o = new api.GoogleCloudMlV1MeasurementMetric();
+ buildCounterGoogleCloudMlV1MeasurementMetric++;
+ if (buildCounterGoogleCloudMlV1MeasurementMetric < 3) {
+ o.metric = "foo";
+ o.value = 42.0;
+ }
+ buildCounterGoogleCloudMlV1MeasurementMetric--;
+ return o;
+}
+
+checkGoogleCloudMlV1MeasurementMetric(api.GoogleCloudMlV1MeasurementMetric o) {
+ buildCounterGoogleCloudMlV1MeasurementMetric++;
+ if (buildCounterGoogleCloudMlV1MeasurementMetric < 3) {
+ unittest.expect(o.metric, unittest.equals('foo'));
+ unittest.expect(o.value, unittest.equals(42.0));
+ }
+ buildCounterGoogleCloudMlV1MeasurementMetric--;
+}
+
+buildUnnamed3273() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed3273(core.List<core.String> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ unittest.expect(o[0], unittest.equals('foo'));
+ unittest.expect(o[1], unittest.equals('foo'));
+}
+
+core.int
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec = 0;
+buildGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec() {
+ var o = new api.GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec <
+ 3) {
+ o.values = buildUnnamed3273();
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec <
+ 3) {
+ checkUnnamed3273(o.values);
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec--;
+}
+
+buildUnnamed3274() {
+ var o = new core.List<core.double>();
+ o.add(42.0);
+ o.add(42.0);
+ return o;
+}
+
+checkUnnamed3274(core.List<core.double> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ unittest.expect(o[0], unittest.equals(42.0));
+ unittest.expect(o[1], unittest.equals(42.0));
+}
+
+core.int buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec =
+ 0;
+buildGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec() {
+ var o = new api.GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec <
+ 3) {
+ o.values = buildUnnamed3274();
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec <
+ 3) {
+ checkUnnamed3274(o.values);
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec--;
+}
+
+core.int buildCounterGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec = 0;
+buildGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec() {
+ var o = new api.GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec < 3) {
+ o.maxValue = 42.0;
+ o.minValue = 42.0;
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec < 3) {
+ unittest.expect(o.maxValue, unittest.equals(42.0));
+ unittest.expect(o.minValue, unittest.equals(42.0));
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec--;
+}
+
+core.int buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec =
+ 0;
+buildGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec() {
+ var o = new api.GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec < 3) {
+ o.maxValue = "foo";
+ o.minValue = "foo";
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec < 3) {
+ unittest.expect(o.maxValue, unittest.equals('foo'));
+ unittest.expect(o.minValue, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec--;
+}
+
+buildUnnamed3275() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed3275(core.List<core.String> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ unittest.expect(o[0], unittest.equals('foo'));
+ unittest.expect(o[1], unittest.equals('foo'));
+}
+
+core.int
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec =
+ 0;
+buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec() {
+ var o = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec <
+ 3) {
+ o.values = buildUnnamed3275();
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec
+ o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec <
+ 3) {
+ checkUnnamed3275(o.values);
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec--;
+}
+
+buildUnnamed3276() {
+ var o = new core.List<core.double>();
+ o.add(42.0);
+ o.add(42.0);
+ return o;
+}
+
+checkUnnamed3276(core.List<core.double> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ unittest.expect(o[0], unittest.equals(42.0));
+ unittest.expect(o[1], unittest.equals(42.0));
+}
+
+core.int
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec =
+ 0;
+buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec() {
+ var o = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec <
+ 3) {
+ o.values = buildUnnamed3276();
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec
+ o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec <
+ 3) {
+ checkUnnamed3276(o.values);
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec--;
+}
+
+buildUnnamed3277() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed3277(core.List<core.String> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ unittest.expect(o[0], unittest.equals('foo'));
+ unittest.expect(o[1], unittest.equals('foo'));
+}
+
+core.int
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec =
+ 0;
+buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec() {
+ var o = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec <
+ 3) {
+ o.values = buildUnnamed3277();
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec <
+ 3) {
+ checkUnnamed3277(o.values);
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec--;
+}
+
+core.int buildCounterGoogleCloudMlV1StudyConfigMetricSpec = 0;
+buildGoogleCloudMlV1StudyConfigMetricSpec() {
+ var o = new api.GoogleCloudMlV1StudyConfigMetricSpec();
+ buildCounterGoogleCloudMlV1StudyConfigMetricSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigMetricSpec < 3) {
+ o.goal = "foo";
+ o.metric = "foo";
+ }
+ buildCounterGoogleCloudMlV1StudyConfigMetricSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigMetricSpec(
+ api.GoogleCloudMlV1StudyConfigMetricSpec o) {
+ buildCounterGoogleCloudMlV1StudyConfigMetricSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigMetricSpec < 3) {
+ unittest.expect(o.goal, unittest.equals('foo'));
+ unittest.expect(o.metric, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1StudyConfigMetricSpec--;
+}
+
+buildUnnamed3278() {
+ var o = new core.List<api.GoogleCloudMlV1StudyConfigParameterSpec>();
+ o.add(buildGoogleCloudMlV1StudyConfigParameterSpec());
+ o.add(buildGoogleCloudMlV1StudyConfigParameterSpec());
+ return o;
+}
+
+checkUnnamed3278(core.List<api.GoogleCloudMlV1StudyConfigParameterSpec> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1StudyConfigParameterSpec(o[0]);
+ checkGoogleCloudMlV1StudyConfigParameterSpec(o[1]);
+}
+
+core.int buildCounterGoogleCloudMlV1StudyConfigParameterSpec = 0;
+buildGoogleCloudMlV1StudyConfigParameterSpec() {
+ var o = new api.GoogleCloudMlV1StudyConfigParameterSpec();
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpec < 3) {
+ o.categoricalValueSpec =
+ buildGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec();
+ o.childParameterSpecs = buildUnnamed3278();
+ o.discreteValueSpec =
+ buildGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec();
+ o.doubleValueSpec =
+ buildGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec();
+ o.integerValueSpec =
+ buildGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec();
+ o.parameter = "foo";
+ o.parentCategoricalValues =
+ buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec();
+ o.parentDiscreteValues =
+ buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec();
+ o.parentIntValues =
+ buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec();
+ o.scaleType = "foo";
+ o.type = "foo";
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpec--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfigParameterSpec(
+ api.GoogleCloudMlV1StudyConfigParameterSpec o) {
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpec++;
+ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpec < 3) {
+ checkGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec(
+ o.categoricalValueSpec);
+ checkUnnamed3278(o.childParameterSpecs);
+ checkGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec(
+ o.discreteValueSpec);
+ checkGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec(
+ o.doubleValueSpec);
+ checkGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec(
+ o.integerValueSpec);
+ unittest.expect(o.parameter, unittest.equals('foo'));
+ checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec(
+ o.parentCategoricalValues);
+ checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec(
+ o.parentDiscreteValues);
+ checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec(
+ o.parentIntValues);
+ unittest.expect(o.scaleType, unittest.equals('foo'));
+ unittest.expect(o.type, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1StudyConfigParameterSpec--;
+}
+
+core.int buildCounterGoogleCloudMlV1TrialParameter = 0;
+buildGoogleCloudMlV1TrialParameter() {
+ var o = new api.GoogleCloudMlV1TrialParameter();
+ buildCounterGoogleCloudMlV1TrialParameter++;
+ if (buildCounterGoogleCloudMlV1TrialParameter < 3) {
+ o.floatValue = 42.0;
+ o.intValue = "foo";
+ o.parameter = "foo";
+ o.stringValue = "foo";
+ }
+ buildCounterGoogleCloudMlV1TrialParameter--;
+ return o;
+}
+
+checkGoogleCloudMlV1TrialParameter(api.GoogleCloudMlV1TrialParameter o) {
+ buildCounterGoogleCloudMlV1TrialParameter++;
+ if (buildCounterGoogleCloudMlV1TrialParameter < 3) {
+ unittest.expect(o.floatValue, unittest.equals(42.0));
+ unittest.expect(o.intValue, unittest.equals('foo'));
+ unittest.expect(o.parameter, unittest.equals('foo'));
+ unittest.expect(o.stringValue, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1TrialParameter--;
+}
+
core.int buildCounterGoogleCloudMlV1AcceleratorConfig = 0;
buildGoogleCloudMlV1AcceleratorConfig() {
var o = new api.GoogleCloudMlV1AcceleratorConfig();
@@ -159,6 +578,26 @@
buildCounterGoogleCloudMlV1AcceleratorConfig--;
}
+core.int buildCounterGoogleCloudMlV1AddTrialMeasurementRequest = 0;
+buildGoogleCloudMlV1AddTrialMeasurementRequest() {
+ var o = new api.GoogleCloudMlV1AddTrialMeasurementRequest();
+ buildCounterGoogleCloudMlV1AddTrialMeasurementRequest++;
+ if (buildCounterGoogleCloudMlV1AddTrialMeasurementRequest < 3) {
+ o.measurement = buildGoogleCloudMlV1Measurement();
+ }
+ buildCounterGoogleCloudMlV1AddTrialMeasurementRequest--;
+ return o;
+}
+
+checkGoogleCloudMlV1AddTrialMeasurementRequest(
+ api.GoogleCloudMlV1AddTrialMeasurementRequest o) {
+ buildCounterGoogleCloudMlV1AddTrialMeasurementRequest++;
+ if (buildCounterGoogleCloudMlV1AddTrialMeasurementRequest < 3) {
+ checkGoogleCloudMlV1Measurement(o.measurement);
+ }
+ buildCounterGoogleCloudMlV1AddTrialMeasurementRequest--;
+}
+
core.int buildCounterGoogleCloudMlV1AutoScaling = 0;
buildGoogleCloudMlV1AutoScaling() {
var o = new api.GoogleCloudMlV1AutoScaling();
@@ -178,6 +617,32 @@
buildCounterGoogleCloudMlV1AutoScaling--;
}
+core.int buildCounterGoogleCloudMlV1AutomatedStoppingConfig = 0;
+buildGoogleCloudMlV1AutomatedStoppingConfig() {
+ var o = new api.GoogleCloudMlV1AutomatedStoppingConfig();
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfig++;
+ if (buildCounterGoogleCloudMlV1AutomatedStoppingConfig < 3) {
+ o.decayCurveStoppingConfig =
+ buildGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig();
+ o.medianAutomatedStoppingConfig =
+ buildGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig();
+ }
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1AutomatedStoppingConfig(
+ api.GoogleCloudMlV1AutomatedStoppingConfig o) {
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfig++;
+ if (buildCounterGoogleCloudMlV1AutomatedStoppingConfig < 3) {
+ checkGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig(
+ o.decayCurveStoppingConfig);
+ checkGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig(
+ o.medianAutomatedStoppingConfig);
+ }
+ buildCounterGoogleCloudMlV1AutomatedStoppingConfig--;
+}
+
core.int buildCounterGoogleCloudMlV1BuiltInAlgorithmOutput = 0;
buildGoogleCloudMlV1BuiltInAlgorithmOutput() {
var o = new api.GoogleCloudMlV1BuiltInAlgorithmOutput();
@@ -219,14 +684,14 @@
buildCounterGoogleCloudMlV1CancelJobRequest--;
}
-buildUnnamed3130() {
+buildUnnamed3279() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3130(core.List<core.String> o) {
+checkUnnamed3279(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -237,7 +702,7 @@
var o = new api.GoogleCloudMlV1Capability();
buildCounterGoogleCloudMlV1Capability++;
if (buildCounterGoogleCloudMlV1Capability < 3) {
- o.availableAccelerators = buildUnnamed3130();
+ o.availableAccelerators = buildUnnamed3279();
o.type = "foo";
}
buildCounterGoogleCloudMlV1Capability--;
@@ -247,12 +712,100 @@
checkGoogleCloudMlV1Capability(api.GoogleCloudMlV1Capability o) {
buildCounterGoogleCloudMlV1Capability++;
if (buildCounterGoogleCloudMlV1Capability < 3) {
- checkUnnamed3130(o.availableAccelerators);
+ checkUnnamed3279(o.availableAccelerators);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1Capability--;
}
+core.int buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata = 0;
+buildGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata() {
+ var o = new api.GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata();
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata++;
+ if (buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata < 3) {
+ o.createTime = "foo";
+ o.study = "foo";
+ o.trial = "foo";
+ }
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata--;
+ return o;
+}
+
+checkGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata(
+ api.GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata o) {
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata++;
+ if (buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata < 3) {
+ unittest.expect(o.createTime, unittest.equals('foo'));
+ unittest.expect(o.study, unittest.equals('foo'));
+ unittest.expect(o.trial, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata--;
+}
+
+core.int buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest = 0;
+buildGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest() {
+ var o = new api.GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest();
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest++;
+ if (buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest < 3) {}
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest--;
+ return o;
+}
+
+checkGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest(
+ api.GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest o) {
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest++;
+ if (buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest < 3) {}
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest--;
+}
+
+core.int buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse = 0;
+buildGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse() {
+ var o = new api.GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse();
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse++;
+ if (buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse < 3) {
+ o.endTime = "foo";
+ o.shouldStop = true;
+ o.startTime = "foo";
+ }
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse--;
+ return o;
+}
+
+checkGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse(
+ api.GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse o) {
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse++;
+ if (buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse < 3) {
+ unittest.expect(o.endTime, unittest.equals('foo'));
+ unittest.expect(o.shouldStop, unittest.isTrue);
+ unittest.expect(o.startTime, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse--;
+}
+
+core.int buildCounterGoogleCloudMlV1CompleteTrialRequest = 0;
+buildGoogleCloudMlV1CompleteTrialRequest() {
+ var o = new api.GoogleCloudMlV1CompleteTrialRequest();
+ buildCounterGoogleCloudMlV1CompleteTrialRequest++;
+ if (buildCounterGoogleCloudMlV1CompleteTrialRequest < 3) {
+ o.finalMeasurement = buildGoogleCloudMlV1Measurement();
+ o.infeasibleReason = "foo";
+ o.trialInfeasible = true;
+ }
+ buildCounterGoogleCloudMlV1CompleteTrialRequest--;
+ return o;
+}
+
+checkGoogleCloudMlV1CompleteTrialRequest(
+ api.GoogleCloudMlV1CompleteTrialRequest o) {
+ buildCounterGoogleCloudMlV1CompleteTrialRequest++;
+ if (buildCounterGoogleCloudMlV1CompleteTrialRequest < 3) {
+ checkGoogleCloudMlV1Measurement(o.finalMeasurement);
+ unittest.expect(o.infeasibleReason, unittest.equals('foo'));
+ unittest.expect(o.trialInfeasible, unittest.isTrue);
+ }
+ buildCounterGoogleCloudMlV1CompleteTrialRequest--;
+}
+
core.int buildCounterGoogleCloudMlV1Config = 0;
buildGoogleCloudMlV1Config() {
var o = new api.GoogleCloudMlV1Config();
@@ -272,6 +825,70 @@
buildCounterGoogleCloudMlV1Config--;
}
+core.int buildCounterGoogleCloudMlV1EncryptionConfig = 0;
+buildGoogleCloudMlV1EncryptionConfig() {
+ var o = new api.GoogleCloudMlV1EncryptionConfig();
+ buildCounterGoogleCloudMlV1EncryptionConfig++;
+ if (buildCounterGoogleCloudMlV1EncryptionConfig < 3) {
+ o.kmsKeyName = "foo";
+ }
+ buildCounterGoogleCloudMlV1EncryptionConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1EncryptionConfig(api.GoogleCloudMlV1EncryptionConfig o) {
+ buildCounterGoogleCloudMlV1EncryptionConfig++;
+ if (buildCounterGoogleCloudMlV1EncryptionConfig < 3) {
+ unittest.expect(o.kmsKeyName, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1EncryptionConfig--;
+}
+
+core.int buildCounterGoogleCloudMlV1ExplainRequest = 0;
+buildGoogleCloudMlV1ExplainRequest() {
+ var o = new api.GoogleCloudMlV1ExplainRequest();
+ buildCounterGoogleCloudMlV1ExplainRequest++;
+ if (buildCounterGoogleCloudMlV1ExplainRequest < 3) {
+ o.httpBody = buildGoogleApiHttpBody();
+ }
+ buildCounterGoogleCloudMlV1ExplainRequest--;
+ return o;
+}
+
+checkGoogleCloudMlV1ExplainRequest(api.GoogleCloudMlV1ExplainRequest o) {
+ buildCounterGoogleCloudMlV1ExplainRequest++;
+ if (buildCounterGoogleCloudMlV1ExplainRequest < 3) {
+ checkGoogleApiHttpBody(o.httpBody);
+ }
+ buildCounterGoogleCloudMlV1ExplainRequest--;
+}
+
+core.int buildCounterGoogleCloudMlV1ExplanationConfig = 0;
+buildGoogleCloudMlV1ExplanationConfig() {
+ var o = new api.GoogleCloudMlV1ExplanationConfig();
+ buildCounterGoogleCloudMlV1ExplanationConfig++;
+ if (buildCounterGoogleCloudMlV1ExplanationConfig < 3) {
+ o.integratedGradientsAttribution =
+ buildGoogleCloudMlV1IntegratedGradientsAttribution();
+ o.sampledShapleyAttribution =
+ buildGoogleCloudMlV1SampledShapleyAttribution();
+ o.xraiAttribution = buildGoogleCloudMlV1XraiAttribution();
+ }
+ buildCounterGoogleCloudMlV1ExplanationConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1ExplanationConfig(api.GoogleCloudMlV1ExplanationConfig o) {
+ buildCounterGoogleCloudMlV1ExplanationConfig++;
+ if (buildCounterGoogleCloudMlV1ExplanationConfig < 3) {
+ checkGoogleCloudMlV1IntegratedGradientsAttribution(
+ o.integratedGradientsAttribution);
+ checkGoogleCloudMlV1SampledShapleyAttribution(o.sampledShapleyAttribution);
+ checkGoogleCloudMlV1XraiAttribution(o.xraiAttribution);
+ }
+ buildCounterGoogleCloudMlV1ExplanationConfig--;
+}
+
core.int buildCounterGoogleCloudMlV1GetConfigResponse = 0;
buildGoogleCloudMlV1GetConfigResponse() {
var o = new api.GoogleCloudMlV1GetConfigResponse();
@@ -295,7 +912,7 @@
buildCounterGoogleCloudMlV1GetConfigResponse--;
}
-buildUnnamed3131() {
+buildUnnamed3280() {
var o = new core
.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>();
o.add(buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric());
@@ -303,21 +920,21 @@
return o;
}
-checkUnnamed3131(
+checkUnnamed3280(
core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[0]);
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[1]);
}
-buildUnnamed3132() {
+buildUnnamed3281() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3132(core.Map<core.String, core.String> o) {
+checkUnnamed3281(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
@@ -328,12 +945,12 @@
var o = new api.GoogleCloudMlV1HyperparameterOutput();
buildCounterGoogleCloudMlV1HyperparameterOutput++;
if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) {
- o.allMetrics = buildUnnamed3131();
+ o.allMetrics = buildUnnamed3280();
o.builtInAlgorithmOutput = buildGoogleCloudMlV1BuiltInAlgorithmOutput();
o.endTime = "foo";
o.finalMetric =
buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric();
- o.hyperparameters = buildUnnamed3132();
+ o.hyperparameters = buildUnnamed3281();
o.isTrialStoppedEarly = true;
o.startTime = "foo";
o.state = "foo";
@@ -347,11 +964,11 @@
api.GoogleCloudMlV1HyperparameterOutput o) {
buildCounterGoogleCloudMlV1HyperparameterOutput++;
if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) {
- checkUnnamed3131(o.allMetrics);
+ checkUnnamed3280(o.allMetrics);
checkGoogleCloudMlV1BuiltInAlgorithmOutput(o.builtInAlgorithmOutput);
unittest.expect(o.endTime, unittest.equals('foo'));
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o.finalMetric);
- checkUnnamed3132(o.hyperparameters);
+ checkUnnamed3281(o.hyperparameters);
unittest.expect(o.isTrialStoppedEarly, unittest.isTrue);
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.state, unittest.equals('foo'));
@@ -360,14 +977,14 @@
buildCounterGoogleCloudMlV1HyperparameterOutput--;
}
-buildUnnamed3133() {
+buildUnnamed3282() {
var o = new core.List<api.GoogleCloudMlV1ParameterSpec>();
o.add(buildGoogleCloudMlV1ParameterSpec());
o.add(buildGoogleCloudMlV1ParameterSpec());
return o;
}
-checkUnnamed3133(core.List<api.GoogleCloudMlV1ParameterSpec> o) {
+checkUnnamed3282(core.List<api.GoogleCloudMlV1ParameterSpec> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1ParameterSpec(o[0]);
checkGoogleCloudMlV1ParameterSpec(o[1]);
@@ -385,7 +1002,7 @@
o.maxFailedTrials = 42;
o.maxParallelTrials = 42;
o.maxTrials = 42;
- o.params = buildUnnamed3133();
+ o.params = buildUnnamed3282();
o.resumePreviousJobId = "foo";
}
buildCounterGoogleCloudMlV1HyperparameterSpec--;
@@ -403,20 +1020,40 @@
unittest.expect(o.maxFailedTrials, unittest.equals(42));
unittest.expect(o.maxParallelTrials, unittest.equals(42));
unittest.expect(o.maxTrials, unittest.equals(42));
- checkUnnamed3133(o.params);
+ checkUnnamed3282(o.params);
unittest.expect(o.resumePreviousJobId, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1HyperparameterSpec--;
}
-buildUnnamed3134() {
+core.int buildCounterGoogleCloudMlV1IntegratedGradientsAttribution = 0;
+buildGoogleCloudMlV1IntegratedGradientsAttribution() {
+ var o = new api.GoogleCloudMlV1IntegratedGradientsAttribution();
+ buildCounterGoogleCloudMlV1IntegratedGradientsAttribution++;
+ if (buildCounterGoogleCloudMlV1IntegratedGradientsAttribution < 3) {
+ o.numIntegralSteps = 42;
+ }
+ buildCounterGoogleCloudMlV1IntegratedGradientsAttribution--;
+ return o;
+}
+
+checkGoogleCloudMlV1IntegratedGradientsAttribution(
+ api.GoogleCloudMlV1IntegratedGradientsAttribution o) {
+ buildCounterGoogleCloudMlV1IntegratedGradientsAttribution++;
+ if (buildCounterGoogleCloudMlV1IntegratedGradientsAttribution < 3) {
+ unittest.expect(o.numIntegralSteps, unittest.equals(42));
+ }
+ buildCounterGoogleCloudMlV1IntegratedGradientsAttribution--;
+}
+
+buildUnnamed3283() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3134(core.Map<core.String, core.String> o) {
+checkUnnamed3283(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
@@ -432,7 +1069,7 @@
o.errorMessage = "foo";
o.etag = "foo";
o.jobId = "foo";
- o.labels = buildUnnamed3134();
+ o.labels = buildUnnamed3283();
o.predictionInput = buildGoogleCloudMlV1PredictionInput();
o.predictionOutput = buildGoogleCloudMlV1PredictionOutput();
o.startTime = "foo";
@@ -452,7 +1089,7 @@
unittest.expect(o.errorMessage, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.jobId, unittest.equals('foo'));
- checkUnnamed3134(o.labels);
+ checkUnnamed3283(o.labels);
checkGoogleCloudMlV1PredictionInput(o.predictionInput);
checkGoogleCloudMlV1PredictionOutput(o.predictionOutput);
unittest.expect(o.startTime, unittest.equals('foo'));
@@ -463,14 +1100,14 @@
buildCounterGoogleCloudMlV1Job--;
}
-buildUnnamed3135() {
+buildUnnamed3284() {
var o = new core.List<api.GoogleCloudMlV1Job>();
o.add(buildGoogleCloudMlV1Job());
o.add(buildGoogleCloudMlV1Job());
return o;
}
-checkUnnamed3135(core.List<api.GoogleCloudMlV1Job> o) {
+checkUnnamed3284(core.List<api.GoogleCloudMlV1Job> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Job(o[0]);
checkGoogleCloudMlV1Job(o[1]);
@@ -481,7 +1118,7 @@
var o = new api.GoogleCloudMlV1ListJobsResponse();
buildCounterGoogleCloudMlV1ListJobsResponse++;
if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) {
- o.jobs = buildUnnamed3135();
+ o.jobs = buildUnnamed3284();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListJobsResponse--;
@@ -491,20 +1128,20 @@
checkGoogleCloudMlV1ListJobsResponse(api.GoogleCloudMlV1ListJobsResponse o) {
buildCounterGoogleCloudMlV1ListJobsResponse++;
if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) {
- checkUnnamed3135(o.jobs);
+ checkUnnamed3284(o.jobs);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListJobsResponse--;
}
-buildUnnamed3136() {
+buildUnnamed3285() {
var o = new core.List<api.GoogleCloudMlV1Location>();
o.add(buildGoogleCloudMlV1Location());
o.add(buildGoogleCloudMlV1Location());
return o;
}
-checkUnnamed3136(core.List<api.GoogleCloudMlV1Location> o) {
+checkUnnamed3285(core.List<api.GoogleCloudMlV1Location> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Location(o[0]);
checkGoogleCloudMlV1Location(o[1]);
@@ -515,7 +1152,7 @@
var o = new api.GoogleCloudMlV1ListLocationsResponse();
buildCounterGoogleCloudMlV1ListLocationsResponse++;
if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) {
- o.locations = buildUnnamed3136();
+ o.locations = buildUnnamed3285();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListLocationsResponse--;
@@ -526,20 +1163,20 @@
api.GoogleCloudMlV1ListLocationsResponse o) {
buildCounterGoogleCloudMlV1ListLocationsResponse++;
if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) {
- checkUnnamed3136(o.locations);
+ checkUnnamed3285(o.locations);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListLocationsResponse--;
}
-buildUnnamed3137() {
+buildUnnamed3286() {
var o = new core.List<api.GoogleCloudMlV1Model>();
o.add(buildGoogleCloudMlV1Model());
o.add(buildGoogleCloudMlV1Model());
return o;
}
-checkUnnamed3137(core.List<api.GoogleCloudMlV1Model> o) {
+checkUnnamed3286(core.List<api.GoogleCloudMlV1Model> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Model(o[0]);
checkGoogleCloudMlV1Model(o[1]);
@@ -550,7 +1187,7 @@
var o = new api.GoogleCloudMlV1ListModelsResponse();
buildCounterGoogleCloudMlV1ListModelsResponse++;
if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) {
- o.models = buildUnnamed3137();
+ o.models = buildUnnamed3286();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListModelsResponse--;
@@ -561,20 +1198,86 @@
api.GoogleCloudMlV1ListModelsResponse o) {
buildCounterGoogleCloudMlV1ListModelsResponse++;
if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) {
- checkUnnamed3137(o.models);
+ checkUnnamed3286(o.models);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListModelsResponse--;
}
-buildUnnamed3138() {
+buildUnnamed3287() {
+ var o = new core.List<api.GoogleCloudMlV1Study>();
+ o.add(buildGoogleCloudMlV1Study());
+ o.add(buildGoogleCloudMlV1Study());
+ return o;
+}
+
+checkUnnamed3287(core.List<api.GoogleCloudMlV1Study> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1Study(o[0]);
+ checkGoogleCloudMlV1Study(o[1]);
+}
+
+core.int buildCounterGoogleCloudMlV1ListStudiesResponse = 0;
+buildGoogleCloudMlV1ListStudiesResponse() {
+ var o = new api.GoogleCloudMlV1ListStudiesResponse();
+ buildCounterGoogleCloudMlV1ListStudiesResponse++;
+ if (buildCounterGoogleCloudMlV1ListStudiesResponse < 3) {
+ o.studies = buildUnnamed3287();
+ }
+ buildCounterGoogleCloudMlV1ListStudiesResponse--;
+ return o;
+}
+
+checkGoogleCloudMlV1ListStudiesResponse(
+ api.GoogleCloudMlV1ListStudiesResponse o) {
+ buildCounterGoogleCloudMlV1ListStudiesResponse++;
+ if (buildCounterGoogleCloudMlV1ListStudiesResponse < 3) {
+ checkUnnamed3287(o.studies);
+ }
+ buildCounterGoogleCloudMlV1ListStudiesResponse--;
+}
+
+buildUnnamed3288() {
+ var o = new core.List<api.GoogleCloudMlV1Trial>();
+ o.add(buildGoogleCloudMlV1Trial());
+ o.add(buildGoogleCloudMlV1Trial());
+ return o;
+}
+
+checkUnnamed3288(core.List<api.GoogleCloudMlV1Trial> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1Trial(o[0]);
+ checkGoogleCloudMlV1Trial(o[1]);
+}
+
+core.int buildCounterGoogleCloudMlV1ListTrialsResponse = 0;
+buildGoogleCloudMlV1ListTrialsResponse() {
+ var o = new api.GoogleCloudMlV1ListTrialsResponse();
+ buildCounterGoogleCloudMlV1ListTrialsResponse++;
+ if (buildCounterGoogleCloudMlV1ListTrialsResponse < 3) {
+ o.trials = buildUnnamed3288();
+ }
+ buildCounterGoogleCloudMlV1ListTrialsResponse--;
+ return o;
+}
+
+checkGoogleCloudMlV1ListTrialsResponse(
+ api.GoogleCloudMlV1ListTrialsResponse o) {
+ buildCounterGoogleCloudMlV1ListTrialsResponse++;
+ if (buildCounterGoogleCloudMlV1ListTrialsResponse < 3) {
+ checkUnnamed3288(o.trials);
+ }
+ buildCounterGoogleCloudMlV1ListTrialsResponse--;
+}
+
+buildUnnamed3289() {
var o = new core.List<api.GoogleCloudMlV1Version>();
o.add(buildGoogleCloudMlV1Version());
o.add(buildGoogleCloudMlV1Version());
return o;
}
-checkUnnamed3138(core.List<api.GoogleCloudMlV1Version> o) {
+checkUnnamed3289(core.List<api.GoogleCloudMlV1Version> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Version(o[0]);
checkGoogleCloudMlV1Version(o[1]);
@@ -586,7 +1289,7 @@
buildCounterGoogleCloudMlV1ListVersionsResponse++;
if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) {
o.nextPageToken = "foo";
- o.versions = buildUnnamed3138();
+ o.versions = buildUnnamed3289();
}
buildCounterGoogleCloudMlV1ListVersionsResponse--;
return o;
@@ -597,19 +1300,19 @@
buildCounterGoogleCloudMlV1ListVersionsResponse++;
if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3138(o.versions);
+ checkUnnamed3289(o.versions);
}
buildCounterGoogleCloudMlV1ListVersionsResponse--;
}
-buildUnnamed3139() {
+buildUnnamed3290() {
var o = new core.List<api.GoogleCloudMlV1Capability>();
o.add(buildGoogleCloudMlV1Capability());
o.add(buildGoogleCloudMlV1Capability());
return o;
}
-checkUnnamed3139(core.List<api.GoogleCloudMlV1Capability> o) {
+checkUnnamed3290(core.List<api.GoogleCloudMlV1Capability> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Capability(o[0]);
checkGoogleCloudMlV1Capability(o[1]);
@@ -620,7 +1323,7 @@
var o = new api.GoogleCloudMlV1Location();
buildCounterGoogleCloudMlV1Location++;
if (buildCounterGoogleCloudMlV1Location < 3) {
- o.capabilities = buildUnnamed3139();
+ o.capabilities = buildUnnamed3290();
o.name = "foo";
}
buildCounterGoogleCloudMlV1Location--;
@@ -630,7 +1333,7 @@
checkGoogleCloudMlV1Location(api.GoogleCloudMlV1Location o) {
buildCounterGoogleCloudMlV1Location++;
if (buildCounterGoogleCloudMlV1Location < 3) {
- checkUnnamed3139(o.capabilities);
+ checkUnnamed3290(o.capabilities);
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1Location--;
@@ -655,27 +1358,63 @@
buildCounterGoogleCloudMlV1ManualScaling--;
}
-buildUnnamed3140() {
+buildUnnamed3291() {
+ var o = new core.List<api.GoogleCloudMlV1MeasurementMetric>();
+ o.add(buildGoogleCloudMlV1MeasurementMetric());
+ o.add(buildGoogleCloudMlV1MeasurementMetric());
+ return o;
+}
+
+checkUnnamed3291(core.List<api.GoogleCloudMlV1MeasurementMetric> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1MeasurementMetric(o[0]);
+ checkGoogleCloudMlV1MeasurementMetric(o[1]);
+}
+
+core.int buildCounterGoogleCloudMlV1Measurement = 0;
+buildGoogleCloudMlV1Measurement() {
+ var o = new api.GoogleCloudMlV1Measurement();
+ buildCounterGoogleCloudMlV1Measurement++;
+ if (buildCounterGoogleCloudMlV1Measurement < 3) {
+ o.elapsedTime = "foo";
+ o.metrics = buildUnnamed3291();
+ o.stepCount = "foo";
+ }
+ buildCounterGoogleCloudMlV1Measurement--;
+ return o;
+}
+
+checkGoogleCloudMlV1Measurement(api.GoogleCloudMlV1Measurement o) {
+ buildCounterGoogleCloudMlV1Measurement++;
+ if (buildCounterGoogleCloudMlV1Measurement < 3) {
+ unittest.expect(o.elapsedTime, unittest.equals('foo'));
+ checkUnnamed3291(o.metrics);
+ unittest.expect(o.stepCount, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1Measurement--;
+}
+
+buildUnnamed3292() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3140(core.Map<core.String, core.String> o) {
+checkUnnamed3292(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
}
-buildUnnamed3141() {
+buildUnnamed3293() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3141(core.List<core.String> o) {
+checkUnnamed3293(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -689,11 +1428,11 @@
o.defaultVersion = buildGoogleCloudMlV1Version();
o.description = "foo";
o.etag = "foo";
- o.labels = buildUnnamed3140();
+ o.labels = buildUnnamed3292();
o.name = "foo";
o.onlinePredictionConsoleLogging = true;
o.onlinePredictionLogging = true;
- o.regions = buildUnnamed3141();
+ o.regions = buildUnnamed3293();
}
buildCounterGoogleCloudMlV1Model--;
return o;
@@ -705,23 +1444,23 @@
checkGoogleCloudMlV1Version(o.defaultVersion);
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed3140(o.labels);
+ checkUnnamed3292(o.labels);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.onlinePredictionConsoleLogging, unittest.isTrue);
unittest.expect(o.onlinePredictionLogging, unittest.isTrue);
- checkUnnamed3141(o.regions);
+ checkUnnamed3293(o.regions);
}
buildCounterGoogleCloudMlV1Model--;
}
-buildUnnamed3142() {
+buildUnnamed3294() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3142(core.Map<core.String, core.String> o) {
+checkUnnamed3294(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
@@ -735,7 +1474,7 @@
o.createTime = "foo";
o.endTime = "foo";
o.isCancellationRequested = true;
- o.labels = buildUnnamed3142();
+ o.labels = buildUnnamed3294();
o.modelName = "foo";
o.operationType = "foo";
o.projectNumber = "foo";
@@ -752,7 +1491,7 @@
unittest.expect(o.createTime, unittest.equals('foo'));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.isCancellationRequested, unittest.isTrue);
- checkUnnamed3142(o.labels);
+ checkUnnamed3294(o.labels);
unittest.expect(o.modelName, unittest.equals('foo'));
unittest.expect(o.operationType, unittest.equals('foo'));
unittest.expect(o.projectNumber, unittest.equals('foo'));
@@ -762,27 +1501,27 @@
buildCounterGoogleCloudMlV1OperationMetadata--;
}
-buildUnnamed3143() {
+buildUnnamed3295() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3143(core.List<core.String> o) {
+checkUnnamed3295(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed3144() {
+buildUnnamed3296() {
var o = new core.List<core.double>();
o.add(42.0);
o.add(42.0);
return o;
}
-checkUnnamed3144(core.List<core.double> o) {
+checkUnnamed3296(core.List<core.double> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals(42.0));
unittest.expect(o[1], unittest.equals(42.0));
@@ -793,8 +1532,8 @@
var o = new api.GoogleCloudMlV1ParameterSpec();
buildCounterGoogleCloudMlV1ParameterSpec++;
if (buildCounterGoogleCloudMlV1ParameterSpec < 3) {
- o.categoricalValues = buildUnnamed3143();
- o.discreteValues = buildUnnamed3144();
+ o.categoricalValues = buildUnnamed3295();
+ o.discreteValues = buildUnnamed3296();
o.maxValue = 42.0;
o.minValue = 42.0;
o.parameterName = "foo";
@@ -808,8 +1547,8 @@
checkGoogleCloudMlV1ParameterSpec(api.GoogleCloudMlV1ParameterSpec o) {
buildCounterGoogleCloudMlV1ParameterSpec++;
if (buildCounterGoogleCloudMlV1ParameterSpec < 3) {
- checkUnnamed3143(o.categoricalValues);
- checkUnnamed3144(o.discreteValues);
+ checkUnnamed3295(o.categoricalValues);
+ checkUnnamed3296(o.discreteValues);
unittest.expect(o.maxValue, unittest.equals(42.0));
unittest.expect(o.minValue, unittest.equals(42.0));
unittest.expect(o.parameterName, unittest.equals('foo'));
@@ -838,14 +1577,14 @@
buildCounterGoogleCloudMlV1PredictRequest--;
}
-buildUnnamed3145() {
+buildUnnamed3297() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3145(core.List<core.String> o) {
+checkUnnamed3297(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -858,7 +1597,7 @@
if (buildCounterGoogleCloudMlV1PredictionInput < 3) {
o.batchSize = "foo";
o.dataFormat = "foo";
- o.inputPaths = buildUnnamed3145();
+ o.inputPaths = buildUnnamed3297();
o.maxWorkerCount = "foo";
o.modelName = "foo";
o.outputDataFormat = "foo";
@@ -878,7 +1617,7 @@
if (buildCounterGoogleCloudMlV1PredictionInput < 3) {
unittest.expect(o.batchSize, unittest.equals('foo'));
unittest.expect(o.dataFormat, unittest.equals('foo'));
- checkUnnamed3145(o.inputPaths);
+ checkUnnamed3297(o.inputPaths);
unittest.expect(o.maxWorkerCount, unittest.equals('foo'));
unittest.expect(o.modelName, unittest.equals('foo'));
unittest.expect(o.outputDataFormat, unittest.equals('foo'));
@@ -940,6 +1679,67 @@
buildCounterGoogleCloudMlV1ReplicaConfig--;
}
+core.int buildCounterGoogleCloudMlV1RequestLoggingConfig = 0;
+buildGoogleCloudMlV1RequestLoggingConfig() {
+ var o = new api.GoogleCloudMlV1RequestLoggingConfig();
+ buildCounterGoogleCloudMlV1RequestLoggingConfig++;
+ if (buildCounterGoogleCloudMlV1RequestLoggingConfig < 3) {
+ o.bigqueryTableName = "foo";
+ o.samplingPercentage = 42.0;
+ }
+ buildCounterGoogleCloudMlV1RequestLoggingConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1RequestLoggingConfig(
+ api.GoogleCloudMlV1RequestLoggingConfig o) {
+ buildCounterGoogleCloudMlV1RequestLoggingConfig++;
+ if (buildCounterGoogleCloudMlV1RequestLoggingConfig < 3) {
+ unittest.expect(o.bigqueryTableName, unittest.equals('foo'));
+ unittest.expect(o.samplingPercentage, unittest.equals(42.0));
+ }
+ buildCounterGoogleCloudMlV1RequestLoggingConfig--;
+}
+
+core.int buildCounterGoogleCloudMlV1SampledShapleyAttribution = 0;
+buildGoogleCloudMlV1SampledShapleyAttribution() {
+ var o = new api.GoogleCloudMlV1SampledShapleyAttribution();
+ buildCounterGoogleCloudMlV1SampledShapleyAttribution++;
+ if (buildCounterGoogleCloudMlV1SampledShapleyAttribution < 3) {
+ o.numPaths = 42;
+ }
+ buildCounterGoogleCloudMlV1SampledShapleyAttribution--;
+ return o;
+}
+
+checkGoogleCloudMlV1SampledShapleyAttribution(
+ api.GoogleCloudMlV1SampledShapleyAttribution o) {
+ buildCounterGoogleCloudMlV1SampledShapleyAttribution++;
+ if (buildCounterGoogleCloudMlV1SampledShapleyAttribution < 3) {
+ unittest.expect(o.numPaths, unittest.equals(42));
+ }
+ buildCounterGoogleCloudMlV1SampledShapleyAttribution--;
+}
+
+core.int buildCounterGoogleCloudMlV1Scheduling = 0;
+buildGoogleCloudMlV1Scheduling() {
+ var o = new api.GoogleCloudMlV1Scheduling();
+ buildCounterGoogleCloudMlV1Scheduling++;
+ if (buildCounterGoogleCloudMlV1Scheduling < 3) {
+ o.maxRunningTime = "foo";
+ }
+ buildCounterGoogleCloudMlV1Scheduling--;
+ return o;
+}
+
+checkGoogleCloudMlV1Scheduling(api.GoogleCloudMlV1Scheduling o) {
+ buildCounterGoogleCloudMlV1Scheduling++;
+ if (buildCounterGoogleCloudMlV1Scheduling < 3) {
+ unittest.expect(o.maxRunningTime, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1Scheduling--;
+}
+
core.int buildCounterGoogleCloudMlV1SetDefaultVersionRequest = 0;
buildGoogleCloudMlV1SetDefaultVersionRequest() {
var o = new api.GoogleCloudMlV1SetDefaultVersionRequest();
@@ -956,27 +1756,207 @@
buildCounterGoogleCloudMlV1SetDefaultVersionRequest--;
}
-buildUnnamed3146() {
+core.int buildCounterGoogleCloudMlV1StopTrialRequest = 0;
+buildGoogleCloudMlV1StopTrialRequest() {
+ var o = new api.GoogleCloudMlV1StopTrialRequest();
+ buildCounterGoogleCloudMlV1StopTrialRequest++;
+ if (buildCounterGoogleCloudMlV1StopTrialRequest < 3) {}
+ buildCounterGoogleCloudMlV1StopTrialRequest--;
+ return o;
+}
+
+checkGoogleCloudMlV1StopTrialRequest(api.GoogleCloudMlV1StopTrialRequest o) {
+ buildCounterGoogleCloudMlV1StopTrialRequest++;
+ if (buildCounterGoogleCloudMlV1StopTrialRequest < 3) {}
+ buildCounterGoogleCloudMlV1StopTrialRequest--;
+}
+
+core.int buildCounterGoogleCloudMlV1Study = 0;
+buildGoogleCloudMlV1Study() {
+ var o = new api.GoogleCloudMlV1Study();
+ buildCounterGoogleCloudMlV1Study++;
+ if (buildCounterGoogleCloudMlV1Study < 3) {
+ o.createTime = "foo";
+ o.inactiveReason = "foo";
+ o.name = "foo";
+ o.state = "foo";
+ o.studyConfig = buildGoogleCloudMlV1StudyConfig();
+ }
+ buildCounterGoogleCloudMlV1Study--;
+ return o;
+}
+
+checkGoogleCloudMlV1Study(api.GoogleCloudMlV1Study o) {
+ buildCounterGoogleCloudMlV1Study++;
+ if (buildCounterGoogleCloudMlV1Study < 3) {
+ unittest.expect(o.createTime, unittest.equals('foo'));
+ unittest.expect(o.inactiveReason, unittest.equals('foo'));
+ unittest.expect(o.name, unittest.equals('foo'));
+ unittest.expect(o.state, unittest.equals('foo'));
+ checkGoogleCloudMlV1StudyConfig(o.studyConfig);
+ }
+ buildCounterGoogleCloudMlV1Study--;
+}
+
+buildUnnamed3298() {
+ var o = new core.List<api.GoogleCloudMlV1StudyConfigMetricSpec>();
+ o.add(buildGoogleCloudMlV1StudyConfigMetricSpec());
+ o.add(buildGoogleCloudMlV1StudyConfigMetricSpec());
+ return o;
+}
+
+checkUnnamed3298(core.List<api.GoogleCloudMlV1StudyConfigMetricSpec> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1StudyConfigMetricSpec(o[0]);
+ checkGoogleCloudMlV1StudyConfigMetricSpec(o[1]);
+}
+
+buildUnnamed3299() {
+ var o = new core.List<api.GoogleCloudMlV1StudyConfigParameterSpec>();
+ o.add(buildGoogleCloudMlV1StudyConfigParameterSpec());
+ o.add(buildGoogleCloudMlV1StudyConfigParameterSpec());
+ return o;
+}
+
+checkUnnamed3299(core.List<api.GoogleCloudMlV1StudyConfigParameterSpec> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1StudyConfigParameterSpec(o[0]);
+ checkGoogleCloudMlV1StudyConfigParameterSpec(o[1]);
+}
+
+core.int buildCounterGoogleCloudMlV1StudyConfig = 0;
+buildGoogleCloudMlV1StudyConfig() {
+ var o = new api.GoogleCloudMlV1StudyConfig();
+ buildCounterGoogleCloudMlV1StudyConfig++;
+ if (buildCounterGoogleCloudMlV1StudyConfig < 3) {
+ o.algorithm = "foo";
+ o.automatedStoppingConfig = buildGoogleCloudMlV1AutomatedStoppingConfig();
+ o.metrics = buildUnnamed3298();
+ o.parameters = buildUnnamed3299();
+ }
+ buildCounterGoogleCloudMlV1StudyConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1StudyConfig(api.GoogleCloudMlV1StudyConfig o) {
+ buildCounterGoogleCloudMlV1StudyConfig++;
+ if (buildCounterGoogleCloudMlV1StudyConfig < 3) {
+ unittest.expect(o.algorithm, unittest.equals('foo'));
+ checkGoogleCloudMlV1AutomatedStoppingConfig(o.automatedStoppingConfig);
+ checkUnnamed3298(o.metrics);
+ checkUnnamed3299(o.parameters);
+ }
+ buildCounterGoogleCloudMlV1StudyConfig--;
+}
+
+core.int buildCounterGoogleCloudMlV1SuggestTrialsMetadata = 0;
+buildGoogleCloudMlV1SuggestTrialsMetadata() {
+ var o = new api.GoogleCloudMlV1SuggestTrialsMetadata();
+ buildCounterGoogleCloudMlV1SuggestTrialsMetadata++;
+ if (buildCounterGoogleCloudMlV1SuggestTrialsMetadata < 3) {
+ o.clientId = "foo";
+ o.createTime = "foo";
+ o.study = "foo";
+ o.suggestionCount = 42;
+ }
+ buildCounterGoogleCloudMlV1SuggestTrialsMetadata--;
+ return o;
+}
+
+checkGoogleCloudMlV1SuggestTrialsMetadata(
+ api.GoogleCloudMlV1SuggestTrialsMetadata o) {
+ buildCounterGoogleCloudMlV1SuggestTrialsMetadata++;
+ if (buildCounterGoogleCloudMlV1SuggestTrialsMetadata < 3) {
+ unittest.expect(o.clientId, unittest.equals('foo'));
+ unittest.expect(o.createTime, unittest.equals('foo'));
+ unittest.expect(o.study, unittest.equals('foo'));
+ unittest.expect(o.suggestionCount, unittest.equals(42));
+ }
+ buildCounterGoogleCloudMlV1SuggestTrialsMetadata--;
+}
+
+core.int buildCounterGoogleCloudMlV1SuggestTrialsRequest = 0;
+buildGoogleCloudMlV1SuggestTrialsRequest() {
+ var o = new api.GoogleCloudMlV1SuggestTrialsRequest();
+ buildCounterGoogleCloudMlV1SuggestTrialsRequest++;
+ if (buildCounterGoogleCloudMlV1SuggestTrialsRequest < 3) {
+ o.clientId = "foo";
+ o.suggestionCount = 42;
+ }
+ buildCounterGoogleCloudMlV1SuggestTrialsRequest--;
+ return o;
+}
+
+checkGoogleCloudMlV1SuggestTrialsRequest(
+ api.GoogleCloudMlV1SuggestTrialsRequest o) {
+ buildCounterGoogleCloudMlV1SuggestTrialsRequest++;
+ if (buildCounterGoogleCloudMlV1SuggestTrialsRequest < 3) {
+ unittest.expect(o.clientId, unittest.equals('foo'));
+ unittest.expect(o.suggestionCount, unittest.equals(42));
+ }
+ buildCounterGoogleCloudMlV1SuggestTrialsRequest--;
+}
+
+buildUnnamed3300() {
+ var o = new core.List<api.GoogleCloudMlV1Trial>();
+ o.add(buildGoogleCloudMlV1Trial());
+ o.add(buildGoogleCloudMlV1Trial());
+ return o;
+}
+
+checkUnnamed3300(core.List<api.GoogleCloudMlV1Trial> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1Trial(o[0]);
+ checkGoogleCloudMlV1Trial(o[1]);
+}
+
+core.int buildCounterGoogleCloudMlV1SuggestTrialsResponse = 0;
+buildGoogleCloudMlV1SuggestTrialsResponse() {
+ var o = new api.GoogleCloudMlV1SuggestTrialsResponse();
+ buildCounterGoogleCloudMlV1SuggestTrialsResponse++;
+ if (buildCounterGoogleCloudMlV1SuggestTrialsResponse < 3) {
+ o.endTime = "foo";
+ o.startTime = "foo";
+ o.studyState = "foo";
+ o.trials = buildUnnamed3300();
+ }
+ buildCounterGoogleCloudMlV1SuggestTrialsResponse--;
+ return o;
+}
+
+checkGoogleCloudMlV1SuggestTrialsResponse(
+ api.GoogleCloudMlV1SuggestTrialsResponse o) {
+ buildCounterGoogleCloudMlV1SuggestTrialsResponse++;
+ if (buildCounterGoogleCloudMlV1SuggestTrialsResponse < 3) {
+ unittest.expect(o.endTime, unittest.equals('foo'));
+ unittest.expect(o.startTime, unittest.equals('foo'));
+ unittest.expect(o.studyState, unittest.equals('foo'));
+ checkUnnamed3300(o.trials);
+ }
+ buildCounterGoogleCloudMlV1SuggestTrialsResponse--;
+}
+
+buildUnnamed3301() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3146(core.List<core.String> o) {
+checkUnnamed3301(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed3147() {
+buildUnnamed3302() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3147(core.List<core.String> o) {
+checkUnnamed3302(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -987,13 +1967,16 @@
var o = new api.GoogleCloudMlV1TrainingInput();
buildCounterGoogleCloudMlV1TrainingInput++;
if (buildCounterGoogleCloudMlV1TrainingInput < 3) {
- o.args = buildUnnamed3146();
+ o.args = buildUnnamed3301();
+ o.encryptionConfig = buildGoogleCloudMlV1EncryptionConfig();
+ o.evaluatorConfig = buildGoogleCloudMlV1ReplicaConfig();
+ o.evaluatorCount = "foo";
+ o.evaluatorType = "foo";
o.hyperparameters = buildGoogleCloudMlV1HyperparameterSpec();
o.jobDir = "foo";
o.masterConfig = buildGoogleCloudMlV1ReplicaConfig();
o.masterType = "foo";
- o.maxRunningTime = "foo";
- o.packageUris = buildUnnamed3147();
+ o.packageUris = buildUnnamed3302();
o.parameterServerConfig = buildGoogleCloudMlV1ReplicaConfig();
o.parameterServerCount = "foo";
o.parameterServerType = "foo";
@@ -1002,6 +1985,8 @@
o.region = "foo";
o.runtimeVersion = "foo";
o.scaleTier = "foo";
+ o.scheduling = buildGoogleCloudMlV1Scheduling();
+ o.useChiefInTfConfig = true;
o.workerConfig = buildGoogleCloudMlV1ReplicaConfig();
o.workerCount = "foo";
o.workerType = "foo";
@@ -1013,13 +1998,16 @@
checkGoogleCloudMlV1TrainingInput(api.GoogleCloudMlV1TrainingInput o) {
buildCounterGoogleCloudMlV1TrainingInput++;
if (buildCounterGoogleCloudMlV1TrainingInput < 3) {
- checkUnnamed3146(o.args);
+ checkUnnamed3301(o.args);
+ checkGoogleCloudMlV1EncryptionConfig(o.encryptionConfig);
+ checkGoogleCloudMlV1ReplicaConfig(o.evaluatorConfig);
+ unittest.expect(o.evaluatorCount, unittest.equals('foo'));
+ unittest.expect(o.evaluatorType, unittest.equals('foo'));
checkGoogleCloudMlV1HyperparameterSpec(o.hyperparameters);
unittest.expect(o.jobDir, unittest.equals('foo'));
checkGoogleCloudMlV1ReplicaConfig(o.masterConfig);
unittest.expect(o.masterType, unittest.equals('foo'));
- unittest.expect(o.maxRunningTime, unittest.equals('foo'));
- checkUnnamed3147(o.packageUris);
+ checkUnnamed3302(o.packageUris);
checkGoogleCloudMlV1ReplicaConfig(o.parameterServerConfig);
unittest.expect(o.parameterServerCount, unittest.equals('foo'));
unittest.expect(o.parameterServerType, unittest.equals('foo'));
@@ -1028,6 +2016,8 @@
unittest.expect(o.region, unittest.equals('foo'));
unittest.expect(o.runtimeVersion, unittest.equals('foo'));
unittest.expect(o.scaleTier, unittest.equals('foo'));
+ checkGoogleCloudMlV1Scheduling(o.scheduling);
+ unittest.expect(o.useChiefInTfConfig, unittest.isTrue);
checkGoogleCloudMlV1ReplicaConfig(o.workerConfig);
unittest.expect(o.workerCount, unittest.equals('foo'));
unittest.expect(o.workerType, unittest.equals('foo'));
@@ -1035,14 +2025,14 @@
buildCounterGoogleCloudMlV1TrainingInput--;
}
-buildUnnamed3148() {
+buildUnnamed3303() {
var o = new core.List<api.GoogleCloudMlV1HyperparameterOutput>();
o.add(buildGoogleCloudMlV1HyperparameterOutput());
o.add(buildGoogleCloudMlV1HyperparameterOutput());
return o;
}
-checkUnnamed3148(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) {
+checkUnnamed3303(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1HyperparameterOutput(o[0]);
checkGoogleCloudMlV1HyperparameterOutput(o[1]);
@@ -1059,7 +2049,7 @@
o.hyperparameterMetricTag = "foo";
o.isBuiltInAlgorithmJob = true;
o.isHyperparameterTuningJob = true;
- o.trials = buildUnnamed3148();
+ o.trials = buildUnnamed3303();
}
buildCounterGoogleCloudMlV1TrainingOutput--;
return o;
@@ -1074,32 +2064,95 @@
unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo'));
unittest.expect(o.isBuiltInAlgorithmJob, unittest.isTrue);
unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue);
- checkUnnamed3148(o.trials);
+ checkUnnamed3303(o.trials);
}
buildCounterGoogleCloudMlV1TrainingOutput--;
}
-buildUnnamed3149() {
+buildUnnamed3304() {
+ var o = new core.List<api.GoogleCloudMlV1Measurement>();
+ o.add(buildGoogleCloudMlV1Measurement());
+ o.add(buildGoogleCloudMlV1Measurement());
+ return o;
+}
+
+checkUnnamed3304(core.List<api.GoogleCloudMlV1Measurement> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1Measurement(o[0]);
+ checkGoogleCloudMlV1Measurement(o[1]);
+}
+
+buildUnnamed3305() {
+ var o = new core.List<api.GoogleCloudMlV1TrialParameter>();
+ o.add(buildGoogleCloudMlV1TrialParameter());
+ o.add(buildGoogleCloudMlV1TrialParameter());
+ return o;
+}
+
+checkUnnamed3305(core.List<api.GoogleCloudMlV1TrialParameter> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudMlV1TrialParameter(o[0]);
+ checkGoogleCloudMlV1TrialParameter(o[1]);
+}
+
+core.int buildCounterGoogleCloudMlV1Trial = 0;
+buildGoogleCloudMlV1Trial() {
+ var o = new api.GoogleCloudMlV1Trial();
+ buildCounterGoogleCloudMlV1Trial++;
+ if (buildCounterGoogleCloudMlV1Trial < 3) {
+ o.clientId = "foo";
+ o.endTime = "foo";
+ o.finalMeasurement = buildGoogleCloudMlV1Measurement();
+ o.infeasibleReason = "foo";
+ o.measurements = buildUnnamed3304();
+ o.name = "foo";
+ o.parameters = buildUnnamed3305();
+ o.startTime = "foo";
+ o.state = "foo";
+ o.trialInfeasible = true;
+ }
+ buildCounterGoogleCloudMlV1Trial--;
+ return o;
+}
+
+checkGoogleCloudMlV1Trial(api.GoogleCloudMlV1Trial o) {
+ buildCounterGoogleCloudMlV1Trial++;
+ if (buildCounterGoogleCloudMlV1Trial < 3) {
+ unittest.expect(o.clientId, unittest.equals('foo'));
+ unittest.expect(o.endTime, unittest.equals('foo'));
+ checkGoogleCloudMlV1Measurement(o.finalMeasurement);
+ unittest.expect(o.infeasibleReason, unittest.equals('foo'));
+ checkUnnamed3304(o.measurements);
+ unittest.expect(o.name, unittest.equals('foo'));
+ checkUnnamed3305(o.parameters);
+ unittest.expect(o.startTime, unittest.equals('foo'));
+ unittest.expect(o.state, unittest.equals('foo'));
+ unittest.expect(o.trialInfeasible, unittest.isTrue);
+ }
+ buildCounterGoogleCloudMlV1Trial--;
+}
+
+buildUnnamed3306() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3149(core.Map<core.String, core.String> o) {
+checkUnnamed3306(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
}
-buildUnnamed3150() {
+buildUnnamed3307() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3150(core.List<core.String> o) {
+checkUnnamed3307(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -1110,22 +2163,25 @@
var o = new api.GoogleCloudMlV1Version();
buildCounterGoogleCloudMlV1Version++;
if (buildCounterGoogleCloudMlV1Version < 3) {
+ o.acceleratorConfig = buildGoogleCloudMlV1AcceleratorConfig();
o.autoScaling = buildGoogleCloudMlV1AutoScaling();
o.createTime = "foo";
o.deploymentUri = "foo";
o.description = "foo";
o.errorMessage = "foo";
o.etag = "foo";
+ o.explanationConfig = buildGoogleCloudMlV1ExplanationConfig();
o.framework = "foo";
o.isDefault = true;
- o.labels = buildUnnamed3149();
+ o.labels = buildUnnamed3306();
o.lastUseTime = "foo";
o.machineType = "foo";
o.manualScaling = buildGoogleCloudMlV1ManualScaling();
o.name = "foo";
- o.packageUris = buildUnnamed3150();
+ o.packageUris = buildUnnamed3307();
o.predictionClass = "foo";
o.pythonVersion = "foo";
+ o.requestLoggingConfig = buildGoogleCloudMlV1RequestLoggingConfig();
o.runtimeVersion = "foo";
o.serviceAccount = "foo";
o.state = "foo";
@@ -1137,22 +2193,25 @@
checkGoogleCloudMlV1Version(api.GoogleCloudMlV1Version o) {
buildCounterGoogleCloudMlV1Version++;
if (buildCounterGoogleCloudMlV1Version < 3) {
+ checkGoogleCloudMlV1AcceleratorConfig(o.acceleratorConfig);
checkGoogleCloudMlV1AutoScaling(o.autoScaling);
unittest.expect(o.createTime, unittest.equals('foo'));
unittest.expect(o.deploymentUri, unittest.equals('foo'));
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.errorMessage, unittest.equals('foo'));
unittest.expect(o.etag, unittest.equals('foo'));
+ checkGoogleCloudMlV1ExplanationConfig(o.explanationConfig);
unittest.expect(o.framework, unittest.equals('foo'));
unittest.expect(o.isDefault, unittest.isTrue);
- checkUnnamed3149(o.labels);
+ checkUnnamed3306(o.labels);
unittest.expect(o.lastUseTime, unittest.equals('foo'));
unittest.expect(o.machineType, unittest.equals('foo'));
checkGoogleCloudMlV1ManualScaling(o.manualScaling);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed3150(o.packageUris);
+ checkUnnamed3307(o.packageUris);
unittest.expect(o.predictionClass, unittest.equals('foo'));
unittest.expect(o.pythonVersion, unittest.equals('foo'));
+ checkGoogleCloudMlV1RequestLoggingConfig(o.requestLoggingConfig);
unittest.expect(o.runtimeVersion, unittest.equals('foo'));
unittest.expect(o.serviceAccount, unittest.equals('foo'));
unittest.expect(o.state, unittest.equals('foo'));
@@ -1160,14 +2219,33 @@
buildCounterGoogleCloudMlV1Version--;
}
-buildUnnamed3151() {
+core.int buildCounterGoogleCloudMlV1XraiAttribution = 0;
+buildGoogleCloudMlV1XraiAttribution() {
+ var o = new api.GoogleCloudMlV1XraiAttribution();
+ buildCounterGoogleCloudMlV1XraiAttribution++;
+ if (buildCounterGoogleCloudMlV1XraiAttribution < 3) {
+ o.numIntegralSteps = 42;
+ }
+ buildCounterGoogleCloudMlV1XraiAttribution--;
+ return o;
+}
+
+checkGoogleCloudMlV1XraiAttribution(api.GoogleCloudMlV1XraiAttribution o) {
+ buildCounterGoogleCloudMlV1XraiAttribution++;
+ if (buildCounterGoogleCloudMlV1XraiAttribution < 3) {
+ unittest.expect(o.numIntegralSteps, unittest.equals(42));
+ }
+ buildCounterGoogleCloudMlV1XraiAttribution--;
+}
+
+buildUnnamed3308() {
var o = new core.List<api.GoogleIamV1AuditLogConfig>();
o.add(buildGoogleIamV1AuditLogConfig());
o.add(buildGoogleIamV1AuditLogConfig());
return o;
}
-checkUnnamed3151(core.List<api.GoogleIamV1AuditLogConfig> o) {
+checkUnnamed3308(core.List<api.GoogleIamV1AuditLogConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleIamV1AuditLogConfig(o[0]);
checkGoogleIamV1AuditLogConfig(o[1]);
@@ -1178,7 +2256,7 @@
var o = new api.GoogleIamV1AuditConfig();
buildCounterGoogleIamV1AuditConfig++;
if (buildCounterGoogleIamV1AuditConfig < 3) {
- o.auditLogConfigs = buildUnnamed3151();
+ o.auditLogConfigs = buildUnnamed3308();
o.service = "foo";
}
buildCounterGoogleIamV1AuditConfig--;
@@ -1188,20 +2266,20 @@
checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) {
buildCounterGoogleIamV1AuditConfig++;
if (buildCounterGoogleIamV1AuditConfig < 3) {
- checkUnnamed3151(o.auditLogConfigs);
+ checkUnnamed3308(o.auditLogConfigs);
unittest.expect(o.service, unittest.equals('foo'));
}
buildCounterGoogleIamV1AuditConfig--;
}
-buildUnnamed3152() {
+buildUnnamed3309() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3152(core.List<core.String> o) {
+checkUnnamed3309(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -1212,7 +2290,7 @@
var o = new api.GoogleIamV1AuditLogConfig();
buildCounterGoogleIamV1AuditLogConfig++;
if (buildCounterGoogleIamV1AuditLogConfig < 3) {
- o.exemptedMembers = buildUnnamed3152();
+ o.exemptedMembers = buildUnnamed3309();
o.logType = "foo";
}
buildCounterGoogleIamV1AuditLogConfig--;
@@ -1222,20 +2300,20 @@
checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) {
buildCounterGoogleIamV1AuditLogConfig++;
if (buildCounterGoogleIamV1AuditLogConfig < 3) {
- checkUnnamed3152(o.exemptedMembers);
+ checkUnnamed3309(o.exemptedMembers);
unittest.expect(o.logType, unittest.equals('foo'));
}
buildCounterGoogleIamV1AuditLogConfig--;
}
-buildUnnamed3153() {
+buildUnnamed3310() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3153(core.List<core.String> o) {
+checkUnnamed3310(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -1247,7 +2325,7 @@
buildCounterGoogleIamV1Binding++;
if (buildCounterGoogleIamV1Binding < 3) {
o.condition = buildGoogleTypeExpr();
- o.members = buildUnnamed3153();
+ o.members = buildUnnamed3310();
o.role = "foo";
}
buildCounterGoogleIamV1Binding--;
@@ -1258,33 +2336,33 @@
buildCounterGoogleIamV1Binding++;
if (buildCounterGoogleIamV1Binding < 3) {
checkGoogleTypeExpr(o.condition);
- checkUnnamed3153(o.members);
+ checkUnnamed3310(o.members);
unittest.expect(o.role, unittest.equals('foo'));
}
buildCounterGoogleIamV1Binding--;
}
-buildUnnamed3154() {
+buildUnnamed3311() {
var o = new core.List<api.GoogleIamV1AuditConfig>();
o.add(buildGoogleIamV1AuditConfig());
o.add(buildGoogleIamV1AuditConfig());
return o;
}
-checkUnnamed3154(core.List<api.GoogleIamV1AuditConfig> o) {
+checkUnnamed3311(core.List<api.GoogleIamV1AuditConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleIamV1AuditConfig(o[0]);
checkGoogleIamV1AuditConfig(o[1]);
}
-buildUnnamed3155() {
+buildUnnamed3312() {
var o = new core.List<api.GoogleIamV1Binding>();
o.add(buildGoogleIamV1Binding());
o.add(buildGoogleIamV1Binding());
return o;
}
-checkUnnamed3155(core.List<api.GoogleIamV1Binding> o) {
+checkUnnamed3312(core.List<api.GoogleIamV1Binding> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleIamV1Binding(o[0]);
checkGoogleIamV1Binding(o[1]);
@@ -1295,8 +2373,8 @@
var o = new api.GoogleIamV1Policy();
buildCounterGoogleIamV1Policy++;
if (buildCounterGoogleIamV1Policy < 3) {
- o.auditConfigs = buildUnnamed3154();
- o.bindings = buildUnnamed3155();
+ o.auditConfigs = buildUnnamed3311();
+ o.bindings = buildUnnamed3312();
o.etag = "foo";
o.version = 42;
}
@@ -1307,8 +2385,8 @@
checkGoogleIamV1Policy(api.GoogleIamV1Policy o) {
buildCounterGoogleIamV1Policy++;
if (buildCounterGoogleIamV1Policy < 3) {
- checkUnnamed3154(o.auditConfigs);
- checkUnnamed3155(o.bindings);
+ checkUnnamed3311(o.auditConfigs);
+ checkUnnamed3312(o.bindings);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals(42));
}
@@ -1336,14 +2414,14 @@
buildCounterGoogleIamV1SetIamPolicyRequest--;
}
-buildUnnamed3156() {
+buildUnnamed3313() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3156(core.List<core.String> o) {
+checkUnnamed3313(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -1354,7 +2432,7 @@
var o = new api.GoogleIamV1TestIamPermissionsRequest();
buildCounterGoogleIamV1TestIamPermissionsRequest++;
if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) {
- o.permissions = buildUnnamed3156();
+ o.permissions = buildUnnamed3313();
}
buildCounterGoogleIamV1TestIamPermissionsRequest--;
return o;
@@ -1364,19 +2442,19 @@
api.GoogleIamV1TestIamPermissionsRequest o) {
buildCounterGoogleIamV1TestIamPermissionsRequest++;
if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) {
- checkUnnamed3156(o.permissions);
+ checkUnnamed3313(o.permissions);
}
buildCounterGoogleIamV1TestIamPermissionsRequest--;
}
-buildUnnamed3157() {
+buildUnnamed3314() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3157(core.List<core.String> o) {
+checkUnnamed3314(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -1387,7 +2465,7 @@
var o = new api.GoogleIamV1TestIamPermissionsResponse();
buildCounterGoogleIamV1TestIamPermissionsResponse++;
if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) {
- o.permissions = buildUnnamed3157();
+ o.permissions = buildUnnamed3314();
}
buildCounterGoogleIamV1TestIamPermissionsResponse--;
return o;
@@ -1397,19 +2475,19 @@
api.GoogleIamV1TestIamPermissionsResponse o) {
buildCounterGoogleIamV1TestIamPermissionsResponse++;
if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) {
- checkUnnamed3157(o.permissions);
+ checkUnnamed3314(o.permissions);
}
buildCounterGoogleIamV1TestIamPermissionsResponse--;
}
-buildUnnamed3158() {
+buildUnnamed3315() {
var o = new core.List<api.GoogleLongrunningOperation>();
o.add(buildGoogleLongrunningOperation());
o.add(buildGoogleLongrunningOperation());
return o;
}
-checkUnnamed3158(core.List<api.GoogleLongrunningOperation> o) {
+checkUnnamed3315(core.List<api.GoogleLongrunningOperation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleLongrunningOperation(o[0]);
checkGoogleLongrunningOperation(o[1]);
@@ -1421,7 +2499,7 @@
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
o.nextPageToken = "foo";
- o.operations = buildUnnamed3158();
+ o.operations = buildUnnamed3315();
}
buildCounterGoogleLongrunningListOperationsResponse--;
return o;
@@ -1432,12 +2510,12 @@
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3158(o.operations);
+ checkUnnamed3315(o.operations);
}
buildCounterGoogleLongrunningListOperationsResponse--;
}
-buildUnnamed3159() {
+buildUnnamed3316() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1452,7 +2530,7 @@
return o;
}
-checkUnnamed3159(core.Map<core.String, core.Object> o) {
+checkUnnamed3316(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted3 = (o["x"]) as core.Map;
unittest.expect(casted3, unittest.hasLength(3));
@@ -1466,7 +2544,7 @@
unittest.expect(casted4["string"], unittest.equals('foo'));
}
-buildUnnamed3160() {
+buildUnnamed3317() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1481,7 +2559,7 @@
return o;
}
-checkUnnamed3160(core.Map<core.String, core.Object> o) {
+checkUnnamed3317(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted5 = (o["x"]) as core.Map;
unittest.expect(casted5, unittest.hasLength(3));
@@ -1502,9 +2580,9 @@
if (buildCounterGoogleLongrunningOperation < 3) {
o.done = true;
o.error = buildGoogleRpcStatus();
- o.metadata = buildUnnamed3159();
+ o.metadata = buildUnnamed3316();
o.name = "foo";
- o.response = buildUnnamed3160();
+ o.response = buildUnnamed3317();
}
buildCounterGoogleLongrunningOperation--;
return o;
@@ -1515,9 +2593,9 @@
if (buildCounterGoogleLongrunningOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkGoogleRpcStatus(o.error);
- checkUnnamed3159(o.metadata);
+ checkUnnamed3316(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed3160(o.response);
+ checkUnnamed3317(o.response);
}
buildCounterGoogleLongrunningOperation--;
}
@@ -1537,7 +2615,7 @@
buildCounterGoogleProtobufEmpty--;
}
-buildUnnamed3161() {
+buildUnnamed3318() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1552,7 +2630,7 @@
return o;
}
-checkUnnamed3161(core.Map<core.String, core.Object> o) {
+checkUnnamed3318(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted7 = (o["x"]) as core.Map;
unittest.expect(casted7, unittest.hasLength(3));
@@ -1566,17 +2644,17 @@
unittest.expect(casted8["string"], unittest.equals('foo'));
}
-buildUnnamed3162() {
+buildUnnamed3319() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed3161());
- o.add(buildUnnamed3161());
+ o.add(buildUnnamed3318());
+ o.add(buildUnnamed3318());
return o;
}
-checkUnnamed3162(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed3319(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed3161(o[0]);
- checkUnnamed3161(o[1]);
+ checkUnnamed3318(o[0]);
+ checkUnnamed3318(o[1]);
}
core.int buildCounterGoogleRpcStatus = 0;
@@ -1585,7 +2663,7 @@
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
o.code = 42;
- o.details = buildUnnamed3162();
+ o.details = buildUnnamed3319();
o.message = "foo";
}
buildCounterGoogleRpcStatus--;
@@ -1596,7 +2674,7 @@
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed3162(o.details);
+ checkUnnamed3319(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterGoogleRpcStatus--;
@@ -1637,6 +2715,34 @@
});
unittest.group(
+ "obj-schema-GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o =
+ buildGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig();
+ var od = new api
+ .GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig(
+ od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o =
+ buildGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig();
+ var od = new api
+ .GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig(
+ od);
+ });
+ });
+
+ unittest.group(
"obj-schema-GoogleCloudMlV1HyperparameterOutputHyperparameterMetric", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric();
@@ -1647,6 +2753,129 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1MeasurementMetric", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1MeasurementMetric();
+ var od = new api.GoogleCloudMlV1MeasurementMetric.fromJson(o.toJson());
+ checkGoogleCloudMlV1MeasurementMetric(od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o =
+ buildGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec();
+ var od = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec(od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec();
+ var od = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec(od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec();
+ var od = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec(od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec();
+ var od = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec(od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o =
+ buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec();
+ var od = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec(
+ od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o =
+ buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec();
+ var od = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec(
+ od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o =
+ buildGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec();
+ var od = new api
+ .GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec(
+ od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1StudyConfigMetricSpec", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1StudyConfigMetricSpec();
+ var od =
+ new api.GoogleCloudMlV1StudyConfigMetricSpec.fromJson(o.toJson());
+ checkGoogleCloudMlV1StudyConfigMetricSpec(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1StudyConfigParameterSpec", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1StudyConfigParameterSpec();
+ var od =
+ new api.GoogleCloudMlV1StudyConfigParameterSpec.fromJson(o.toJson());
+ checkGoogleCloudMlV1StudyConfigParameterSpec(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1TrialParameter", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1TrialParameter();
+ var od = new api.GoogleCloudMlV1TrialParameter.fromJson(o.toJson());
+ checkGoogleCloudMlV1TrialParameter(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1AcceleratorConfig", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1AcceleratorConfig();
@@ -1655,6 +2884,15 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1AddTrialMeasurementRequest", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1AddTrialMeasurementRequest();
+ var od = new api.GoogleCloudMlV1AddTrialMeasurementRequest.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1AddTrialMeasurementRequest(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1AutoScaling", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1AutoScaling();
@@ -1663,6 +2901,15 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1AutomatedStoppingConfig", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1AutomatedStoppingConfig();
+ var od =
+ new api.GoogleCloudMlV1AutomatedStoppingConfig.fromJson(o.toJson());
+ checkGoogleCloudMlV1AutomatedStoppingConfig(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1BuiltInAlgorithmOutput", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1BuiltInAlgorithmOutput();
@@ -1688,6 +2935,47 @@
});
});
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata();
+ var od =
+ new api.GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata(od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest();
+ var od =
+ new api.GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest(od);
+ });
+ });
+
+ unittest.group(
+ "obj-schema-GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse();
+ var od =
+ new api.GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1CheckTrialEarlyStoppingStateResponse(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1CompleteTrialRequest", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1CompleteTrialRequest();
+ var od = new api.GoogleCloudMlV1CompleteTrialRequest.fromJson(o.toJson());
+ checkGoogleCloudMlV1CompleteTrialRequest(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1Config", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1Config();
@@ -1696,6 +2984,30 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1EncryptionConfig", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1EncryptionConfig();
+ var od = new api.GoogleCloudMlV1EncryptionConfig.fromJson(o.toJson());
+ checkGoogleCloudMlV1EncryptionConfig(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1ExplainRequest", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1ExplainRequest();
+ var od = new api.GoogleCloudMlV1ExplainRequest.fromJson(o.toJson());
+ checkGoogleCloudMlV1ExplainRequest(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1ExplanationConfig", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1ExplanationConfig();
+ var od = new api.GoogleCloudMlV1ExplanationConfig.fromJson(o.toJson());
+ checkGoogleCloudMlV1ExplanationConfig(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1GetConfigResponse", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1GetConfigResponse();
@@ -1720,6 +3032,16 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1IntegratedGradientsAttribution",
+ () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1IntegratedGradientsAttribution();
+ var od = new api.GoogleCloudMlV1IntegratedGradientsAttribution.fromJson(
+ o.toJson());
+ checkGoogleCloudMlV1IntegratedGradientsAttribution(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1Job", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1Job();
@@ -1753,6 +3075,22 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1ListStudiesResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1ListStudiesResponse();
+ var od = new api.GoogleCloudMlV1ListStudiesResponse.fromJson(o.toJson());
+ checkGoogleCloudMlV1ListStudiesResponse(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1ListTrialsResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1ListTrialsResponse();
+ var od = new api.GoogleCloudMlV1ListTrialsResponse.fromJson(o.toJson());
+ checkGoogleCloudMlV1ListTrialsResponse(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1ListVersionsResponse", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1ListVersionsResponse();
@@ -1777,6 +3115,14 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1Measurement", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1Measurement();
+ var od = new api.GoogleCloudMlV1Measurement.fromJson(o.toJson());
+ checkGoogleCloudMlV1Measurement(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1Model", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1Model();
@@ -1833,6 +3179,31 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1RequestLoggingConfig", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1RequestLoggingConfig();
+ var od = new api.GoogleCloudMlV1RequestLoggingConfig.fromJson(o.toJson());
+ checkGoogleCloudMlV1RequestLoggingConfig(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1SampledShapleyAttribution", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1SampledShapleyAttribution();
+ var od =
+ new api.GoogleCloudMlV1SampledShapleyAttribution.fromJson(o.toJson());
+ checkGoogleCloudMlV1SampledShapleyAttribution(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1Scheduling", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1Scheduling();
+ var od = new api.GoogleCloudMlV1Scheduling.fromJson(o.toJson());
+ checkGoogleCloudMlV1Scheduling(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1SetDefaultVersionRequest", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1SetDefaultVersionRequest();
@@ -1842,6 +3213,56 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1StopTrialRequest", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1StopTrialRequest();
+ var od = new api.GoogleCloudMlV1StopTrialRequest.fromJson(o.toJson());
+ checkGoogleCloudMlV1StopTrialRequest(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1Study", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1Study();
+ var od = new api.GoogleCloudMlV1Study.fromJson(o.toJson());
+ checkGoogleCloudMlV1Study(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1StudyConfig", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1StudyConfig();
+ var od = new api.GoogleCloudMlV1StudyConfig.fromJson(o.toJson());
+ checkGoogleCloudMlV1StudyConfig(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1SuggestTrialsMetadata", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1SuggestTrialsMetadata();
+ var od =
+ new api.GoogleCloudMlV1SuggestTrialsMetadata.fromJson(o.toJson());
+ checkGoogleCloudMlV1SuggestTrialsMetadata(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1SuggestTrialsRequest", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1SuggestTrialsRequest();
+ var od = new api.GoogleCloudMlV1SuggestTrialsRequest.fromJson(o.toJson());
+ checkGoogleCloudMlV1SuggestTrialsRequest(od);
+ });
+ });
+
+ unittest.group("obj-schema-GoogleCloudMlV1SuggestTrialsResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1SuggestTrialsResponse();
+ var od =
+ new api.GoogleCloudMlV1SuggestTrialsResponse.fromJson(o.toJson());
+ checkGoogleCloudMlV1SuggestTrialsResponse(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1TrainingInput", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1TrainingInput();
@@ -1858,6 +3279,14 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1Trial", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1Trial();
+ var od = new api.GoogleCloudMlV1Trial.fromJson(o.toJson());
+ checkGoogleCloudMlV1Trial(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1Version", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1Version();
@@ -1866,6 +3295,14 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1XraiAttribution", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1XraiAttribution();
+ var od = new api.GoogleCloudMlV1XraiAttribution.fromJson(o.toJson());
+ checkGoogleCloudMlV1XraiAttribution(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleIamV1AuditConfig", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleIamV1AuditConfig();
@@ -1966,6 +3403,61 @@
});
unittest.group("resource-ProjectsResourceApi", () {
+ unittest.test("method--explain", () {
+ var mock = new HttpServerMock();
+ api.ProjectsResourceApi res = new api.MlApi(mock).projects;
+ var arg_request = buildGoogleCloudMlV1ExplainRequest();
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj = new api.GoogleCloudMlV1ExplainRequest.fromJson(json);
+ checkGoogleCloudMlV1ExplainRequest(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleApiHttpBody());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .explain(arg_request, arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleApiHttpBody(response);
+ })));
+ });
+
unittest.test("method--getConfig", () {
var mock = new HttpServerMock();
api.ProjectsResourceApi res = new api.MlApi(mock).projects;
@@ -2239,6 +3731,7 @@
var mock = new HttpServerMock();
api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs;
var arg_resource = "foo";
+ var arg_options_requestedPolicyVersion = 42;
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2271,6 +3764,9 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ unittest.expect(
+ core.int.parse(queryMap["options.requestedPolicyVersion"].first),
+ unittest.equals(arg_options_requestedPolicyVersion));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2280,7 +3776,10 @@
return new async.Future.value(stringResponse(200, h, resp));
}), true);
res
- .getIamPolicy(arg_resource, $fields: arg_$fields)
+ .getIamPolicy(arg_resource,
+ options_requestedPolicyVersion:
+ arg_options_requestedPolicyVersion,
+ $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleIamV1Policy(response);
})));
@@ -2290,9 +3789,9 @@
var mock = new HttpServerMock();
api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs;
var arg_parent = "foo";
- var arg_filter = "foo";
var arg_pageToken = "foo";
var arg_pageSize = 42;
+ var arg_filter = "foo";
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2325,11 +3824,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(
queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first),
unittest.equals(arg_pageSize));
+ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2340,9 +3839,9 @@
}), true);
res
.list(arg_parent,
- filter: arg_filter,
pageToken: arg_pageToken,
pageSize: arg_pageSize,
+ filter: arg_filter,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleCloudMlV1ListJobsResponse(response);
@@ -2636,6 +4135,830 @@
});
});
+ unittest.group("resource-ProjectsLocationsOperationsResourceApi", () {
+ unittest.test("method--cancel", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsOperationsResourceApi res =
+ new api.MlApi(mock).projects.locations.operations;
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleProtobufEmpty());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .cancel(arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleProtobufEmpty(response);
+ })));
+ });
+
+ unittest.test("method--get", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsOperationsResourceApi res =
+ new api.MlApi(mock).projects.locations.operations;
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleLongrunningOperation());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .get(arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleLongrunningOperation(response);
+ })));
+ });
+ });
+
+ unittest.group("resource-ProjectsLocationsStudiesResourceApi", () {
+ unittest.test("method--create", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesResourceApi res =
+ new api.MlApi(mock).projects.locations.studies;
+ var arg_request = buildGoogleCloudMlV1Study();
+ var arg_parent = "foo";
+ var arg_studyId = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj = new api.GoogleCloudMlV1Study.fromJson(json);
+ checkGoogleCloudMlV1Study(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(
+ queryMap["studyId"].first, unittest.equals(arg_studyId));
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleCloudMlV1Study());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .create(arg_request, arg_parent,
+ studyId: arg_studyId, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1Study(response);
+ })));
+ });
+
+ unittest.test("method--delete", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesResourceApi res =
+ new api.MlApi(mock).projects.locations.studies;
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleProtobufEmpty());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .delete(arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleProtobufEmpty(response);
+ })));
+ });
+
+ unittest.test("method--get", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesResourceApi res =
+ new api.MlApi(mock).projects.locations.studies;
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleCloudMlV1Study());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .get(arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1Study(response);
+ })));
+ });
+
+ unittest.test("method--list", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesResourceApi res =
+ new api.MlApi(mock).projects.locations.studies;
+ var arg_parent = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp =
+ convert.json.encode(buildGoogleCloudMlV1ListStudiesResponse());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .list(arg_parent, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1ListStudiesResponse(response);
+ })));
+ });
+ });
+
+ unittest.group("resource-ProjectsLocationsStudiesTrialsResourceApi", () {
+ unittest.test("method--addMeasurement", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_request = buildGoogleCloudMlV1AddTrialMeasurementRequest();
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj =
+ new api.GoogleCloudMlV1AddTrialMeasurementRequest.fromJson(json);
+ checkGoogleCloudMlV1AddTrialMeasurementRequest(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleCloudMlV1Trial());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .addMeasurement(arg_request, arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1Trial(response);
+ })));
+ });
+
+ unittest.test("method--checkEarlyStoppingState", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_request =
+ buildGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest();
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj =
+ new api.GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest.fromJson(
+ json);
+ checkGoogleCloudMlV1CheckTrialEarlyStoppingStateRequest(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleLongrunningOperation());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .checkEarlyStoppingState(arg_request, arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleLongrunningOperation(response);
+ })));
+ });
+
+ unittest.test("method--complete", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_request = buildGoogleCloudMlV1CompleteTrialRequest();
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj = new api.GoogleCloudMlV1CompleteTrialRequest.fromJson(json);
+ checkGoogleCloudMlV1CompleteTrialRequest(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleCloudMlV1Trial());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .complete(arg_request, arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1Trial(response);
+ })));
+ });
+
+ unittest.test("method--create", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_request = buildGoogleCloudMlV1Trial();
+ var arg_parent = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj = new api.GoogleCloudMlV1Trial.fromJson(json);
+ checkGoogleCloudMlV1Trial(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleCloudMlV1Trial());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .create(arg_request, arg_parent, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1Trial(response);
+ })));
+ });
+
+ unittest.test("method--delete", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleProtobufEmpty());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .delete(arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleProtobufEmpty(response);
+ })));
+ });
+
+ unittest.test("method--get", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleCloudMlV1Trial());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .get(arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1Trial(response);
+ })));
+ });
+
+ unittest.test("method--list", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_parent = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp =
+ convert.json.encode(buildGoogleCloudMlV1ListTrialsResponse());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .list(arg_parent, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1ListTrialsResponse(response);
+ })));
+ });
+
+ unittest.test("method--stop", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_request = buildGoogleCloudMlV1StopTrialRequest();
+ var arg_name = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj = new api.GoogleCloudMlV1StopTrialRequest.fromJson(json);
+ checkGoogleCloudMlV1StopTrialRequest(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleCloudMlV1Trial());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .stop(arg_request, arg_name, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleCloudMlV1Trial(response);
+ })));
+ });
+
+ unittest.test("method--suggest", () {
+ var mock = new HttpServerMock();
+ api.ProjectsLocationsStudiesTrialsResourceApi res =
+ new api.MlApi(mock).projects.locations.studies.trials;
+ var arg_request = buildGoogleCloudMlV1SuggestTrialsRequest();
+ var arg_parent = "foo";
+ var arg_$fields = "foo";
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
+ var obj = new api.GoogleCloudMlV1SuggestTrialsRequest.fromJson(json);
+ checkGoogleCloudMlV1SuggestTrialsRequest(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
+
+ var h = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildGoogleLongrunningOperation());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .suggest(arg_request, arg_parent, $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkGoogleLongrunningOperation(response);
+ })));
+ });
+ });
+
unittest.group("resource-ProjectsModelsResourceApi", () {
unittest.test("method--create", () {
var mock = new HttpServerMock();
@@ -2798,6 +5121,7 @@
var mock = new HttpServerMock();
api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models;
var arg_resource = "foo";
+ var arg_options_requestedPolicyVersion = 42;
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2830,6 +5154,9 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ unittest.expect(
+ core.int.parse(queryMap["options.requestedPolicyVersion"].first),
+ unittest.equals(arg_options_requestedPolicyVersion));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2839,7 +5166,10 @@
return new async.Future.value(stringResponse(200, h, resp));
}), true);
res
- .getIamPolicy(arg_resource, $fields: arg_$fields)
+ .getIamPolicy(arg_resource,
+ options_requestedPolicyVersion:
+ arg_options_requestedPolicyVersion,
+ $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleIamV1Policy(response);
})));
@@ -2849,9 +5179,9 @@
var mock = new HttpServerMock();
api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models;
var arg_parent = "foo";
+ var arg_filter = "foo";
var arg_pageToken = "foo";
var arg_pageSize = 42;
- var arg_filter = "foo";
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2884,11 +5214,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(
queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first),
unittest.equals(arg_pageSize));
- unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2900,9 +5230,9 @@
}), true);
res
.list(arg_parent,
+ filter: arg_filter,
pageToken: arg_pageToken,
pageSize: arg_pageSize,
- filter: arg_filter,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleCloudMlV1ListModelsResponse(response);
@@ -3246,9 +5576,9 @@
api.ProjectsModelsVersionsResourceApi res =
new api.MlApi(mock).projects.models.versions;
var arg_parent = "foo";
- var arg_filter = "foo";
var arg_pageToken = "foo";
var arg_pageSize = 42;
+ var arg_filter = "foo";
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -3281,11 +5611,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(
queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first),
unittest.equals(arg_pageSize));
+ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -3297,9 +5627,9 @@
}), true);
res
.list(arg_parent,
- filter: arg_filter,
pageToken: arg_pageToken,
pageSize: arg_pageSize,
+ filter: arg_filter,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleCloudMlV1ListVersionsResponse(response);