blob: 7ebca75e9a798491b420a04486aa032ae3b63676 [file] [log] [blame]
// ignore_for_file: camel_case_types
// ignore_for_file: comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: directives_ordering
// ignore_for_file: file_names
// ignore_for_file: library_names
// ignore_for_file: lines_longer_than_80_chars
// ignore_for_file: non_constant_identifier_names
// ignore_for_file: omit_local_variable_types
// ignore_for_file: prefer_expression_function_bodies
// ignore_for_file: prefer_final_locals
// ignore_for_file: prefer_interpolation_to_compose_strings
// ignore_for_file: unnecessary_brace_in_string_interps
// ignore_for_file: unnecessary_cast
// ignore_for_file: unnecessary_lambdas
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: unnecessary_string_interpolations
// ignore_for_file: avoid_returning_null
// ignore_for_file: cascade_invocations
// ignore_for_file: prefer_single_quotes
// ignore_for_file: unused_local_variable
library googleapis.videointelligence.v1.test;
import "dart:core" as core;
import "dart:async" as async;
import "dart:convert" as convert;
import 'package:http/http.dart' as http;
import 'package:test/test.dart' as unittest;
import 'package:googleapis/videointelligence/v1.dart' as api;
class HttpServerMock extends http.BaseClient {
core.Function _callback;
core.bool _expectJson;
void register(core.Function callback, core.bool expectJson) {
_callback = callback;
_expectJson = expectJson;
}
@core.override
async.Future<http.StreamedResponse> send(http.BaseRequest request) async {
if (_expectJson) {
final jsonString =
await request.finalize().transform(convert.utf8.decoder).join('');
if (jsonString.isEmpty) {
return _callback(request, null);
} else {
return _callback(request, convert.json.decode(jsonString));
}
} else {
var stream = request.finalize();
if (stream == null) {
return _callback(request, []);
} else {
final data = await stream.toBytes();
return _callback(request, data);
}
}
}
}
http.StreamedResponse stringResponse(core.int status,
core.Map<core.String, core.String> headers, core.String body) {
var stream = async.Stream.fromIterable([convert.utf8.encode(body)]);
return http.StreamedResponse(stream, status, headers: headers);
}
core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>
buildUnnamed249() {
var o = <api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>[];
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
return o;
}
void checkUnnamed249(
core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]);
checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress = 0;
api.GoogleCloudVideointelligenceV1AnnotateVideoProgress
buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() {
var o = api.GoogleCloudVideointelligenceV1AnnotateVideoProgress();
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
o.annotationProgress = buildUnnamed249();
}
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(
api.GoogleCloudVideointelligenceV1AnnotateVideoProgress o) {
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
checkUnnamed249(o.annotationProgress);
}
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
}
core.List<core.String> buildUnnamed250() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed250(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 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest = 0;
api.GoogleCloudVideointelligenceV1AnnotateVideoRequest
buildGoogleCloudVideointelligenceV1AnnotateVideoRequest() {
var o = api.GoogleCloudVideointelligenceV1AnnotateVideoRequest();
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest++;
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest < 3) {
o.features = buildUnnamed250();
o.inputContent = 'foo';
o.inputUri = 'foo';
o.locationId = 'foo';
o.outputUri = 'foo';
o.videoContext = buildGoogleCloudVideointelligenceV1VideoContext();
}
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest--;
return o;
}
void checkGoogleCloudVideointelligenceV1AnnotateVideoRequest(
api.GoogleCloudVideointelligenceV1AnnotateVideoRequest o) {
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest++;
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest < 3) {
checkUnnamed250(o.features);
unittest.expect(o.inputContent, unittest.equals('foo'));
unittest.expect(o.inputUri, unittest.equals('foo'));
unittest.expect(o.locationId, unittest.equals('foo'));
unittest.expect(o.outputUri, unittest.equals('foo'));
checkGoogleCloudVideointelligenceV1VideoContext(o.videoContext);
}
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest--;
}
core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults>
buildUnnamed251() {
var o = <api.GoogleCloudVideointelligenceV1VideoAnnotationResults>[];
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
return o;
}
void checkUnnamed251(
core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]);
checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse = 0;
api.GoogleCloudVideointelligenceV1AnnotateVideoResponse
buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() {
var o = api.GoogleCloudVideointelligenceV1AnnotateVideoResponse();
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
o.annotationResults = buildUnnamed251();
}
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
return o;
}
void checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(
api.GoogleCloudVideointelligenceV1AnnotateVideoResponse o) {
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
checkUnnamed251(o.annotationResults);
}
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
}
core.int buildCounterGoogleCloudVideointelligenceV1DetectedAttribute = 0;
api.GoogleCloudVideointelligenceV1DetectedAttribute
buildGoogleCloudVideointelligenceV1DetectedAttribute() {
var o = api.GoogleCloudVideointelligenceV1DetectedAttribute();
buildCounterGoogleCloudVideointelligenceV1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1DetectedAttribute < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.value = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1DetectedAttribute--;
return o;
}
void checkGoogleCloudVideointelligenceV1DetectedAttribute(
api.GoogleCloudVideointelligenceV1DetectedAttribute o) {
buildCounterGoogleCloudVideointelligenceV1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1DetectedAttribute < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.value, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1DetectedAttribute--;
}
core.int buildCounterGoogleCloudVideointelligenceV1DetectedLandmark = 0;
api.GoogleCloudVideointelligenceV1DetectedLandmark
buildGoogleCloudVideointelligenceV1DetectedLandmark() {
var o = api.GoogleCloudVideointelligenceV1DetectedLandmark();
buildCounterGoogleCloudVideointelligenceV1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1DetectedLandmark < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.point = buildGoogleCloudVideointelligenceV1NormalizedVertex();
}
buildCounterGoogleCloudVideointelligenceV1DetectedLandmark--;
return o;
}
void checkGoogleCloudVideointelligenceV1DetectedLandmark(
api.GoogleCloudVideointelligenceV1DetectedLandmark o) {
buildCounterGoogleCloudVideointelligenceV1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1DetectedLandmark < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
checkGoogleCloudVideointelligenceV1NormalizedVertex(o.point);
}
buildCounterGoogleCloudVideointelligenceV1DetectedLandmark--;
}
core.int buildCounterGoogleCloudVideointelligenceV1Entity = 0;
api.GoogleCloudVideointelligenceV1Entity
buildGoogleCloudVideointelligenceV1Entity() {
var o = api.GoogleCloudVideointelligenceV1Entity();
buildCounterGoogleCloudVideointelligenceV1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1Entity < 3) {
o.description = 'foo';
o.entityId = 'foo';
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1Entity--;
return o;
}
void checkGoogleCloudVideointelligenceV1Entity(
api.GoogleCloudVideointelligenceV1Entity o) {
buildCounterGoogleCloudVideointelligenceV1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1Entity < 3) {
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.entityId, unittest.equals('foo'));
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1Entity--;
}
core.List<api.GoogleCloudVideointelligenceV1ExplicitContentFrame>
buildUnnamed252() {
var o = <api.GoogleCloudVideointelligenceV1ExplicitContentFrame>[];
o.add(buildGoogleCloudVideointelligenceV1ExplicitContentFrame());
o.add(buildGoogleCloudVideointelligenceV1ExplicitContentFrame());
return o;
}
void checkUnnamed252(
core.List<api.GoogleCloudVideointelligenceV1ExplicitContentFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1ExplicitContentFrame(o[0]);
checkGoogleCloudVideointelligenceV1ExplicitContentFrame(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation =
0;
api.GoogleCloudVideointelligenceV1ExplicitContentAnnotation
buildGoogleCloudVideointelligenceV1ExplicitContentAnnotation() {
var o = api.GoogleCloudVideointelligenceV1ExplicitContentAnnotation();
buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation < 3) {
o.frames = buildUnnamed252();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1ExplicitContentAnnotation(
api.GoogleCloudVideointelligenceV1ExplicitContentAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation < 3) {
checkUnnamed252(o.frames);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig =
0;
api.GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig
buildGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig() {
var o = api.GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig();
buildCounterGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig <
3) {
o.model = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig--;
return o;
}
void checkGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig(
api.GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig o) {
buildCounterGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig <
3) {
unittest.expect(o.model, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig--;
}
core.int buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame = 0;
api.GoogleCloudVideointelligenceV1ExplicitContentFrame
buildGoogleCloudVideointelligenceV1ExplicitContentFrame() {
var o = api.GoogleCloudVideointelligenceV1ExplicitContentFrame();
buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame < 3) {
o.pornographyLikelihood = 'foo';
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1ExplicitContentFrame(
api.GoogleCloudVideointelligenceV1ExplicitContentFrame o) {
buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame < 3) {
unittest.expect(o.pornographyLikelihood, unittest.equals('foo'));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1Entity> buildUnnamed253() {
var o = <api.GoogleCloudVideointelligenceV1Entity>[];
o.add(buildGoogleCloudVideointelligenceV1Entity());
o.add(buildGoogleCloudVideointelligenceV1Entity());
return o;
}
void checkUnnamed253(core.List<api.GoogleCloudVideointelligenceV1Entity> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1Entity(o[0]);
checkGoogleCloudVideointelligenceV1Entity(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1LabelFrame> buildUnnamed254() {
var o = <api.GoogleCloudVideointelligenceV1LabelFrame>[];
o.add(buildGoogleCloudVideointelligenceV1LabelFrame());
o.add(buildGoogleCloudVideointelligenceV1LabelFrame());
return o;
}
void checkUnnamed254(
core.List<api.GoogleCloudVideointelligenceV1LabelFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LabelFrame(o[0]);
checkGoogleCloudVideointelligenceV1LabelFrame(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1LabelSegment> buildUnnamed255() {
var o = <api.GoogleCloudVideointelligenceV1LabelSegment>[];
o.add(buildGoogleCloudVideointelligenceV1LabelSegment());
o.add(buildGoogleCloudVideointelligenceV1LabelSegment());
return o;
}
void checkUnnamed255(
core.List<api.GoogleCloudVideointelligenceV1LabelSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LabelSegment(o[0]);
checkGoogleCloudVideointelligenceV1LabelSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1LabelAnnotation = 0;
api.GoogleCloudVideointelligenceV1LabelAnnotation
buildGoogleCloudVideointelligenceV1LabelAnnotation() {
var o = api.GoogleCloudVideointelligenceV1LabelAnnotation();
buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
o.categoryEntities = buildUnnamed253();
o.entity = buildGoogleCloudVideointelligenceV1Entity();
o.frames = buildUnnamed254();
o.segments = buildUnnamed255();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1LabelAnnotation(
api.GoogleCloudVideointelligenceV1LabelAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
checkUnnamed253(o.categoryEntities);
checkGoogleCloudVideointelligenceV1Entity(o.entity);
checkUnnamed254(o.frames);
checkUnnamed255(o.segments);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1LabelDetectionConfig = 0;
api.GoogleCloudVideointelligenceV1LabelDetectionConfig
buildGoogleCloudVideointelligenceV1LabelDetectionConfig() {
var o = api.GoogleCloudVideointelligenceV1LabelDetectionConfig();
buildCounterGoogleCloudVideointelligenceV1LabelDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1LabelDetectionConfig < 3) {
o.frameConfidenceThreshold = 42.0;
o.labelDetectionMode = 'foo';
o.model = 'foo';
o.stationaryCamera = true;
o.videoConfidenceThreshold = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1LabelDetectionConfig--;
return o;
}
void checkGoogleCloudVideointelligenceV1LabelDetectionConfig(
api.GoogleCloudVideointelligenceV1LabelDetectionConfig o) {
buildCounterGoogleCloudVideointelligenceV1LabelDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1LabelDetectionConfig < 3) {
unittest.expect(o.frameConfidenceThreshold, unittest.equals(42.0));
unittest.expect(o.labelDetectionMode, unittest.equals('foo'));
unittest.expect(o.model, unittest.equals('foo'));
unittest.expect(o.stationaryCamera, unittest.isTrue);
unittest.expect(o.videoConfidenceThreshold, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1LabelDetectionConfig--;
}
core.int buildCounterGoogleCloudVideointelligenceV1LabelFrame = 0;
api.GoogleCloudVideointelligenceV1LabelFrame
buildGoogleCloudVideointelligenceV1LabelFrame() {
var o = api.GoogleCloudVideointelligenceV1LabelFrame();
buildCounterGoogleCloudVideointelligenceV1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1LabelFrame < 3) {
o.confidence = 42.0;
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1LabelFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1LabelFrame(
api.GoogleCloudVideointelligenceV1LabelFrame o) {
buildCounterGoogleCloudVideointelligenceV1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1LabelFrame < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1LabelFrame--;
}
core.int buildCounterGoogleCloudVideointelligenceV1LabelSegment = 0;
api.GoogleCloudVideointelligenceV1LabelSegment
buildGoogleCloudVideointelligenceV1LabelSegment() {
var o = api.GoogleCloudVideointelligenceV1LabelSegment();
buildCounterGoogleCloudVideointelligenceV1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1LabelSegment < 3) {
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1LabelSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1LabelSegment(
api.GoogleCloudVideointelligenceV1LabelSegment o) {
buildCounterGoogleCloudVideointelligenceV1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1LabelSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1LabelSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1VideoSegment> buildUnnamed256() {
var o = <api.GoogleCloudVideointelligenceV1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
return o;
}
void checkUnnamed256(
core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1Track> buildUnnamed257() {
var o = <api.GoogleCloudVideointelligenceV1Track>[];
o.add(buildGoogleCloudVideointelligenceV1Track());
o.add(buildGoogleCloudVideointelligenceV1Track());
return o;
}
void checkUnnamed257(core.List<api.GoogleCloudVideointelligenceV1Track> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1Track(o[0]);
checkGoogleCloudVideointelligenceV1Track(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation =
0;
api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation
buildGoogleCloudVideointelligenceV1LogoRecognitionAnnotation() {
var o = api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation();
buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation < 3) {
o.entity = buildGoogleCloudVideointelligenceV1Entity();
o.segments = buildUnnamed256();
o.tracks = buildUnnamed257();
}
buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1LogoRecognitionAnnotation(
api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation < 3) {
checkGoogleCloudVideointelligenceV1Entity(o.entity);
checkUnnamed256(o.segments);
checkUnnamed257(o.tracks);
}
buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox = 0;
api.GoogleCloudVideointelligenceV1NormalizedBoundingBox
buildGoogleCloudVideointelligenceV1NormalizedBoundingBox() {
var o = api.GoogleCloudVideointelligenceV1NormalizedBoundingBox();
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox < 3) {
o.bottom = 42.0;
o.left = 42.0;
o.right = 42.0;
o.top = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox--;
return o;
}
void checkGoogleCloudVideointelligenceV1NormalizedBoundingBox(
api.GoogleCloudVideointelligenceV1NormalizedBoundingBox o) {
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox < 3) {
unittest.expect(o.bottom, unittest.equals(42.0));
unittest.expect(o.left, unittest.equals(42.0));
unittest.expect(o.right, unittest.equals(42.0));
unittest.expect(o.top, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox--;
}
core.List<api.GoogleCloudVideointelligenceV1NormalizedVertex>
buildUnnamed258() {
var o = <api.GoogleCloudVideointelligenceV1NormalizedVertex>[];
o.add(buildGoogleCloudVideointelligenceV1NormalizedVertex());
o.add(buildGoogleCloudVideointelligenceV1NormalizedVertex());
return o;
}
void checkUnnamed258(
core.List<api.GoogleCloudVideointelligenceV1NormalizedVertex> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1NormalizedVertex(o[0]);
checkGoogleCloudVideointelligenceV1NormalizedVertex(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly = 0;
api.GoogleCloudVideointelligenceV1NormalizedBoundingPoly
buildGoogleCloudVideointelligenceV1NormalizedBoundingPoly() {
var o = api.GoogleCloudVideointelligenceV1NormalizedBoundingPoly();
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly < 3) {
o.vertices = buildUnnamed258();
}
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly--;
return o;
}
void checkGoogleCloudVideointelligenceV1NormalizedBoundingPoly(
api.GoogleCloudVideointelligenceV1NormalizedBoundingPoly o) {
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly < 3) {
checkUnnamed258(o.vertices);
}
buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly--;
}
core.int buildCounterGoogleCloudVideointelligenceV1NormalizedVertex = 0;
api.GoogleCloudVideointelligenceV1NormalizedVertex
buildGoogleCloudVideointelligenceV1NormalizedVertex() {
var o = api.GoogleCloudVideointelligenceV1NormalizedVertex();
buildCounterGoogleCloudVideointelligenceV1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1NormalizedVertex < 3) {
o.x = 42.0;
o.y = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1NormalizedVertex--;
return o;
}
void checkGoogleCloudVideointelligenceV1NormalizedVertex(
api.GoogleCloudVideointelligenceV1NormalizedVertex o) {
buildCounterGoogleCloudVideointelligenceV1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1NormalizedVertex < 3) {
unittest.expect(o.x, unittest.equals(42.0));
unittest.expect(o.y, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1NormalizedVertex--;
}
core.List<api.GoogleCloudVideointelligenceV1ObjectTrackingFrame>
buildUnnamed259() {
var o = <api.GoogleCloudVideointelligenceV1ObjectTrackingFrame>[];
o.add(buildGoogleCloudVideointelligenceV1ObjectTrackingFrame());
o.add(buildGoogleCloudVideointelligenceV1ObjectTrackingFrame());
return o;
}
void checkUnnamed259(
core.List<api.GoogleCloudVideointelligenceV1ObjectTrackingFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1ObjectTrackingFrame(o[0]);
checkGoogleCloudVideointelligenceV1ObjectTrackingFrame(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation = 0;
api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation
buildGoogleCloudVideointelligenceV1ObjectTrackingAnnotation() {
var o = api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation();
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation < 3) {
o.confidence = 42.0;
o.entity = buildGoogleCloudVideointelligenceV1Entity();
o.frames = buildUnnamed259();
o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
o.trackId = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1ObjectTrackingAnnotation(
api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1Entity(o.entity);
checkUnnamed259(o.frames);
checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
unittest.expect(o.trackId, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1ObjectTrackingConfig = 0;
api.GoogleCloudVideointelligenceV1ObjectTrackingConfig
buildGoogleCloudVideointelligenceV1ObjectTrackingConfig() {
var o = api.GoogleCloudVideointelligenceV1ObjectTrackingConfig();
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingConfig++;
if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingConfig < 3) {
o.model = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingConfig--;
return o;
}
void checkGoogleCloudVideointelligenceV1ObjectTrackingConfig(
api.GoogleCloudVideointelligenceV1ObjectTrackingConfig o) {
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingConfig++;
if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingConfig < 3) {
unittest.expect(o.model, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingConfig--;
}
core.int buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame = 0;
api.GoogleCloudVideointelligenceV1ObjectTrackingFrame
buildGoogleCloudVideointelligenceV1ObjectTrackingFrame() {
var o = api.GoogleCloudVideointelligenceV1ObjectTrackingFrame();
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame < 3) {
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1ObjectTrackingFrame(
api.GoogleCloudVideointelligenceV1ObjectTrackingFrame o) {
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame < 3) {
checkGoogleCloudVideointelligenceV1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame--;
}
core.int buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig =
0;
api.GoogleCloudVideointelligenceV1ShotChangeDetectionConfig
buildGoogleCloudVideointelligenceV1ShotChangeDetectionConfig() {
var o = api.GoogleCloudVideointelligenceV1ShotChangeDetectionConfig();
buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig < 3) {
o.model = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig--;
return o;
}
void checkGoogleCloudVideointelligenceV1ShotChangeDetectionConfig(
api.GoogleCloudVideointelligenceV1ShotChangeDetectionConfig o) {
buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig < 3) {
unittest.expect(o.model, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig--;
}
core.List<core.String> buildUnnamed260() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed260(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 buildCounterGoogleCloudVideointelligenceV1SpeechContext = 0;
api.GoogleCloudVideointelligenceV1SpeechContext
buildGoogleCloudVideointelligenceV1SpeechContext() {
var o = api.GoogleCloudVideointelligenceV1SpeechContext();
buildCounterGoogleCloudVideointelligenceV1SpeechContext++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechContext < 3) {
o.phrases = buildUnnamed260();
}
buildCounterGoogleCloudVideointelligenceV1SpeechContext--;
return o;
}
void checkGoogleCloudVideointelligenceV1SpeechContext(
api.GoogleCloudVideointelligenceV1SpeechContext o) {
buildCounterGoogleCloudVideointelligenceV1SpeechContext++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechContext < 3) {
checkUnnamed260(o.phrases);
}
buildCounterGoogleCloudVideointelligenceV1SpeechContext--;
}
core.List<api.GoogleCloudVideointelligenceV1WordInfo> buildUnnamed261() {
var o = <api.GoogleCloudVideointelligenceV1WordInfo>[];
o.add(buildGoogleCloudVideointelligenceV1WordInfo());
o.add(buildGoogleCloudVideointelligenceV1WordInfo());
return o;
}
void checkUnnamed261(core.List<api.GoogleCloudVideointelligenceV1WordInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1WordInfo(o[0]);
checkGoogleCloudVideointelligenceV1WordInfo(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative = 0;
api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
buildGoogleCloudVideointelligenceV1SpeechRecognitionAlternative() {
var o = api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative();
buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative <
3) {
o.confidence = 42.0;
o.transcript = 'foo';
o.words = buildUnnamed261();
}
buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative--;
return o;
}
void checkGoogleCloudVideointelligenceV1SpeechRecognitionAlternative(
api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative o) {
buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.transcript, unittest.equals('foo'));
checkUnnamed261(o.words);
}
buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative--;
}
core.List<api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative>
buildUnnamed262() {
var o = <api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative>[];
o.add(buildGoogleCloudVideointelligenceV1SpeechRecognitionAlternative());
o.add(buildGoogleCloudVideointelligenceV1SpeechRecognitionAlternative());
return o;
}
void checkUnnamed262(
core.List<api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1SpeechRecognitionAlternative(o[0]);
checkGoogleCloudVideointelligenceV1SpeechRecognitionAlternative(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1SpeechTranscription = 0;
api.GoogleCloudVideointelligenceV1SpeechTranscription
buildGoogleCloudVideointelligenceV1SpeechTranscription() {
var o = api.GoogleCloudVideointelligenceV1SpeechTranscription();
buildCounterGoogleCloudVideointelligenceV1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscription < 3) {
o.alternatives = buildUnnamed262();
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1SpeechTranscription--;
return o;
}
void checkGoogleCloudVideointelligenceV1SpeechTranscription(
api.GoogleCloudVideointelligenceV1SpeechTranscription o) {
buildCounterGoogleCloudVideointelligenceV1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscription < 3) {
checkUnnamed262(o.alternatives);
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1SpeechTranscription--;
}
core.List<core.int> buildUnnamed263() {
var o = <core.int>[];
o.add(42);
o.add(42);
return o;
}
void checkUnnamed263(core.List<core.int> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals(42));
unittest.expect(o[1], unittest.equals(42));
}
core.List<api.GoogleCloudVideointelligenceV1SpeechContext> buildUnnamed264() {
var o = <api.GoogleCloudVideointelligenceV1SpeechContext>[];
o.add(buildGoogleCloudVideointelligenceV1SpeechContext());
o.add(buildGoogleCloudVideointelligenceV1SpeechContext());
return o;
}
void checkUnnamed264(
core.List<api.GoogleCloudVideointelligenceV1SpeechContext> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1SpeechContext(o[0]);
checkGoogleCloudVideointelligenceV1SpeechContext(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig =
0;
api.GoogleCloudVideointelligenceV1SpeechTranscriptionConfig
buildGoogleCloudVideointelligenceV1SpeechTranscriptionConfig() {
var o = api.GoogleCloudVideointelligenceV1SpeechTranscriptionConfig();
buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig < 3) {
o.audioTracks = buildUnnamed263();
o.diarizationSpeakerCount = 42;
o.enableAutomaticPunctuation = true;
o.enableSpeakerDiarization = true;
o.enableWordConfidence = true;
o.filterProfanity = true;
o.languageCode = 'foo';
o.maxAlternatives = 42;
o.speechContexts = buildUnnamed264();
}
buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig--;
return o;
}
void checkGoogleCloudVideointelligenceV1SpeechTranscriptionConfig(
api.GoogleCloudVideointelligenceV1SpeechTranscriptionConfig o) {
buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig < 3) {
checkUnnamed263(o.audioTracks);
unittest.expect(o.diarizationSpeakerCount, unittest.equals(42));
unittest.expect(o.enableAutomaticPunctuation, unittest.isTrue);
unittest.expect(o.enableSpeakerDiarization, unittest.isTrue);
unittest.expect(o.enableWordConfidence, unittest.isTrue);
unittest.expect(o.filterProfanity, unittest.isTrue);
unittest.expect(o.languageCode, unittest.equals('foo'));
unittest.expect(o.maxAlternatives, unittest.equals(42));
checkUnnamed264(o.speechContexts);
}
buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig--;
}
core.List<api.GoogleCloudVideointelligenceV1TextSegment> buildUnnamed265() {
var o = <api.GoogleCloudVideointelligenceV1TextSegment>[];
o.add(buildGoogleCloudVideointelligenceV1TextSegment());
o.add(buildGoogleCloudVideointelligenceV1TextSegment());
return o;
}
void checkUnnamed265(
core.List<api.GoogleCloudVideointelligenceV1TextSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1TextSegment(o[0]);
checkGoogleCloudVideointelligenceV1TextSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1TextAnnotation = 0;
api.GoogleCloudVideointelligenceV1TextAnnotation
buildGoogleCloudVideointelligenceV1TextAnnotation() {
var o = api.GoogleCloudVideointelligenceV1TextAnnotation();
buildCounterGoogleCloudVideointelligenceV1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1TextAnnotation < 3) {
o.segments = buildUnnamed265();
o.text = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1TextAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1TextAnnotation(
api.GoogleCloudVideointelligenceV1TextAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1TextAnnotation < 3) {
checkUnnamed265(o.segments);
unittest.expect(o.text, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1TextAnnotation--;
}
core.List<core.String> buildUnnamed266() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed266(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 buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig = 0;
api.GoogleCloudVideointelligenceV1TextDetectionConfig
buildGoogleCloudVideointelligenceV1TextDetectionConfig() {
var o = api.GoogleCloudVideointelligenceV1TextDetectionConfig();
buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig < 3) {
o.languageHints = buildUnnamed266();
o.model = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig--;
return o;
}
void checkGoogleCloudVideointelligenceV1TextDetectionConfig(
api.GoogleCloudVideointelligenceV1TextDetectionConfig o) {
buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig++;
if (buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig < 3) {
checkUnnamed266(o.languageHints);
unittest.expect(o.model, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig--;
}
core.int buildCounterGoogleCloudVideointelligenceV1TextFrame = 0;
api.GoogleCloudVideointelligenceV1TextFrame
buildGoogleCloudVideointelligenceV1TextFrame() {
var o = api.GoogleCloudVideointelligenceV1TextFrame();
buildCounterGoogleCloudVideointelligenceV1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1TextFrame < 3) {
o.rotatedBoundingBox =
buildGoogleCloudVideointelligenceV1NormalizedBoundingPoly();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1TextFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1TextFrame(
api.GoogleCloudVideointelligenceV1TextFrame o) {
buildCounterGoogleCloudVideointelligenceV1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1TextFrame < 3) {
checkGoogleCloudVideointelligenceV1NormalizedBoundingPoly(
o.rotatedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1TextFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1TextFrame> buildUnnamed267() {
var o = <api.GoogleCloudVideointelligenceV1TextFrame>[];
o.add(buildGoogleCloudVideointelligenceV1TextFrame());
o.add(buildGoogleCloudVideointelligenceV1TextFrame());
return o;
}
void checkUnnamed267(core.List<api.GoogleCloudVideointelligenceV1TextFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1TextFrame(o[0]);
checkGoogleCloudVideointelligenceV1TextFrame(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1TextSegment = 0;
api.GoogleCloudVideointelligenceV1TextSegment
buildGoogleCloudVideointelligenceV1TextSegment() {
var o = api.GoogleCloudVideointelligenceV1TextSegment();
buildCounterGoogleCloudVideointelligenceV1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1TextSegment < 3) {
o.confidence = 42.0;
o.frames = buildUnnamed267();
o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1TextSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1TextSegment(
api.GoogleCloudVideointelligenceV1TextSegment o) {
buildCounterGoogleCloudVideointelligenceV1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1TextSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkUnnamed267(o.frames);
checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1TextSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute>
buildUnnamed268() {
var o = <api.GoogleCloudVideointelligenceV1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute());
return o;
}
void checkUnnamed268(
core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1DetectedLandmark>
buildUnnamed269() {
var o = <api.GoogleCloudVideointelligenceV1DetectedLandmark>[];
o.add(buildGoogleCloudVideointelligenceV1DetectedLandmark());
o.add(buildGoogleCloudVideointelligenceV1DetectedLandmark());
return o;
}
void checkUnnamed269(
core.List<api.GoogleCloudVideointelligenceV1DetectedLandmark> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1DetectedLandmark(o[0]);
checkGoogleCloudVideointelligenceV1DetectedLandmark(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1TimestampedObject = 0;
api.GoogleCloudVideointelligenceV1TimestampedObject
buildGoogleCloudVideointelligenceV1TimestampedObject() {
var o = api.GoogleCloudVideointelligenceV1TimestampedObject();
buildCounterGoogleCloudVideointelligenceV1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1TimestampedObject < 3) {
o.attributes = buildUnnamed268();
o.landmarks = buildUnnamed269();
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1TimestampedObject--;
return o;
}
void checkGoogleCloudVideointelligenceV1TimestampedObject(
api.GoogleCloudVideointelligenceV1TimestampedObject o) {
buildCounterGoogleCloudVideointelligenceV1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1TimestampedObject < 3) {
checkUnnamed268(o.attributes);
checkUnnamed269(o.landmarks);
checkGoogleCloudVideointelligenceV1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1TimestampedObject--;
}
core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute>
buildUnnamed270() {
var o = <api.GoogleCloudVideointelligenceV1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute());
return o;
}
void checkUnnamed270(
core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1TimestampedObject>
buildUnnamed271() {
var o = <api.GoogleCloudVideointelligenceV1TimestampedObject>[];
o.add(buildGoogleCloudVideointelligenceV1TimestampedObject());
o.add(buildGoogleCloudVideointelligenceV1TimestampedObject());
return o;
}
void checkUnnamed271(
core.List<api.GoogleCloudVideointelligenceV1TimestampedObject> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1TimestampedObject(o[0]);
checkGoogleCloudVideointelligenceV1TimestampedObject(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1Track = 0;
api.GoogleCloudVideointelligenceV1Track
buildGoogleCloudVideointelligenceV1Track() {
var o = api.GoogleCloudVideointelligenceV1Track();
buildCounterGoogleCloudVideointelligenceV1Track++;
if (buildCounterGoogleCloudVideointelligenceV1Track < 3) {
o.attributes = buildUnnamed270();
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
o.timestampedObjects = buildUnnamed271();
}
buildCounterGoogleCloudVideointelligenceV1Track--;
return o;
}
void checkGoogleCloudVideointelligenceV1Track(
api.GoogleCloudVideointelligenceV1Track o) {
buildCounterGoogleCloudVideointelligenceV1Track++;
if (buildCounterGoogleCloudVideointelligenceV1Track < 3) {
checkUnnamed270(o.attributes);
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
checkUnnamed271(o.timestampedObjects);
}
buildCounterGoogleCloudVideointelligenceV1Track--;
}
core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress = 0;
api.GoogleCloudVideointelligenceV1VideoAnnotationProgress
buildGoogleCloudVideointelligenceV1VideoAnnotationProgress() {
var o = api.GoogleCloudVideointelligenceV1VideoAnnotationProgress();
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
o.feature = 'foo';
o.inputUri = 'foo';
o.progressPercent = 42;
o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
o.startTime = 'foo';
o.updateTime = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(
api.GoogleCloudVideointelligenceV1VideoAnnotationProgress o) {
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
unittest.expect(o.feature, unittest.equals('foo'));
unittest.expect(o.inputUri, unittest.equals('foo'));
unittest.expect(o.progressPercent, unittest.equals(42));
checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.updateTime, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> buildUnnamed272() {
var o = <api.GoogleCloudVideointelligenceV1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
return o;
}
void checkUnnamed272(
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation>
buildUnnamed273() {
var o = <api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1LogoRecognitionAnnotation());
o.add(buildGoogleCloudVideointelligenceV1LogoRecognitionAnnotation());
return o;
}
void checkUnnamed273(
core.List<api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LogoRecognitionAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1LogoRecognitionAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation>
buildUnnamed274() {
var o = <api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1ObjectTrackingAnnotation());
o.add(buildGoogleCloudVideointelligenceV1ObjectTrackingAnnotation());
return o;
}
void checkUnnamed274(
core.List<api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1ObjectTrackingAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1ObjectTrackingAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> buildUnnamed275() {
var o = <api.GoogleCloudVideointelligenceV1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
return o;
}
void checkUnnamed275(
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> buildUnnamed276() {
var o = <api.GoogleCloudVideointelligenceV1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
return o;
}
void checkUnnamed276(
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1VideoSegment> buildUnnamed277() {
var o = <api.GoogleCloudVideointelligenceV1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
return o;
}
void checkUnnamed277(
core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> buildUnnamed278() {
var o = <api.GoogleCloudVideointelligenceV1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
return o;
}
void checkUnnamed278(
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> buildUnnamed279() {
var o = <api.GoogleCloudVideointelligenceV1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
return o;
}
void checkUnnamed279(
core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1SpeechTranscription>
buildUnnamed280() {
var o = <api.GoogleCloudVideointelligenceV1SpeechTranscription>[];
o.add(buildGoogleCloudVideointelligenceV1SpeechTranscription());
o.add(buildGoogleCloudVideointelligenceV1SpeechTranscription());
return o;
}
void checkUnnamed280(
core.List<api.GoogleCloudVideointelligenceV1SpeechTranscription> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1SpeechTranscription(o[0]);
checkGoogleCloudVideointelligenceV1SpeechTranscription(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1TextAnnotation> buildUnnamed281() {
var o = <api.GoogleCloudVideointelligenceV1TextAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1TextAnnotation());
o.add(buildGoogleCloudVideointelligenceV1TextAnnotation());
return o;
}
void checkUnnamed281(
core.List<api.GoogleCloudVideointelligenceV1TextAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1TextAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1TextAnnotation(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults = 0;
api.GoogleCloudVideointelligenceV1VideoAnnotationResults
buildGoogleCloudVideointelligenceV1VideoAnnotationResults() {
var o = api.GoogleCloudVideointelligenceV1VideoAnnotationResults();
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
o.error = buildGoogleRpcStatus();
o.explicitAnnotation =
buildGoogleCloudVideointelligenceV1ExplicitContentAnnotation();
o.frameLabelAnnotations = buildUnnamed272();
o.inputUri = 'foo';
o.logoRecognitionAnnotations = buildUnnamed273();
o.objectAnnotations = buildUnnamed274();
o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
o.segmentLabelAnnotations = buildUnnamed275();
o.segmentPresenceLabelAnnotations = buildUnnamed276();
o.shotAnnotations = buildUnnamed277();
o.shotLabelAnnotations = buildUnnamed278();
o.shotPresenceLabelAnnotations = buildUnnamed279();
o.speechTranscriptions = buildUnnamed280();
o.textAnnotations = buildUnnamed281();
}
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
return o;
}
void checkGoogleCloudVideointelligenceV1VideoAnnotationResults(
api.GoogleCloudVideointelligenceV1VideoAnnotationResults o) {
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
checkGoogleRpcStatus(o.error);
checkGoogleCloudVideointelligenceV1ExplicitContentAnnotation(
o.explicitAnnotation);
checkUnnamed272(o.frameLabelAnnotations);
unittest.expect(o.inputUri, unittest.equals('foo'));
checkUnnamed273(o.logoRecognitionAnnotations);
checkUnnamed274(o.objectAnnotations);
checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
checkUnnamed275(o.segmentLabelAnnotations);
checkUnnamed276(o.segmentPresenceLabelAnnotations);
checkUnnamed277(o.shotAnnotations);
checkUnnamed278(o.shotLabelAnnotations);
checkUnnamed279(o.shotPresenceLabelAnnotations);
checkUnnamed280(o.speechTranscriptions);
checkUnnamed281(o.textAnnotations);
}
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
}
core.List<api.GoogleCloudVideointelligenceV1VideoSegment> buildUnnamed282() {
var o = <api.GoogleCloudVideointelligenceV1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
return o;
}
void checkUnnamed282(
core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1VideoSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1VideoContext = 0;
api.GoogleCloudVideointelligenceV1VideoContext
buildGoogleCloudVideointelligenceV1VideoContext() {
var o = api.GoogleCloudVideointelligenceV1VideoContext();
buildCounterGoogleCloudVideointelligenceV1VideoContext++;
if (buildCounterGoogleCloudVideointelligenceV1VideoContext < 3) {
o.explicitContentDetectionConfig =
buildGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig();
o.labelDetectionConfig =
buildGoogleCloudVideointelligenceV1LabelDetectionConfig();
o.objectTrackingConfig =
buildGoogleCloudVideointelligenceV1ObjectTrackingConfig();
o.segments = buildUnnamed282();
o.shotChangeDetectionConfig =
buildGoogleCloudVideointelligenceV1ShotChangeDetectionConfig();
o.speechTranscriptionConfig =
buildGoogleCloudVideointelligenceV1SpeechTranscriptionConfig();
o.textDetectionConfig =
buildGoogleCloudVideointelligenceV1TextDetectionConfig();
}
buildCounterGoogleCloudVideointelligenceV1VideoContext--;
return o;
}
void checkGoogleCloudVideointelligenceV1VideoContext(
api.GoogleCloudVideointelligenceV1VideoContext o) {
buildCounterGoogleCloudVideointelligenceV1VideoContext++;
if (buildCounterGoogleCloudVideointelligenceV1VideoContext < 3) {
checkGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig(
o.explicitContentDetectionConfig);
checkGoogleCloudVideointelligenceV1LabelDetectionConfig(
o.labelDetectionConfig);
checkGoogleCloudVideointelligenceV1ObjectTrackingConfig(
o.objectTrackingConfig);
checkUnnamed282(o.segments);
checkGoogleCloudVideointelligenceV1ShotChangeDetectionConfig(
o.shotChangeDetectionConfig);
checkGoogleCloudVideointelligenceV1SpeechTranscriptionConfig(
o.speechTranscriptionConfig);
checkGoogleCloudVideointelligenceV1TextDetectionConfig(
o.textDetectionConfig);
}
buildCounterGoogleCloudVideointelligenceV1VideoContext--;
}
core.int buildCounterGoogleCloudVideointelligenceV1VideoSegment = 0;
api.GoogleCloudVideointelligenceV1VideoSegment
buildGoogleCloudVideointelligenceV1VideoSegment() {
var o = api.GoogleCloudVideointelligenceV1VideoSegment();
buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
o.endTimeOffset = 'foo';
o.startTimeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1VideoSegment(
api.GoogleCloudVideointelligenceV1VideoSegment o) {
buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
unittest.expect(o.endTimeOffset, unittest.equals('foo'));
unittest.expect(o.startTimeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
}
core.int buildCounterGoogleCloudVideointelligenceV1WordInfo = 0;
api.GoogleCloudVideointelligenceV1WordInfo
buildGoogleCloudVideointelligenceV1WordInfo() {
var o = api.GoogleCloudVideointelligenceV1WordInfo();
buildCounterGoogleCloudVideointelligenceV1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1WordInfo < 3) {
o.confidence = 42.0;
o.endTime = 'foo';
o.speakerTag = 42;
o.startTime = 'foo';
o.word = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1WordInfo--;
return o;
}
void checkGoogleCloudVideointelligenceV1WordInfo(
api.GoogleCloudVideointelligenceV1WordInfo o) {
buildCounterGoogleCloudVideointelligenceV1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1WordInfo < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.speakerTag, unittest.equals(42));
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.word, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1WordInfo--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>
buildUnnamed283() {
var o = <api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>[];
o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress());
o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress());
return o;
}
void checkUnnamed283(
core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(o[0]);
checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress =
0;
api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
buildGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress() {
var o = api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress();
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress <
3) {
o.annotationProgress = buildUnnamed283();
}
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress(
api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress o) {
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress <
3) {
checkUnnamed283(o.annotationProgress);
}
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>
buildUnnamed284() {
var o = <api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>[];
o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults());
o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults());
return o;
}
void checkUnnamed284(
core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(o[0]);
checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse =
0;
api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse
buildGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse() {
var o = api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse();
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse <
3) {
o.annotationResults = buildUnnamed284();
}
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse(
api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse o) {
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse <
3) {
checkUnnamed284(o.annotationResults);
}
buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2DetectedAttribute = 0;
api.GoogleCloudVideointelligenceV1beta2DetectedAttribute
buildGoogleCloudVideointelligenceV1beta2DetectedAttribute() {
var o = api.GoogleCloudVideointelligenceV1beta2DetectedAttribute();
buildCounterGoogleCloudVideointelligenceV1beta2DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1beta2DetectedAttribute < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.value = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2DetectedAttribute--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(
api.GoogleCloudVideointelligenceV1beta2DetectedAttribute o) {
buildCounterGoogleCloudVideointelligenceV1beta2DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1beta2DetectedAttribute < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.value, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2DetectedAttribute--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2DetectedLandmark = 0;
api.GoogleCloudVideointelligenceV1beta2DetectedLandmark
buildGoogleCloudVideointelligenceV1beta2DetectedLandmark() {
var o = api.GoogleCloudVideointelligenceV1beta2DetectedLandmark();
buildCounterGoogleCloudVideointelligenceV1beta2DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1beta2DetectedLandmark < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.point = buildGoogleCloudVideointelligenceV1beta2NormalizedVertex();
}
buildCounterGoogleCloudVideointelligenceV1beta2DetectedLandmark--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2DetectedLandmark(
api.GoogleCloudVideointelligenceV1beta2DetectedLandmark o) {
buildCounterGoogleCloudVideointelligenceV1beta2DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1beta2DetectedLandmark < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
checkGoogleCloudVideointelligenceV1beta2NormalizedVertex(o.point);
}
buildCounterGoogleCloudVideointelligenceV1beta2DetectedLandmark--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2Entity = 0;
api.GoogleCloudVideointelligenceV1beta2Entity
buildGoogleCloudVideointelligenceV1beta2Entity() {
var o = api.GoogleCloudVideointelligenceV1beta2Entity();
buildCounterGoogleCloudVideointelligenceV1beta2Entity++;
if (buildCounterGoogleCloudVideointelligenceV1beta2Entity < 3) {
o.description = 'foo';
o.entityId = 'foo';
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2Entity--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2Entity(
api.GoogleCloudVideointelligenceV1beta2Entity o) {
buildCounterGoogleCloudVideointelligenceV1beta2Entity++;
if (buildCounterGoogleCloudVideointelligenceV1beta2Entity < 3) {
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.entityId, unittest.equals('foo'));
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2Entity--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame>
buildUnnamed285() {
var o = <api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame>[];
o.add(buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame());
o.add(buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame());
return o;
}
void checkUnnamed285(
core.List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(o[0]);
checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation =
0;
api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation
buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation() {
var o = api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation();
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation <
3) {
o.frames = buildUnnamed285();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(
api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation <
3) {
checkUnnamed285(o.frames);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame =
0;
api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame
buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame() {
var o = api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame();
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame < 3) {
o.pornographyLikelihood = 'foo';
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(
api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame o) {
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame < 3) {
unittest.expect(o.pornographyLikelihood, unittest.equals('foo'));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2Entity> buildUnnamed286() {
var o = <api.GoogleCloudVideointelligenceV1beta2Entity>[];
o.add(buildGoogleCloudVideointelligenceV1beta2Entity());
o.add(buildGoogleCloudVideointelligenceV1beta2Entity());
return o;
}
void checkUnnamed286(
core.List<api.GoogleCloudVideointelligenceV1beta2Entity> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2Entity(o[0]);
checkGoogleCloudVideointelligenceV1beta2Entity(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame> buildUnnamed287() {
var o = <api.GoogleCloudVideointelligenceV1beta2LabelFrame>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame());
o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame());
return o;
}
void checkUnnamed287(
core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[0]);
checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment>
buildUnnamed288() {
var o = <api.GoogleCloudVideointelligenceV1beta2LabelSegment>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment());
o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment());
return o;
}
void checkUnnamed288(
core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LabelSegment(o[0]);
checkGoogleCloudVideointelligenceV1beta2LabelSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation = 0;
api.GoogleCloudVideointelligenceV1beta2LabelAnnotation
buildGoogleCloudVideointelligenceV1beta2LabelAnnotation() {
var o = api.GoogleCloudVideointelligenceV1beta2LabelAnnotation();
buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) {
o.categoryEntities = buildUnnamed286();
o.entity = buildGoogleCloudVideointelligenceV1beta2Entity();
o.frames = buildUnnamed287();
o.segments = buildUnnamed288();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(
api.GoogleCloudVideointelligenceV1beta2LabelAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) {
checkUnnamed286(o.categoryEntities);
checkGoogleCloudVideointelligenceV1beta2Entity(o.entity);
checkUnnamed287(o.frames);
checkUnnamed288(o.segments);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame = 0;
api.GoogleCloudVideointelligenceV1beta2LabelFrame
buildGoogleCloudVideointelligenceV1beta2LabelFrame() {
var o = api.GoogleCloudVideointelligenceV1beta2LabelFrame();
buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame < 3) {
o.confidence = 42.0;
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2LabelFrame(
api.GoogleCloudVideointelligenceV1beta2LabelFrame o) {
buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment = 0;
api.GoogleCloudVideointelligenceV1beta2LabelSegment
buildGoogleCloudVideointelligenceV1beta2LabelSegment() {
var o = api.GoogleCloudVideointelligenceV1beta2LabelSegment();
buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment < 3) {
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2LabelSegment(
api.GoogleCloudVideointelligenceV1beta2LabelSegment o) {
buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment>
buildUnnamed289() {
var o = <api.GoogleCloudVideointelligenceV1beta2VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment());
return o;
}
void checkUnnamed289(
core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2Track> buildUnnamed290() {
var o = <api.GoogleCloudVideointelligenceV1beta2Track>[];
o.add(buildGoogleCloudVideointelligenceV1beta2Track());
o.add(buildGoogleCloudVideointelligenceV1beta2Track());
return o;
}
void checkUnnamed290(
core.List<api.GoogleCloudVideointelligenceV1beta2Track> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2Track(o[0]);
checkGoogleCloudVideointelligenceV1beta2Track(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation =
0;
api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation
buildGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation() {
var o = api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation();
buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation <
3) {
o.entity = buildGoogleCloudVideointelligenceV1beta2Entity();
o.segments = buildUnnamed289();
o.tracks = buildUnnamed290();
}
buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation(
api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation <
3) {
checkGoogleCloudVideointelligenceV1beta2Entity(o.entity);
checkUnnamed289(o.segments);
checkUnnamed290(o.tracks);
}
buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox =
0;
api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox
buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox() {
var o = api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox();
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox <
3) {
o.bottom = 42.0;
o.left = 42.0;
o.right = 42.0;
o.top = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox(
api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox o) {
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox <
3) {
unittest.expect(o.bottom, unittest.equals(42.0));
unittest.expect(o.left, unittest.equals(42.0));
unittest.expect(o.right, unittest.equals(42.0));
unittest.expect(o.top, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2NormalizedVertex>
buildUnnamed291() {
var o = <api.GoogleCloudVideointelligenceV1beta2NormalizedVertex>[];
o.add(buildGoogleCloudVideointelligenceV1beta2NormalizedVertex());
o.add(buildGoogleCloudVideointelligenceV1beta2NormalizedVertex());
return o;
}
void checkUnnamed291(
core.List<api.GoogleCloudVideointelligenceV1beta2NormalizedVertex> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2NormalizedVertex(o[0]);
checkGoogleCloudVideointelligenceV1beta2NormalizedVertex(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly =
0;
api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly
buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly() {
var o = api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly();
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly <
3) {
o.vertices = buildUnnamed291();
}
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly(
api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly o) {
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly <
3) {
checkUnnamed291(o.vertices);
}
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex = 0;
api.GoogleCloudVideointelligenceV1beta2NormalizedVertex
buildGoogleCloudVideointelligenceV1beta2NormalizedVertex() {
var o = api.GoogleCloudVideointelligenceV1beta2NormalizedVertex();
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex < 3) {
o.x = 42.0;
o.y = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2NormalizedVertex(
api.GoogleCloudVideointelligenceV1beta2NormalizedVertex o) {
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex < 3) {
unittest.expect(o.x, unittest.equals(42.0));
unittest.expect(o.y, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame>
buildUnnamed292() {
var o = <api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame>[];
o.add(buildGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame());
o.add(buildGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame());
return o;
}
void checkUnnamed292(
core.List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame(o[0]);
checkGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation = 0;
api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
buildGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation() {
var o = api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation();
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation <
3) {
o.confidence = 42.0;
o.entity = buildGoogleCloudVideointelligenceV1beta2Entity();
o.frames = buildUnnamed292();
o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
o.trackId = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation(
api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1beta2Entity(o.entity);
checkUnnamed292(o.frames);
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment);
unittest.expect(o.trackId, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame = 0;
api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame
buildGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame() {
var o = api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame();
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame < 3) {
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame(
api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame o) {
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame < 3) {
checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2WordInfo> buildUnnamed293() {
var o = <api.GoogleCloudVideointelligenceV1beta2WordInfo>[];
o.add(buildGoogleCloudVideointelligenceV1beta2WordInfo());
o.add(buildGoogleCloudVideointelligenceV1beta2WordInfo());
return o;
}
void checkUnnamed293(
core.List<api.GoogleCloudVideointelligenceV1beta2WordInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2WordInfo(o[0]);
checkGoogleCloudVideointelligenceV1beta2WordInfo(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative =
0;
api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
buildGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative() {
var o = api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative();
buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative <
3) {
o.confidence = 42.0;
o.transcript = 'foo';
o.words = buildUnnamed293();
}
buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative(
api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative o) {
buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.transcript, unittest.equals('foo'));
checkUnnamed293(o.words);
}
buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative>
buildUnnamed294() {
var o =
<api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative>[];
o.add(buildGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative());
o.add(buildGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative());
return o;
}
void checkUnnamed294(
core.List<
api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative(o[0]);
checkGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription = 0;
api.GoogleCloudVideointelligenceV1beta2SpeechTranscription
buildGoogleCloudVideointelligenceV1beta2SpeechTranscription() {
var o = api.GoogleCloudVideointelligenceV1beta2SpeechTranscription();
buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription < 3) {
o.alternatives = buildUnnamed294();
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2SpeechTranscription(
api.GoogleCloudVideointelligenceV1beta2SpeechTranscription o) {
buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription < 3) {
checkUnnamed294(o.alternatives);
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2TextSegment>
buildUnnamed295() {
var o = <api.GoogleCloudVideointelligenceV1beta2TextSegment>[];
o.add(buildGoogleCloudVideointelligenceV1beta2TextSegment());
o.add(buildGoogleCloudVideointelligenceV1beta2TextSegment());
return o;
}
void checkUnnamed295(
core.List<api.GoogleCloudVideointelligenceV1beta2TextSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2TextSegment(o[0]);
checkGoogleCloudVideointelligenceV1beta2TextSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation = 0;
api.GoogleCloudVideointelligenceV1beta2TextAnnotation
buildGoogleCloudVideointelligenceV1beta2TextAnnotation() {
var o = api.GoogleCloudVideointelligenceV1beta2TextAnnotation();
buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation < 3) {
o.segments = buildUnnamed295();
o.text = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2TextAnnotation(
api.GoogleCloudVideointelligenceV1beta2TextAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation < 3) {
checkUnnamed295(o.segments);
unittest.expect(o.text, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2TextFrame = 0;
api.GoogleCloudVideointelligenceV1beta2TextFrame
buildGoogleCloudVideointelligenceV1beta2TextFrame() {
var o = api.GoogleCloudVideointelligenceV1beta2TextFrame();
buildCounterGoogleCloudVideointelligenceV1beta2TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TextFrame < 3) {
o.rotatedBoundingBox =
buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2TextFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2TextFrame(
api.GoogleCloudVideointelligenceV1beta2TextFrame o) {
buildCounterGoogleCloudVideointelligenceV1beta2TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TextFrame < 3) {
checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly(
o.rotatedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2TextFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2TextFrame> buildUnnamed296() {
var o = <api.GoogleCloudVideointelligenceV1beta2TextFrame>[];
o.add(buildGoogleCloudVideointelligenceV1beta2TextFrame());
o.add(buildGoogleCloudVideointelligenceV1beta2TextFrame());
return o;
}
void checkUnnamed296(
core.List<api.GoogleCloudVideointelligenceV1beta2TextFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2TextFrame(o[0]);
checkGoogleCloudVideointelligenceV1beta2TextFrame(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2TextSegment = 0;
api.GoogleCloudVideointelligenceV1beta2TextSegment
buildGoogleCloudVideointelligenceV1beta2TextSegment() {
var o = api.GoogleCloudVideointelligenceV1beta2TextSegment();
buildCounterGoogleCloudVideointelligenceV1beta2TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TextSegment < 3) {
o.confidence = 42.0;
o.frames = buildUnnamed296();
o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1beta2TextSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2TextSegment(
api.GoogleCloudVideointelligenceV1beta2TextSegment o) {
buildCounterGoogleCloudVideointelligenceV1beta2TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TextSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkUnnamed296(o.frames);
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1beta2TextSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute>
buildUnnamed297() {
var o = <api.GoogleCloudVideointelligenceV1beta2DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1beta2DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1beta2DetectedAttribute());
return o;
}
void checkUnnamed297(
core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2DetectedLandmark>
buildUnnamed298() {
var o = <api.GoogleCloudVideointelligenceV1beta2DetectedLandmark>[];
o.add(buildGoogleCloudVideointelligenceV1beta2DetectedLandmark());
o.add(buildGoogleCloudVideointelligenceV1beta2DetectedLandmark());
return o;
}
void checkUnnamed298(
core.List<api.GoogleCloudVideointelligenceV1beta2DetectedLandmark> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2DetectedLandmark(o[0]);
checkGoogleCloudVideointelligenceV1beta2DetectedLandmark(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject = 0;
api.GoogleCloudVideointelligenceV1beta2TimestampedObject
buildGoogleCloudVideointelligenceV1beta2TimestampedObject() {
var o = api.GoogleCloudVideointelligenceV1beta2TimestampedObject();
buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject < 3) {
o.attributes = buildUnnamed297();
o.landmarks = buildUnnamed298();
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2TimestampedObject(
api.GoogleCloudVideointelligenceV1beta2TimestampedObject o) {
buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject < 3) {
checkUnnamed297(o.attributes);
checkUnnamed298(o.landmarks);
checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute>
buildUnnamed299() {
var o = <api.GoogleCloudVideointelligenceV1beta2DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1beta2DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1beta2DetectedAttribute());
return o;
}
void checkUnnamed299(
core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2TimestampedObject>
buildUnnamed300() {
var o = <api.GoogleCloudVideointelligenceV1beta2TimestampedObject>[];
o.add(buildGoogleCloudVideointelligenceV1beta2TimestampedObject());
o.add(buildGoogleCloudVideointelligenceV1beta2TimestampedObject());
return o;
}
void checkUnnamed300(
core.List<api.GoogleCloudVideointelligenceV1beta2TimestampedObject> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2TimestampedObject(o[0]);
checkGoogleCloudVideointelligenceV1beta2TimestampedObject(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2Track = 0;
api.GoogleCloudVideointelligenceV1beta2Track
buildGoogleCloudVideointelligenceV1beta2Track() {
var o = api.GoogleCloudVideointelligenceV1beta2Track();
buildCounterGoogleCloudVideointelligenceV1beta2Track++;
if (buildCounterGoogleCloudVideointelligenceV1beta2Track < 3) {
o.attributes = buildUnnamed299();
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
o.timestampedObjects = buildUnnamed300();
}
buildCounterGoogleCloudVideointelligenceV1beta2Track--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2Track(
api.GoogleCloudVideointelligenceV1beta2Track o) {
buildCounterGoogleCloudVideointelligenceV1beta2Track++;
if (buildCounterGoogleCloudVideointelligenceV1beta2Track < 3) {
checkUnnamed299(o.attributes);
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment);
checkUnnamed300(o.timestampedObjects);
}
buildCounterGoogleCloudVideointelligenceV1beta2Track--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress = 0;
api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress() {
var o = api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress();
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress <
3) {
o.feature = 'foo';
o.inputUri = 'foo';
o.progressPercent = 42;
o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
o.startTime = 'foo';
o.updateTime = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(
api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress o) {
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress <
3) {
unittest.expect(o.feature, unittest.equals('foo'));
unittest.expect(o.inputUri, unittest.equals('foo'));
unittest.expect(o.progressPercent, unittest.equals(42));
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment);
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.updateTime, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>
buildUnnamed301() {
var o = <api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
return o;
}
void checkUnnamed301(
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation>
buildUnnamed302() {
var o = <api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation());
return o;
}
void checkUnnamed302(
core.List<api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation>
buildUnnamed303() {
var o = <api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation());
return o;
}
void checkUnnamed303(
core.List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>
buildUnnamed304() {
var o = <api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
return o;
}
void checkUnnamed304(
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>
buildUnnamed305() {
var o = <api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
return o;
}
void checkUnnamed305(
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment>
buildUnnamed306() {
var o = <api.GoogleCloudVideointelligenceV1beta2VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment());
return o;
}
void checkUnnamed306(
core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>
buildUnnamed307() {
var o = <api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
return o;
}
void checkUnnamed307(
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>
buildUnnamed308() {
var o = <api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation());
return o;
}
void checkUnnamed308(
core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2SpeechTranscription>
buildUnnamed309() {
var o = <api.GoogleCloudVideointelligenceV1beta2SpeechTranscription>[];
o.add(buildGoogleCloudVideointelligenceV1beta2SpeechTranscription());
o.add(buildGoogleCloudVideointelligenceV1beta2SpeechTranscription());
return o;
}
void checkUnnamed309(
core.List<api.GoogleCloudVideointelligenceV1beta2SpeechTranscription> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2SpeechTranscription(o[0]);
checkGoogleCloudVideointelligenceV1beta2SpeechTranscription(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1beta2TextAnnotation>
buildUnnamed310() {
var o = <api.GoogleCloudVideointelligenceV1beta2TextAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1beta2TextAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta2TextAnnotation());
return o;
}
void checkUnnamed310(
core.List<api.GoogleCloudVideointelligenceV1beta2TextAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta2TextAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta2TextAnnotation(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults =
0;
api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults
buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults() {
var o = api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults();
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults <
3) {
o.error = buildGoogleRpcStatus();
o.explicitAnnotation =
buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation();
o.frameLabelAnnotations = buildUnnamed301();
o.inputUri = 'foo';
o.logoRecognitionAnnotations = buildUnnamed302();
o.objectAnnotations = buildUnnamed303();
o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
o.segmentLabelAnnotations = buildUnnamed304();
o.segmentPresenceLabelAnnotations = buildUnnamed305();
o.shotAnnotations = buildUnnamed306();
o.shotLabelAnnotations = buildUnnamed307();
o.shotPresenceLabelAnnotations = buildUnnamed308();
o.speechTranscriptions = buildUnnamed309();
o.textAnnotations = buildUnnamed310();
}
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(
api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults o) {
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults <
3) {
checkGoogleRpcStatus(o.error);
checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(
o.explicitAnnotation);
checkUnnamed301(o.frameLabelAnnotations);
unittest.expect(o.inputUri, unittest.equals('foo'));
checkUnnamed302(o.logoRecognitionAnnotations);
checkUnnamed303(o.objectAnnotations);
checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment);
checkUnnamed304(o.segmentLabelAnnotations);
checkUnnamed305(o.segmentPresenceLabelAnnotations);
checkUnnamed306(o.shotAnnotations);
checkUnnamed307(o.shotLabelAnnotations);
checkUnnamed308(o.shotPresenceLabelAnnotations);
checkUnnamed309(o.speechTranscriptions);
checkUnnamed310(o.textAnnotations);
}
buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment = 0;
api.GoogleCloudVideointelligenceV1beta2VideoSegment
buildGoogleCloudVideointelligenceV1beta2VideoSegment() {
var o = api.GoogleCloudVideointelligenceV1beta2VideoSegment();
buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment < 3) {
o.endTimeOffset = 'foo';
o.startTimeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2VideoSegment(
api.GoogleCloudVideointelligenceV1beta2VideoSegment o) {
buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment < 3) {
unittest.expect(o.endTimeOffset, unittest.equals('foo'));
unittest.expect(o.startTimeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment--;
}
core.int buildCounterGoogleCloudVideointelligenceV1beta2WordInfo = 0;
api.GoogleCloudVideointelligenceV1beta2WordInfo
buildGoogleCloudVideointelligenceV1beta2WordInfo() {
var o = api.GoogleCloudVideointelligenceV1beta2WordInfo();
buildCounterGoogleCloudVideointelligenceV1beta2WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1beta2WordInfo < 3) {
o.confidence = 42.0;
o.endTime = 'foo';
o.speakerTag = 42;
o.startTime = 'foo';
o.word = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1beta2WordInfo--;
return o;
}
void checkGoogleCloudVideointelligenceV1beta2WordInfo(
api.GoogleCloudVideointelligenceV1beta2WordInfo o) {
buildCounterGoogleCloudVideointelligenceV1beta2WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1beta2WordInfo < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.speakerTag, unittest.equals(42));
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.word, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta2WordInfo--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress>
buildUnnamed311() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress());
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress());
return o;
}
void checkUnnamed311(
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress = 0;
api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
buildGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress() {
var o = api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress();
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress <
3) {
o.annotationProgress = buildUnnamed311();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress(
api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress <
3) {
checkUnnamed311(o.annotationProgress);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults>
buildUnnamed312() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults());
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults());
return o;
}
void checkUnnamed312(
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse = 0;
api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
buildGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse() {
var o = api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse();
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse <
3) {
o.annotationResults = buildUnnamed312();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse(
api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse <
3) {
checkUnnamed312(o.annotationResults);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedAttribute = 0;
api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute
buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute() {
var o = api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute();
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedAttribute < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.value = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedAttribute--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(
api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedAttribute < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.value, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedAttribute--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedLandmark = 0;
api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark
buildGoogleCloudVideointelligenceV1p1beta1DetectedLandmark() {
var o = api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark();
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedLandmark < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.point = buildGoogleCloudVideointelligenceV1p1beta1NormalizedVertex();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedLandmark--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1DetectedLandmark(
api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedLandmark < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
checkGoogleCloudVideointelligenceV1p1beta1NormalizedVertex(o.point);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1DetectedLandmark--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1Entity = 0;
api.GoogleCloudVideointelligenceV1p1beta1Entity
buildGoogleCloudVideointelligenceV1p1beta1Entity() {
var o = api.GoogleCloudVideointelligenceV1p1beta1Entity();
buildCounterGoogleCloudVideointelligenceV1p1beta1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1Entity < 3) {
o.description = 'foo';
o.entityId = 'foo';
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1Entity--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1Entity(
api.GoogleCloudVideointelligenceV1p1beta1Entity o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1Entity < 3) {
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.entityId, unittest.equals('foo'));
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1Entity--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame>
buildUnnamed313() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame());
o.add(buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame());
return o;
}
void checkUnnamed313(
core.List<api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation =
0;
api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation();
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation <
3) {
o.frames = buildUnnamed313();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation(
api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation <
3) {
checkUnnamed313(o.frames);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame =
0;
api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame() {
var o = api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame();
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame <
3) {
o.pornographyLikelihood = 'foo';
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame(
api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame <
3) {
unittest.expect(o.pornographyLikelihood, unittest.equals('foo'));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1Entity> buildUnnamed314() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1Entity>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1Entity());
o.add(buildGoogleCloudVideointelligenceV1p1beta1Entity());
return o;
}
void checkUnnamed314(
core.List<api.GoogleCloudVideointelligenceV1p1beta1Entity> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1Entity(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1Entity(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelFrame>
buildUnnamed315() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1LabelFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelFrame());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelFrame());
return o;
}
void checkUnnamed315(
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LabelFrame(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LabelFrame(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelSegment>
buildUnnamed316() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1LabelSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelSegment());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelSegment());
return o;
}
void checkUnnamed316(
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LabelSegment(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LabelSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation = 0;
api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation();
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation < 3) {
o.categoryEntities = buildUnnamed314();
o.entity = buildGoogleCloudVideointelligenceV1p1beta1Entity();
o.frames = buildUnnamed315();
o.segments = buildUnnamed316();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(
api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation < 3) {
checkUnnamed314(o.categoryEntities);
checkGoogleCloudVideointelligenceV1p1beta1Entity(o.entity);
checkUnnamed315(o.frames);
checkUnnamed316(o.segments);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1LabelFrame = 0;
api.GoogleCloudVideointelligenceV1p1beta1LabelFrame
buildGoogleCloudVideointelligenceV1p1beta1LabelFrame() {
var o = api.GoogleCloudVideointelligenceV1p1beta1LabelFrame();
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelFrame < 3) {
o.confidence = 42.0;
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1LabelFrame(
api.GoogleCloudVideointelligenceV1p1beta1LabelFrame o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelFrame < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelFrame--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment = 0;
api.GoogleCloudVideointelligenceV1p1beta1LabelSegment
buildGoogleCloudVideointelligenceV1p1beta1LabelSegment() {
var o = api.GoogleCloudVideointelligenceV1p1beta1LabelSegment();
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment < 3) {
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1LabelSegment(
api.GoogleCloudVideointelligenceV1p1beta1LabelSegment o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment>
buildUnnamed317() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoSegment());
return o;
}
void checkUnnamed317(
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1Track> buildUnnamed318() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1Track>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1Track());
o.add(buildGoogleCloudVideointelligenceV1p1beta1Track());
return o;
}
void checkUnnamed318(
core.List<api.GoogleCloudVideointelligenceV1p1beta1Track> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1Track(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1Track(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation =
0;
api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation
buildGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation();
buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation <
3) {
o.entity = buildGoogleCloudVideointelligenceV1p1beta1Entity();
o.segments = buildUnnamed317();
o.tracks = buildUnnamed318();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation(
api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation <
3) {
checkGoogleCloudVideointelligenceV1p1beta1Entity(o.entity);
checkUnnamed317(o.segments);
checkUnnamed318(o.tracks);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox = 0;
api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox() {
var o = api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox();
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox <
3) {
o.bottom = 42.0;
o.left = 42.0;
o.right = 42.0;
o.top = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox(
api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox <
3) {
unittest.expect(o.bottom, unittest.equals(42.0));
unittest.expect(o.left, unittest.equals(42.0));
unittest.expect(o.right, unittest.equals(42.0));
unittest.expect(o.top, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex>
buildUnnamed319() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1NormalizedVertex());
o.add(buildGoogleCloudVideointelligenceV1p1beta1NormalizedVertex());
return o;
}
void checkUnnamed319(
core.List<api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1NormalizedVertex(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1NormalizedVertex(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly = 0;
api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly
buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly() {
var o = api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly();
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly <
3) {
o.vertices = buildUnnamed319();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly(
api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly <
3) {
checkUnnamed319(o.vertices);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex = 0;
api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex
buildGoogleCloudVideointelligenceV1p1beta1NormalizedVertex() {
var o = api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex();
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex < 3) {
o.x = 42.0;
o.y = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1NormalizedVertex(
api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex < 3) {
unittest.expect(o.x, unittest.equals(42.0));
unittest.expect(o.y, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame>
buildUnnamed320() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame());
o.add(buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame());
return o;
}
void checkUnnamed320(
core.List<api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation =
0;
api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation();
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation <
3) {
o.confidence = 42.0;
o.entity = buildGoogleCloudVideointelligenceV1p1beta1Entity();
o.frames = buildUnnamed320();
o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment();
o.trackId = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation(
api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p1beta1Entity(o.entity);
checkUnnamed320(o.frames);
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment);
unittest.expect(o.trackId, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame =
0;
api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame
buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame() {
var o = api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame();
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame <
3) {
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame(
api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame <
3) {
checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1WordInfo> buildUnnamed321() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1WordInfo>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1WordInfo());
o.add(buildGoogleCloudVideointelligenceV1p1beta1WordInfo());
return o;
}
void checkUnnamed321(
core.List<api.GoogleCloudVideointelligenceV1p1beta1WordInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1WordInfo(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1WordInfo(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative =
0;
api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
buildGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative() {
var o =
api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative();
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative <
3) {
o.confidence = 42.0;
o.transcript = 'foo';
o.words = buildUnnamed321();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative(
api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.transcript, unittest.equals('foo'));
checkUnnamed321(o.words);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>
buildUnnamed322() {
var o =
<api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>[];
o.add(
buildGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative());
o.add(
buildGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative());
return o;
}
void checkUnnamed322(
core.List<
api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription =
0;
api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription
buildGoogleCloudVideointelligenceV1p1beta1SpeechTranscription() {
var o = api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription();
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription <
3) {
o.alternatives = buildUnnamed322();
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1SpeechTranscription(
api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription <
3) {
checkUnnamed322(o.alternatives);
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1TextSegment>
buildUnnamed323() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1TextSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1TextSegment());
o.add(buildGoogleCloudVideointelligenceV1p1beta1TextSegment());
return o;
}
void checkUnnamed323(
core.List<api.GoogleCloudVideointelligenceV1p1beta1TextSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1TextSegment(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1TextSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation = 0;
api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation
buildGoogleCloudVideointelligenceV1p1beta1TextAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation();
buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation < 3) {
o.segments = buildUnnamed323();
o.text = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1TextAnnotation(
api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation < 3) {
checkUnnamed323(o.segments);
unittest.expect(o.text, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame = 0;
api.GoogleCloudVideointelligenceV1p1beta1TextFrame
buildGoogleCloudVideointelligenceV1p1beta1TextFrame() {
var o = api.GoogleCloudVideointelligenceV1p1beta1TextFrame();
buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame < 3) {
o.rotatedBoundingBox =
buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1TextFrame(
api.GoogleCloudVideointelligenceV1p1beta1TextFrame o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame < 3) {
checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly(
o.rotatedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1TextFrame>
buildUnnamed324() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1TextFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1TextFrame());
o.add(buildGoogleCloudVideointelligenceV1p1beta1TextFrame());
return o;
}
void checkUnnamed324(
core.List<api.GoogleCloudVideointelligenceV1p1beta1TextFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1TextFrame(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1TextFrame(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment = 0;
api.GoogleCloudVideointelligenceV1p1beta1TextSegment
buildGoogleCloudVideointelligenceV1p1beta1TextSegment() {
var o = api.GoogleCloudVideointelligenceV1p1beta1TextSegment();
buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment < 3) {
o.confidence = 42.0;
o.frames = buildUnnamed324();
o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1TextSegment(
api.GoogleCloudVideointelligenceV1p1beta1TextSegment o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkUnnamed324(o.frames);
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>
buildUnnamed325() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute());
return o;
}
void checkUnnamed325(
core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark>
buildUnnamed326() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedLandmark());
o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedLandmark());
return o;
}
void checkUnnamed326(
core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1DetectedLandmark(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1DetectedLandmark(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject = 0;
api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject
buildGoogleCloudVideointelligenceV1p1beta1TimestampedObject() {
var o = api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject();
buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject < 3) {
o.attributes = buildUnnamed325();
o.landmarks = buildUnnamed326();
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1TimestampedObject(
api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject < 3) {
checkUnnamed325(o.attributes);
checkUnnamed326(o.landmarks);
checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>
buildUnnamed327() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute());
return o;
}
void checkUnnamed327(
core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject>
buildUnnamed328() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1TimestampedObject());
o.add(buildGoogleCloudVideointelligenceV1p1beta1TimestampedObject());
return o;
}
void checkUnnamed328(
core.List<api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1TimestampedObject(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1TimestampedObject(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1Track = 0;
api.GoogleCloudVideointelligenceV1p1beta1Track
buildGoogleCloudVideointelligenceV1p1beta1Track() {
var o = api.GoogleCloudVideointelligenceV1p1beta1Track();
buildCounterGoogleCloudVideointelligenceV1p1beta1Track++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1Track < 3) {
o.attributes = buildUnnamed327();
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment();
o.timestampedObjects = buildUnnamed328();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1Track--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1Track(
api.GoogleCloudVideointelligenceV1p1beta1Track o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1Track++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1Track < 3) {
checkUnnamed327(o.attributes);
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment);
checkUnnamed328(o.timestampedObjects);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1Track--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress =
0;
api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress() {
var o = api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress();
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress <
3) {
o.feature = 'foo';
o.inputUri = 'foo';
o.progressPercent = 42;
o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment();
o.startTime = 'foo';
o.updateTime = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress(
api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress <
3) {
unittest.expect(o.feature, unittest.equals('foo'));
unittest.expect(o.inputUri, unittest.equals('foo'));
unittest.expect(o.progressPercent, unittest.equals(42));
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment);
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.updateTime, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>
buildUnnamed329() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
return o;
}
void checkUnnamed329(
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation>
buildUnnamed330() {
var o =
<api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation());
return o;
}
void checkUnnamed330(
core.List<
api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation>
buildUnnamed331() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation());
return o;
}
void checkUnnamed331(
core.List<api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>
buildUnnamed332() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
return o;
}
void checkUnnamed332(
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>
buildUnnamed333() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
return o;
}
void checkUnnamed333(
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment>
buildUnnamed334() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoSegment());
return o;
}
void checkUnnamed334(
core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>
buildUnnamed335() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
return o;
}
void checkUnnamed335(
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>
buildUnnamed336() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation());
return o;
}
void checkUnnamed336(
core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription>
buildUnnamed337() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1SpeechTranscription());
o.add(buildGoogleCloudVideointelligenceV1p1beta1SpeechTranscription());
return o;
}
void checkUnnamed337(
core.List<api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1SpeechTranscription(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1SpeechTranscription(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation>
buildUnnamed338() {
var o = <api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p1beta1TextAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p1beta1TextAnnotation());
return o;
}
void checkUnnamed338(
core.List<api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p1beta1TextAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p1beta1TextAnnotation(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults = 0;
api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults() {
var o = api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults();
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults <
3) {
o.error = buildGoogleRpcStatus();
o.explicitAnnotation =
buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation();
o.frameLabelAnnotations = buildUnnamed329();
o.inputUri = 'foo';
o.logoRecognitionAnnotations = buildUnnamed330();
o.objectAnnotations = buildUnnamed331();
o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment();
o.segmentLabelAnnotations = buildUnnamed332();
o.segmentPresenceLabelAnnotations = buildUnnamed333();
o.shotAnnotations = buildUnnamed334();
o.shotLabelAnnotations = buildUnnamed335();
o.shotPresenceLabelAnnotations = buildUnnamed336();
o.speechTranscriptions = buildUnnamed337();
o.textAnnotations = buildUnnamed338();
}
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults(
api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults <
3) {
checkGoogleRpcStatus(o.error);
checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation(
o.explicitAnnotation);
checkUnnamed329(o.frameLabelAnnotations);
unittest.expect(o.inputUri, unittest.equals('foo'));
checkUnnamed330(o.logoRecognitionAnnotations);
checkUnnamed331(o.objectAnnotations);
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment);
checkUnnamed332(o.segmentLabelAnnotations);
checkUnnamed333(o.segmentPresenceLabelAnnotations);
checkUnnamed334(o.shotAnnotations);
checkUnnamed335(o.shotLabelAnnotations);
checkUnnamed336(o.shotPresenceLabelAnnotations);
checkUnnamed337(o.speechTranscriptions);
checkUnnamed338(o.textAnnotations);
}
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1VideoSegment = 0;
api.GoogleCloudVideointelligenceV1p1beta1VideoSegment
buildGoogleCloudVideointelligenceV1p1beta1VideoSegment() {
var o = api.GoogleCloudVideointelligenceV1p1beta1VideoSegment();
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1VideoSegment < 3) {
o.endTimeOffset = 'foo';
o.startTimeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(
api.GoogleCloudVideointelligenceV1p1beta1VideoSegment o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1VideoSegment < 3) {
unittest.expect(o.endTimeOffset, unittest.equals('foo'));
unittest.expect(o.startTimeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1VideoSegment--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo = 0;
api.GoogleCloudVideointelligenceV1p1beta1WordInfo
buildGoogleCloudVideointelligenceV1p1beta1WordInfo() {
var o = api.GoogleCloudVideointelligenceV1p1beta1WordInfo();
buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo < 3) {
o.confidence = 42.0;
o.endTime = 'foo';
o.speakerTag = 42;
o.startTime = 'foo';
o.word = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo--;
return o;
}
void checkGoogleCloudVideointelligenceV1p1beta1WordInfo(
api.GoogleCloudVideointelligenceV1p1beta1WordInfo o) {
buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.speakerTag, unittest.equals(42));
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.word, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress>
buildUnnamed339() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress());
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress());
return o;
}
void checkUnnamed339(
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress = 0;
api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress
buildGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress() {
var o = api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress();
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress <
3) {
o.annotationProgress = buildUnnamed339();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress(
api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress <
3) {
checkUnnamed339(o.annotationProgress);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults>
buildUnnamed340() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults());
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults());
return o;
}
void checkUnnamed340(
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse = 0;
api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse
buildGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse() {
var o = api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse();
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse <
3) {
o.annotationResults = buildUnnamed340();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse(
api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse <
3) {
checkUnnamed340(o.annotationResults);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedAttribute = 0;
api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute
buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute() {
var o = api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute();
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedAttribute < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.value = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedAttribute--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(
api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedAttribute < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.value, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedAttribute--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedLandmark = 0;
api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark
buildGoogleCloudVideointelligenceV1p2beta1DetectedLandmark() {
var o = api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark();
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedLandmark < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.point = buildGoogleCloudVideointelligenceV1p2beta1NormalizedVertex();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedLandmark--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1DetectedLandmark(
api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedLandmark < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
checkGoogleCloudVideointelligenceV1p2beta1NormalizedVertex(o.point);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1DetectedLandmark--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1Entity = 0;
api.GoogleCloudVideointelligenceV1p2beta1Entity
buildGoogleCloudVideointelligenceV1p2beta1Entity() {
var o = api.GoogleCloudVideointelligenceV1p2beta1Entity();
buildCounterGoogleCloudVideointelligenceV1p2beta1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1Entity < 3) {
o.description = 'foo';
o.entityId = 'foo';
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1Entity--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1Entity(
api.GoogleCloudVideointelligenceV1p2beta1Entity o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1Entity < 3) {
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.entityId, unittest.equals('foo'));
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1Entity--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame>
buildUnnamed341() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame());
o.add(buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame());
return o;
}
void checkUnnamed341(
core.List<api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation =
0;
api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation
buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation();
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation <
3) {
o.frames = buildUnnamed341();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation(
api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation <
3) {
checkUnnamed341(o.frames);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame =
0;
api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame
buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame() {
var o = api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame();
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame <
3) {
o.pornographyLikelihood = 'foo';
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame(
api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame <
3) {
unittest.expect(o.pornographyLikelihood, unittest.equals('foo'));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1Entity> buildUnnamed342() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1Entity>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1Entity());
o.add(buildGoogleCloudVideointelligenceV1p2beta1Entity());
return o;
}
void checkUnnamed342(
core.List<api.GoogleCloudVideointelligenceV1p2beta1Entity> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1Entity(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1Entity(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelFrame>
buildUnnamed343() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1LabelFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelFrame());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelFrame());
return o;
}
void checkUnnamed343(
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LabelFrame(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LabelFrame(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelSegment>
buildUnnamed344() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1LabelSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelSegment());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelSegment());
return o;
}
void checkUnnamed344(
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LabelSegment(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LabelSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation = 0;
api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation
buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation();
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation < 3) {
o.categoryEntities = buildUnnamed342();
o.entity = buildGoogleCloudVideointelligenceV1p2beta1Entity();
o.frames = buildUnnamed343();
o.segments = buildUnnamed344();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(
api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation < 3) {
checkUnnamed342(o.categoryEntities);
checkGoogleCloudVideointelligenceV1p2beta1Entity(o.entity);
checkUnnamed343(o.frames);
checkUnnamed344(o.segments);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1LabelFrame = 0;
api.GoogleCloudVideointelligenceV1p2beta1LabelFrame
buildGoogleCloudVideointelligenceV1p2beta1LabelFrame() {
var o = api.GoogleCloudVideointelligenceV1p2beta1LabelFrame();
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelFrame < 3) {
o.confidence = 42.0;
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1LabelFrame(
api.GoogleCloudVideointelligenceV1p2beta1LabelFrame o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelFrame < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelFrame--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment = 0;
api.GoogleCloudVideointelligenceV1p2beta1LabelSegment
buildGoogleCloudVideointelligenceV1p2beta1LabelSegment() {
var o = api.GoogleCloudVideointelligenceV1p2beta1LabelSegment();
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment < 3) {
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1LabelSegment(
api.GoogleCloudVideointelligenceV1p2beta1LabelSegment o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment>
buildUnnamed345() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoSegment());
return o;
}
void checkUnnamed345(
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1Track> buildUnnamed346() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1Track>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1Track());
o.add(buildGoogleCloudVideointelligenceV1p2beta1Track());
return o;
}
void checkUnnamed346(
core.List<api.GoogleCloudVideointelligenceV1p2beta1Track> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1Track(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1Track(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation =
0;
api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation
buildGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation();
buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation <
3) {
o.entity = buildGoogleCloudVideointelligenceV1p2beta1Entity();
o.segments = buildUnnamed345();
o.tracks = buildUnnamed346();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation(
api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation <
3) {
checkGoogleCloudVideointelligenceV1p2beta1Entity(o.entity);
checkUnnamed345(o.segments);
checkUnnamed346(o.tracks);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox = 0;
api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox
buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox() {
var o = api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox();
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox <
3) {
o.bottom = 42.0;
o.left = 42.0;
o.right = 42.0;
o.top = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox(
api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox <
3) {
unittest.expect(o.bottom, unittest.equals(42.0));
unittest.expect(o.left, unittest.equals(42.0));
unittest.expect(o.right, unittest.equals(42.0));
unittest.expect(o.top, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex>
buildUnnamed347() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1NormalizedVertex());
o.add(buildGoogleCloudVideointelligenceV1p2beta1NormalizedVertex());
return o;
}
void checkUnnamed347(
core.List<api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1NormalizedVertex(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1NormalizedVertex(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly = 0;
api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly
buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly() {
var o = api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly();
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly <
3) {
o.vertices = buildUnnamed347();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly(
api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly <
3) {
checkUnnamed347(o.vertices);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex = 0;
api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex
buildGoogleCloudVideointelligenceV1p2beta1NormalizedVertex() {
var o = api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex();
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex < 3) {
o.x = 42.0;
o.y = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1NormalizedVertex(
api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex < 3) {
unittest.expect(o.x, unittest.equals(42.0));
unittest.expect(o.y, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>
buildUnnamed348() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame());
o.add(buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame());
return o;
}
void checkUnnamed348(
core.List<api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation =
0;
api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation();
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation <
3) {
o.confidence = 42.0;
o.entity = buildGoogleCloudVideointelligenceV1p2beta1Entity();
o.frames = buildUnnamed348();
o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment();
o.trackId = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation(
api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p2beta1Entity(o.entity);
checkUnnamed348(o.frames);
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment);
unittest.expect(o.trackId, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame =
0;
api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame
buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame() {
var o = api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame();
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame <
3) {
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame(
api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame <
3) {
checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1WordInfo> buildUnnamed349() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1WordInfo>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1WordInfo());
o.add(buildGoogleCloudVideointelligenceV1p2beta1WordInfo());
return o;
}
void checkUnnamed349(
core.List<api.GoogleCloudVideointelligenceV1p2beta1WordInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1WordInfo(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1WordInfo(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative =
0;
api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
buildGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative() {
var o =
api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative();
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative <
3) {
o.confidence = 42.0;
o.transcript = 'foo';
o.words = buildUnnamed349();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative(
api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.transcript, unittest.equals('foo'));
checkUnnamed349(o.words);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative>
buildUnnamed350() {
var o =
<api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative>[];
o.add(
buildGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative());
o.add(
buildGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative());
return o;
}
void checkUnnamed350(
core.List<
api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription =
0;
api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription
buildGoogleCloudVideointelligenceV1p2beta1SpeechTranscription() {
var o = api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription();
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription <
3) {
o.alternatives = buildUnnamed350();
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1SpeechTranscription(
api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription <
3) {
checkUnnamed350(o.alternatives);
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1TextSegment>
buildUnnamed351() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1TextSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1TextSegment());
o.add(buildGoogleCloudVideointelligenceV1p2beta1TextSegment());
return o;
}
void checkUnnamed351(
core.List<api.GoogleCloudVideointelligenceV1p2beta1TextSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1TextSegment(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1TextSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation = 0;
api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation
buildGoogleCloudVideointelligenceV1p2beta1TextAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation();
buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation < 3) {
o.segments = buildUnnamed351();
o.text = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1TextAnnotation(
api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation < 3) {
checkUnnamed351(o.segments);
unittest.expect(o.text, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame = 0;
api.GoogleCloudVideointelligenceV1p2beta1TextFrame
buildGoogleCloudVideointelligenceV1p2beta1TextFrame() {
var o = api.GoogleCloudVideointelligenceV1p2beta1TextFrame();
buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame < 3) {
o.rotatedBoundingBox =
buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1TextFrame(
api.GoogleCloudVideointelligenceV1p2beta1TextFrame o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame < 3) {
checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly(
o.rotatedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1TextFrame>
buildUnnamed352() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1TextFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1TextFrame());
o.add(buildGoogleCloudVideointelligenceV1p2beta1TextFrame());
return o;
}
void checkUnnamed352(
core.List<api.GoogleCloudVideointelligenceV1p2beta1TextFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1TextFrame(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1TextFrame(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment = 0;
api.GoogleCloudVideointelligenceV1p2beta1TextSegment
buildGoogleCloudVideointelligenceV1p2beta1TextSegment() {
var o = api.GoogleCloudVideointelligenceV1p2beta1TextSegment();
buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment < 3) {
o.confidence = 42.0;
o.frames = buildUnnamed352();
o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1TextSegment(
api.GoogleCloudVideointelligenceV1p2beta1TextSegment o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkUnnamed352(o.frames);
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute>
buildUnnamed353() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute());
return o;
}
void checkUnnamed353(
core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark>
buildUnnamed354() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedLandmark());
o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedLandmark());
return o;
}
void checkUnnamed354(
core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1DetectedLandmark(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1DetectedLandmark(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject = 0;
api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject
buildGoogleCloudVideointelligenceV1p2beta1TimestampedObject() {
var o = api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject();
buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject < 3) {
o.attributes = buildUnnamed353();
o.landmarks = buildUnnamed354();
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1TimestampedObject(
api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject < 3) {
checkUnnamed353(o.attributes);
checkUnnamed354(o.landmarks);
checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute>
buildUnnamed355() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute());
return o;
}
void checkUnnamed355(
core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject>
buildUnnamed356() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1TimestampedObject());
o.add(buildGoogleCloudVideointelligenceV1p2beta1TimestampedObject());
return o;
}
void checkUnnamed356(
core.List<api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1TimestampedObject(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1TimestampedObject(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1Track = 0;
api.GoogleCloudVideointelligenceV1p2beta1Track
buildGoogleCloudVideointelligenceV1p2beta1Track() {
var o = api.GoogleCloudVideointelligenceV1p2beta1Track();
buildCounterGoogleCloudVideointelligenceV1p2beta1Track++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1Track < 3) {
o.attributes = buildUnnamed355();
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment();
o.timestampedObjects = buildUnnamed356();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1Track--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1Track(
api.GoogleCloudVideointelligenceV1p2beta1Track o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1Track++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1Track < 3) {
checkUnnamed355(o.attributes);
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment);
checkUnnamed356(o.timestampedObjects);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1Track--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress =
0;
api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress
buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress() {
var o = api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress();
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress <
3) {
o.feature = 'foo';
o.inputUri = 'foo';
o.progressPercent = 42;
o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment();
o.startTime = 'foo';
o.updateTime = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress(
api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress <
3) {
unittest.expect(o.feature, unittest.equals('foo'));
unittest.expect(o.inputUri, unittest.equals('foo'));
unittest.expect(o.progressPercent, unittest.equals(42));
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment);
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.updateTime, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>
buildUnnamed357() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
return o;
}
void checkUnnamed357(
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation>
buildUnnamed358() {
var o =
<api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation());
return o;
}
void checkUnnamed358(
core.List<
api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation>
buildUnnamed359() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation());
return o;
}
void checkUnnamed359(
core.List<api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>
buildUnnamed360() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
return o;
}
void checkUnnamed360(
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>
buildUnnamed361() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
return o;
}
void checkUnnamed361(
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment>
buildUnnamed362() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoSegment());
return o;
}
void checkUnnamed362(
core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>
buildUnnamed363() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
return o;
}
void checkUnnamed363(
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>
buildUnnamed364() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation());
return o;
}
void checkUnnamed364(
core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription>
buildUnnamed365() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1SpeechTranscription());
o.add(buildGoogleCloudVideointelligenceV1p2beta1SpeechTranscription());
return o;
}
void checkUnnamed365(
core.List<api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1SpeechTranscription(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1SpeechTranscription(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation>
buildUnnamed366() {
var o = <api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p2beta1TextAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p2beta1TextAnnotation());
return o;
}
void checkUnnamed366(
core.List<api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p2beta1TextAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p2beta1TextAnnotation(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults = 0;
api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults
buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults() {
var o = api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults();
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults <
3) {
o.error = buildGoogleRpcStatus();
o.explicitAnnotation =
buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation();
o.frameLabelAnnotations = buildUnnamed357();
o.inputUri = 'foo';
o.logoRecognitionAnnotations = buildUnnamed358();
o.objectAnnotations = buildUnnamed359();
o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment();
o.segmentLabelAnnotations = buildUnnamed360();
o.segmentPresenceLabelAnnotations = buildUnnamed361();
o.shotAnnotations = buildUnnamed362();
o.shotLabelAnnotations = buildUnnamed363();
o.shotPresenceLabelAnnotations = buildUnnamed364();
o.speechTranscriptions = buildUnnamed365();
o.textAnnotations = buildUnnamed366();
}
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults(
api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults <
3) {
checkGoogleRpcStatus(o.error);
checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation(
o.explicitAnnotation);
checkUnnamed357(o.frameLabelAnnotations);
unittest.expect(o.inputUri, unittest.equals('foo'));
checkUnnamed358(o.logoRecognitionAnnotations);
checkUnnamed359(o.objectAnnotations);
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment);
checkUnnamed360(o.segmentLabelAnnotations);
checkUnnamed361(o.segmentPresenceLabelAnnotations);
checkUnnamed362(o.shotAnnotations);
checkUnnamed363(o.shotLabelAnnotations);
checkUnnamed364(o.shotPresenceLabelAnnotations);
checkUnnamed365(o.speechTranscriptions);
checkUnnamed366(o.textAnnotations);
}
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1VideoSegment = 0;
api.GoogleCloudVideointelligenceV1p2beta1VideoSegment
buildGoogleCloudVideointelligenceV1p2beta1VideoSegment() {
var o = api.GoogleCloudVideointelligenceV1p2beta1VideoSegment();
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1VideoSegment < 3) {
o.endTimeOffset = 'foo';
o.startTimeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(
api.GoogleCloudVideointelligenceV1p2beta1VideoSegment o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1VideoSegment < 3) {
unittest.expect(o.endTimeOffset, unittest.equals('foo'));
unittest.expect(o.startTimeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1VideoSegment--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo = 0;
api.GoogleCloudVideointelligenceV1p2beta1WordInfo
buildGoogleCloudVideointelligenceV1p2beta1WordInfo() {
var o = api.GoogleCloudVideointelligenceV1p2beta1WordInfo();
buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo < 3) {
o.confidence = 42.0;
o.endTime = 'foo';
o.speakerTag = 42;
o.startTime = 'foo';
o.word = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo--;
return o;
}
void checkGoogleCloudVideointelligenceV1p2beta1WordInfo(
api.GoogleCloudVideointelligenceV1p2beta1WordInfo o) {
buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.speakerTag, unittest.equals(42));
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.word, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress>
buildUnnamed367() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress());
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress());
return o;
}
void checkUnnamed367(
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress = 0;
api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress
buildGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress() {
var o = api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress();
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress <
3) {
o.annotationProgress = buildUnnamed367();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress(
api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress <
3) {
checkUnnamed367(o.annotationProgress);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults>
buildUnnamed368() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults());
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults());
return o;
}
void checkUnnamed368(
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse = 0;
api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse
buildGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse() {
var o = api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse();
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse <
3) {
o.annotationResults = buildUnnamed368();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse(
api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse <
3) {
checkUnnamed368(o.annotationResults);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity = 0;
api.GoogleCloudVideointelligenceV1p3beta1Celebrity
buildGoogleCloudVideointelligenceV1p3beta1Celebrity() {
var o = api.GoogleCloudVideointelligenceV1p3beta1Celebrity();
buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity < 3) {
o.description = 'foo';
o.displayName = 'foo';
o.name = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1Celebrity(
api.GoogleCloudVideointelligenceV1p3beta1Celebrity o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity < 3) {
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.displayName, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack>
buildUnnamed369() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1CelebrityTrack());
o.add(buildGoogleCloudVideointelligenceV1p3beta1CelebrityTrack());
return o;
}
void checkUnnamed369(
core.List<api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1CelebrityTrack(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1CelebrityTrack(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation =
0;
api.GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation
buildGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation() {
var o =
api.GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation <
3) {
o.celebrityTracks = buildUnnamed369();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation <
3) {
checkUnnamed369(o.celebrityTracks);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity>
buildUnnamed370() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity());
o.add(buildGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity());
return o;
}
void checkUnnamed370(
core.List<api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack = 0;
api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
buildGoogleCloudVideointelligenceV1p3beta1CelebrityTrack() {
var o = api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack();
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack < 3) {
o.celebrities = buildUnnamed370();
o.faceTrack = buildGoogleCloudVideointelligenceV1p3beta1Track();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1CelebrityTrack(
api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack < 3) {
checkUnnamed370(o.celebrities);
checkGoogleCloudVideointelligenceV1p3beta1Track(o.faceTrack);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedAttribute = 0;
api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute() {
var o = api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute();
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedAttribute < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.value = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedAttribute--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(
api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedAttribute++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedAttribute < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.value, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedAttribute--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedLandmark = 0;
api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark
buildGoogleCloudVideointelligenceV1p3beta1DetectedLandmark() {
var o = api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark();
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedLandmark < 3) {
o.confidence = 42.0;
o.name = 'foo';
o.point = buildGoogleCloudVideointelligenceV1p3beta1NormalizedVertex();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedLandmark--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1DetectedLandmark(
api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedLandmark++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedLandmark < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.name, unittest.equals('foo'));
checkGoogleCloudVideointelligenceV1p3beta1NormalizedVertex(o.point);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1DetectedLandmark--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1Entity = 0;
api.GoogleCloudVideointelligenceV1p3beta1Entity
buildGoogleCloudVideointelligenceV1p3beta1Entity() {
var o = api.GoogleCloudVideointelligenceV1p3beta1Entity();
buildCounterGoogleCloudVideointelligenceV1p3beta1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1Entity < 3) {
o.description = 'foo';
o.entityId = 'foo';
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1Entity--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1Entity(
api.GoogleCloudVideointelligenceV1p3beta1Entity o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1Entity++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1Entity < 3) {
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.entityId, unittest.equals('foo'));
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1Entity--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame>
buildUnnamed371() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame());
o.add(buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame());
return o;
}
void checkUnnamed371(
core.List<api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation =
0;
api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation
buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation <
3) {
o.frames = buildUnnamed371();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation <
3) {
checkUnnamed371(o.frames);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame =
0;
api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame
buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame() {
var o = api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame();
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame <
3) {
o.pornographyLikelihood = 'foo';
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame(
api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame <
3) {
unittest.expect(o.pornographyLikelihood, unittest.equals('foo'));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> buildUnnamed372() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1Track>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1Track());
o.add(buildGoogleCloudVideointelligenceV1p3beta1Track());
return o;
}
void checkUnnamed372(
core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1Track(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1Track(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation =
0;
api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation
buildGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation <
3) {
o.thumbnail = 'foo';
o.tracks = buildUnnamed372();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation <
3) {
unittest.expect(o.thumbnail, unittest.equals('foo'));
checkUnnamed372(o.tracks);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1Entity> buildUnnamed373() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1Entity>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1Entity());
o.add(buildGoogleCloudVideointelligenceV1p3beta1Entity());
return o;
}
void checkUnnamed373(
core.List<api.GoogleCloudVideointelligenceV1p3beta1Entity> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1Entity(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1Entity(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelFrame>
buildUnnamed374() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelFrame());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelFrame());
return o;
}
void checkUnnamed374(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelFrame(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelFrame(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelSegment>
buildUnnamed375() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelSegment());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelSegment());
return o;
}
void checkUnnamed375(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelSegment(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation = 0;
api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation
buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation < 3) {
o.categoryEntities = buildUnnamed373();
o.entity = buildGoogleCloudVideointelligenceV1p3beta1Entity();
o.frames = buildUnnamed374();
o.segments = buildUnnamed375();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation < 3) {
checkUnnamed373(o.categoryEntities);
checkGoogleCloudVideointelligenceV1p3beta1Entity(o.entity);
checkUnnamed374(o.frames);
checkUnnamed375(o.segments);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1LabelFrame = 0;
api.GoogleCloudVideointelligenceV1p3beta1LabelFrame
buildGoogleCloudVideointelligenceV1p3beta1LabelFrame() {
var o = api.GoogleCloudVideointelligenceV1p3beta1LabelFrame();
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelFrame < 3) {
o.confidence = 42.0;
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1LabelFrame(
api.GoogleCloudVideointelligenceV1p3beta1LabelFrame o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelFrame < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelFrame--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment = 0;
api.GoogleCloudVideointelligenceV1p3beta1LabelSegment
buildGoogleCloudVideointelligenceV1p3beta1LabelSegment() {
var o = api.GoogleCloudVideointelligenceV1p3beta1LabelSegment();
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment < 3) {
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1LabelSegment(
api.GoogleCloudVideointelligenceV1p3beta1LabelSegment o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>
buildUnnamed376() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment());
return o;
}
void checkUnnamed376(
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> buildUnnamed377() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1Track>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1Track());
o.add(buildGoogleCloudVideointelligenceV1p3beta1Track());
return o;
}
void checkUnnamed377(
core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1Track(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1Track(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation =
0;
api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation
buildGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation <
3) {
o.entity = buildGoogleCloudVideointelligenceV1p3beta1Entity();
o.segments = buildUnnamed376();
o.tracks = buildUnnamed377();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation <
3) {
checkGoogleCloudVideointelligenceV1p3beta1Entity(o.entity);
checkUnnamed376(o.segments);
checkUnnamed377(o.tracks);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox = 0;
api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox
buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox() {
var o = api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox();
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox <
3) {
o.bottom = 42.0;
o.left = 42.0;
o.right = 42.0;
o.top = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox(
api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox <
3) {
unittest.expect(o.bottom, unittest.equals(42.0));
unittest.expect(o.left, unittest.equals(42.0));
unittest.expect(o.right, unittest.equals(42.0));
unittest.expect(o.top, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex>
buildUnnamed378() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1NormalizedVertex());
o.add(buildGoogleCloudVideointelligenceV1p3beta1NormalizedVertex());
return o;
}
void checkUnnamed378(
core.List<api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1NormalizedVertex(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1NormalizedVertex(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly = 0;
api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly
buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly() {
var o = api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly();
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly <
3) {
o.vertices = buildUnnamed378();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly(
api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly <
3) {
checkUnnamed378(o.vertices);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex = 0;
api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex
buildGoogleCloudVideointelligenceV1p3beta1NormalizedVertex() {
var o = api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex();
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex < 3) {
o.x = 42.0;
o.y = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1NormalizedVertex(
api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex < 3) {
unittest.expect(o.x, unittest.equals(42.0));
unittest.expect(o.y, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame>
buildUnnamed379() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame());
o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame());
return o;
}
void checkUnnamed379(
core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation =
0;
api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation <
3) {
o.confidence = 42.0;
o.entity = buildGoogleCloudVideointelligenceV1p3beta1Entity();
o.frames = buildUnnamed379();
o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment();
o.trackId = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p3beta1Entity(o.entity);
checkUnnamed379(o.frames);
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment);
unittest.expect(o.trackId, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame =
0;
api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame
buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame() {
var o = api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame();
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame <
3) {
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame(
api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame <
3) {
checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> buildUnnamed380() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1Track>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1Track());
o.add(buildGoogleCloudVideointelligenceV1p3beta1Track());
return o;
}
void checkUnnamed380(
core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1Track(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1Track(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation =
0;
api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation
buildGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation <
3) {
o.tracks = buildUnnamed380();
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation <
3) {
checkUnnamed380(o.tracks);
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity =
0;
api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
buildGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity() {
var o = api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity();
buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity <
3) {
o.celebrity = buildGoogleCloudVideointelligenceV1p3beta1Celebrity();
o.confidence = 42.0;
}
buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity(
api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity <
3) {
checkGoogleCloudVideointelligenceV1p3beta1Celebrity(o.celebrity);
unittest.expect(o.confidence, unittest.equals(42.0));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1WordInfo> buildUnnamed381() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1WordInfo>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1WordInfo());
o.add(buildGoogleCloudVideointelligenceV1p3beta1WordInfo());
return o;
}
void checkUnnamed381(
core.List<api.GoogleCloudVideointelligenceV1p3beta1WordInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1WordInfo(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1WordInfo(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative =
0;
api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative
buildGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative() {
var o =
api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative();
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative <
3) {
o.confidence = 42.0;
o.transcript = 'foo';
o.words = buildUnnamed381();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative(
api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative <
3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.transcript, unittest.equals('foo'));
checkUnnamed381(o.words);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative>
buildUnnamed382() {
var o =
<api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative>[];
o.add(
buildGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative());
o.add(
buildGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative());
return o;
}
void checkUnnamed382(
core.List<
api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription =
0;
api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription
buildGoogleCloudVideointelligenceV1p3beta1SpeechTranscription() {
var o = api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription();
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription <
3) {
o.alternatives = buildUnnamed382();
o.languageCode = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1SpeechTranscription(
api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription <
3) {
checkUnnamed382(o.alternatives);
unittest.expect(o.languageCode, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse =
0;
api.GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse
buildGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse() {
var o =
api.GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse();
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse <
3) {
o.annotationResults =
buildGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults();
o.annotationResultsUri = 'foo';
o.error = buildGoogleRpcStatus();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse(
api.GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse <
3) {
checkGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults(
o.annotationResults);
unittest.expect(o.annotationResultsUri, unittest.equals('foo'));
checkGoogleRpcStatus(o.error);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>
buildUnnamed383() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
return o;
}
void checkUnnamed383(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>
buildUnnamed384() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation());
return o;
}
void checkUnnamed384(
core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>
buildUnnamed385() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment());
return o;
}
void checkUnnamed385(
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults =
0;
api.GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults
buildGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults() {
var o = api
.GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults();
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults <
3) {
o.explicitAnnotation =
buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation();
o.labelAnnotations = buildUnnamed383();
o.objectAnnotations = buildUnnamed384();
o.shotAnnotations = buildUnnamed385();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults(
api.GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults
o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults <
3) {
checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation(
o.explicitAnnotation);
checkUnnamed383(o.labelAnnotations);
checkUnnamed384(o.objectAnnotations);
checkUnnamed385(o.shotAnnotations);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1TextSegment>
buildUnnamed386() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1TextSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1TextSegment());
o.add(buildGoogleCloudVideointelligenceV1p3beta1TextSegment());
return o;
}
void checkUnnamed386(
core.List<api.GoogleCloudVideointelligenceV1p3beta1TextSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1TextSegment(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1TextSegment(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation = 0;
api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation
buildGoogleCloudVideointelligenceV1p3beta1TextAnnotation() {
var o = api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation();
buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation < 3) {
o.segments = buildUnnamed386();
o.text = 'foo';
o.version = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1TextAnnotation(
api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation < 3) {
checkUnnamed386(o.segments);
unittest.expect(o.text, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame = 0;
api.GoogleCloudVideointelligenceV1p3beta1TextFrame
buildGoogleCloudVideointelligenceV1p3beta1TextFrame() {
var o = api.GoogleCloudVideointelligenceV1p3beta1TextFrame();
buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame < 3) {
o.rotatedBoundingBox =
buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1TextFrame(
api.GoogleCloudVideointelligenceV1p3beta1TextFrame o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame < 3) {
checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly(
o.rotatedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1TextFrame>
buildUnnamed387() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1TextFrame>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1TextFrame());
o.add(buildGoogleCloudVideointelligenceV1p3beta1TextFrame());
return o;
}
void checkUnnamed387(
core.List<api.GoogleCloudVideointelligenceV1p3beta1TextFrame> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1TextFrame(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1TextFrame(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment = 0;
api.GoogleCloudVideointelligenceV1p3beta1TextSegment
buildGoogleCloudVideointelligenceV1p3beta1TextSegment() {
var o = api.GoogleCloudVideointelligenceV1p3beta1TextSegment();
buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment < 3) {
o.confidence = 42.0;
o.frames = buildUnnamed387();
o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1TextSegment(
api.GoogleCloudVideointelligenceV1p3beta1TextSegment o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
checkUnnamed387(o.frames);
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>
buildUnnamed388() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute());
return o;
}
void checkUnnamed388(
core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark>
buildUnnamed389() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedLandmark());
o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedLandmark());
return o;
}
void checkUnnamed389(
core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1DetectedLandmark(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1DetectedLandmark(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject = 0;
api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject
buildGoogleCloudVideointelligenceV1p3beta1TimestampedObject() {
var o = api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject();
buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject < 3) {
o.attributes = buildUnnamed388();
o.landmarks = buildUnnamed389();
o.normalizedBoundingBox =
buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox();
o.timeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1TimestampedObject(
api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject < 3) {
checkUnnamed388(o.attributes);
checkUnnamed389(o.landmarks);
checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox(
o.normalizedBoundingBox);
unittest.expect(o.timeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>
buildUnnamed390() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute());
o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute());
return o;
}
void checkUnnamed390(
core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject>
buildUnnamed391() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1TimestampedObject());
o.add(buildGoogleCloudVideointelligenceV1p3beta1TimestampedObject());
return o;
}
void checkUnnamed391(
core.List<api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1TimestampedObject(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1TimestampedObject(o[1]);
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1Track = 0;
api.GoogleCloudVideointelligenceV1p3beta1Track
buildGoogleCloudVideointelligenceV1p3beta1Track() {
var o = api.GoogleCloudVideointelligenceV1p3beta1Track();
buildCounterGoogleCloudVideointelligenceV1p3beta1Track++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1Track < 3) {
o.attributes = buildUnnamed390();
o.confidence = 42.0;
o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment();
o.timestampedObjects = buildUnnamed391();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1Track--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1Track(
api.GoogleCloudVideointelligenceV1p3beta1Track o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1Track++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1Track < 3) {
checkUnnamed390(o.attributes);
unittest.expect(o.confidence, unittest.equals(42.0));
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment);
checkUnnamed391(o.timestampedObjects);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1Track--;
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress =
0;
api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress
buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress() {
var o = api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress();
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress <
3) {
o.feature = 'foo';
o.inputUri = 'foo';
o.progressPercent = 42;
o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment();
o.startTime = 'foo';
o.updateTime = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress(
api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress <
3) {
unittest.expect(o.feature, unittest.equals('foo'));
unittest.expect(o.inputUri, unittest.equals('foo'));
unittest.expect(o.progressPercent, unittest.equals(42));
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment);
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.updateTime, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress--;
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation>
buildUnnamed392() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation());
return o;
}
void checkUnnamed392(
core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>
buildUnnamed393() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
return o;
}
void checkUnnamed393(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation>
buildUnnamed394() {
var o =
<api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation());
return o;
}
void checkUnnamed394(
core.List<
api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>
buildUnnamed395() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation());
return o;
}
void checkUnnamed395(
core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation>
buildUnnamed396() {
var o =
<api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation());
return o;
}
void checkUnnamed396(
core.List<
api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation>
o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>
buildUnnamed397() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
return o;
}
void checkUnnamed397(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>
buildUnnamed398() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
return o;
}
void checkUnnamed398(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>
buildUnnamed399() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment());
return o;
}
void checkUnnamed399(
core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>
buildUnnamed400() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
return o;
}
void checkUnnamed400(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>
buildUnnamed401() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation());
return o;
}
void checkUnnamed401(
core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription>
buildUnnamed402() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1SpeechTranscription());
o.add(buildGoogleCloudVideointelligenceV1p3beta1SpeechTranscription());
return o;
}
void checkUnnamed402(
core.List<api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1SpeechTranscription(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1SpeechTranscription(o[1]);
}
core.List<api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation>
buildUnnamed403() {
var o = <api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation>[];
o.add(buildGoogleCloudVideointelligenceV1p3beta1TextAnnotation());
o.add(buildGoogleCloudVideointelligenceV1p3beta1TextAnnotation());
return o;
}
void checkUnnamed403(
core.List<api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1p3beta1TextAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1p3beta1TextAnnotation(o[1]);
}
core.int
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults = 0;
api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults
buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults() {
var o = api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults();
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults <
3) {
o.celebrityRecognitionAnnotations =
buildGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation();
o.error = buildGoogleRpcStatus();
o.explicitAnnotation =
buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation();
o.faceDetectionAnnotations = buildUnnamed392();
o.frameLabelAnnotations = buildUnnamed393();
o.inputUri = 'foo';
o.logoRecognitionAnnotations = buildUnnamed394();
o.objectAnnotations = buildUnnamed395();
o.personDetectionAnnotations = buildUnnamed396();
o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment();
o.segmentLabelAnnotations = buildUnnamed397();
o.segmentPresenceLabelAnnotations = buildUnnamed398();
o.shotAnnotations = buildUnnamed399();
o.shotLabelAnnotations = buildUnnamed400();
o.shotPresenceLabelAnnotations = buildUnnamed401();
o.speechTranscriptions = buildUnnamed402();
o.textAnnotations = buildUnnamed403();
}
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults(
api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults <
3) {
checkGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation(
o.celebrityRecognitionAnnotations);
checkGoogleRpcStatus(o.error);
checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation(
o.explicitAnnotation);
checkUnnamed392(o.faceDetectionAnnotations);
checkUnnamed393(o.frameLabelAnnotations);
unittest.expect(o.inputUri, unittest.equals('foo'));
checkUnnamed394(o.logoRecognitionAnnotations);
checkUnnamed395(o.objectAnnotations);
checkUnnamed396(o.personDetectionAnnotations);
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment);
checkUnnamed397(o.segmentLabelAnnotations);
checkUnnamed398(o.segmentPresenceLabelAnnotations);
checkUnnamed399(o.shotAnnotations);
checkUnnamed400(o.shotLabelAnnotations);
checkUnnamed401(o.shotPresenceLabelAnnotations);
checkUnnamed402(o.speechTranscriptions);
checkUnnamed403(o.textAnnotations);
}
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1VideoSegment = 0;
api.GoogleCloudVideointelligenceV1p3beta1VideoSegment
buildGoogleCloudVideointelligenceV1p3beta1VideoSegment() {
var o = api.GoogleCloudVideointelligenceV1p3beta1VideoSegment();
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1VideoSegment < 3) {
o.endTimeOffset = 'foo';
o.startTimeOffset = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoSegment--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(
api.GoogleCloudVideointelligenceV1p3beta1VideoSegment o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoSegment++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1VideoSegment < 3) {
unittest.expect(o.endTimeOffset, unittest.equals('foo'));
unittest.expect(o.startTimeOffset, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1VideoSegment--;
}
core.int buildCounterGoogleCloudVideointelligenceV1p3beta1WordInfo = 0;
api.GoogleCloudVideointelligenceV1p3beta1WordInfo
buildGoogleCloudVideointelligenceV1p3beta1WordInfo() {
var o = api.GoogleCloudVideointelligenceV1p3beta1WordInfo();
buildCounterGoogleCloudVideointelligenceV1p3beta1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1WordInfo < 3) {
o.confidence = 42.0;
o.endTime = 'foo';
o.speakerTag = 42;
o.startTime = 'foo';
o.word = 'foo';
}
buildCounterGoogleCloudVideointelligenceV1p3beta1WordInfo--;
return o;
}
void checkGoogleCloudVideointelligenceV1p3beta1WordInfo(
api.GoogleCloudVideointelligenceV1p3beta1WordInfo o) {
buildCounterGoogleCloudVideointelligenceV1p3beta1WordInfo++;
if (buildCounterGoogleCloudVideointelligenceV1p3beta1WordInfo < 3) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.speakerTag, unittest.equals(42));
unittest.expect(o.startTime, unittest.equals('foo'));
unittest.expect(o.word, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1p3beta1WordInfo--;
}
core.int buildCounterGoogleLongrunningCancelOperationRequest = 0;
api.GoogleLongrunningCancelOperationRequest
buildGoogleLongrunningCancelOperationRequest() {
var o = api.GoogleLongrunningCancelOperationRequest();
buildCounterGoogleLongrunningCancelOperationRequest++;
if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {}
buildCounterGoogleLongrunningCancelOperationRequest--;
return o;
}
void checkGoogleLongrunningCancelOperationRequest(
api.GoogleLongrunningCancelOperationRequest o) {
buildCounterGoogleLongrunningCancelOperationRequest++;
if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {}
buildCounterGoogleLongrunningCancelOperationRequest--;
}
core.List<api.GoogleLongrunningOperation> buildUnnamed404() {
var o = <api.GoogleLongrunningOperation>[];
o.add(buildGoogleLongrunningOperation());
o.add(buildGoogleLongrunningOperation());
return o;
}
void checkUnnamed404(core.List<api.GoogleLongrunningOperation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleLongrunningOperation(o[0]);
checkGoogleLongrunningOperation(o[1]);
}
core.int buildCounterGoogleLongrunningListOperationsResponse = 0;
api.GoogleLongrunningListOperationsResponse
buildGoogleLongrunningListOperationsResponse() {
var o = api.GoogleLongrunningListOperationsResponse();
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
o.nextPageToken = 'foo';
o.operations = buildUnnamed404();
}
buildCounterGoogleLongrunningListOperationsResponse--;
return o;
}
void checkGoogleLongrunningListOperationsResponse(
api.GoogleLongrunningListOperationsResponse o) {
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
checkUnnamed404(o.operations);
}
buildCounterGoogleLongrunningListOperationsResponse--;
}
core.Map<core.String, core.Object> buildUnnamed405() {
var o = <core.String, core.Object>{};
o['x'] = {
'list': [1, 2, 3],
'bool': true,
'string': 'foo'
};
o['y'] = {
'list': [1, 2, 3],
'bool': true,
'string': 'foo'
};
return o;
}
void checkUnnamed405(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));
unittest.expect(casted1['list'], unittest.equals([1, 2, 3]));
unittest.expect(casted1['bool'], unittest.equals(true));
unittest.expect(casted1['string'], unittest.equals('foo'));
var casted2 = (o['y']) as core.Map;
unittest.expect(casted2, unittest.hasLength(3));
unittest.expect(casted2['list'], unittest.equals([1, 2, 3]));
unittest.expect(casted2['bool'], unittest.equals(true));
unittest.expect(casted2['string'], unittest.equals('foo'));
}
core.Map<core.String, core.Object> buildUnnamed406() {
var o = <core.String, core.Object>{};
o['x'] = {
'list': [1, 2, 3],
'bool': true,
'string': 'foo'
};
o['y'] = {
'list': [1, 2, 3],
'bool': true,
'string': 'foo'
};
return o;
}
void checkUnnamed406(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));
unittest.expect(casted3['list'], unittest.equals([1, 2, 3]));
unittest.expect(casted3['bool'], unittest.equals(true));
unittest.expect(casted3['string'], unittest.equals('foo'));
var casted4 = (o['y']) as core.Map;
unittest.expect(casted4, unittest.hasLength(3));
unittest.expect(casted4['list'], unittest.equals([1, 2, 3]));
unittest.expect(casted4['bool'], unittest.equals(true));
unittest.expect(casted4['string'], unittest.equals('foo'));
}
core.int buildCounterGoogleLongrunningOperation = 0;
api.GoogleLongrunningOperation buildGoogleLongrunningOperation() {
var o = api.GoogleLongrunningOperation();
buildCounterGoogleLongrunningOperation++;
if (buildCounterGoogleLongrunningOperation < 3) {
o.done = true;
o.error = buildGoogleRpcStatus();
o.metadata = buildUnnamed405();
o.name = 'foo';
o.response = buildUnnamed406();
}
buildCounterGoogleLongrunningOperation--;
return o;
}
void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
buildCounterGoogleLongrunningOperation++;
if (buildCounterGoogleLongrunningOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkGoogleRpcStatus(o.error);
checkUnnamed405(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
checkUnnamed406(o.response);
}
buildCounterGoogleLongrunningOperation--;
}
core.int buildCounterGoogleProtobufEmpty = 0;
api.GoogleProtobufEmpty buildGoogleProtobufEmpty() {
var o = api.GoogleProtobufEmpty();
buildCounterGoogleProtobufEmpty++;
if (buildCounterGoogleProtobufEmpty < 3) {}
buildCounterGoogleProtobufEmpty--;
return o;
}
void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) {
buildCounterGoogleProtobufEmpty++;
if (buildCounterGoogleProtobufEmpty < 3) {}
buildCounterGoogleProtobufEmpty--;
}
core.Map<core.String, core.Object> buildUnnamed407() {
var o = <core.String, core.Object>{};
o['x'] = {
'list': [1, 2, 3],
'bool': true,
'string': 'foo'
};
o['y'] = {
'list': [1, 2, 3],
'bool': true,
'string': 'foo'
};
return o;
}
void checkUnnamed407(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));
unittest.expect(casted5['list'], unittest.equals([1, 2, 3]));
unittest.expect(casted5['bool'], unittest.equals(true));
unittest.expect(casted5['string'], unittest.equals('foo'));
var casted6 = (o['y']) as core.Map;
unittest.expect(casted6, unittest.hasLength(3));
unittest.expect(casted6['list'], unittest.equals([1, 2, 3]));
unittest.expect(casted6['bool'], unittest.equals(true));
unittest.expect(casted6['string'], unittest.equals('foo'));
}
core.List<core.Map<core.String, core.Object>> buildUnnamed408() {
var o = <core.Map<core.String, core.Object>>[];
o.add(buildUnnamed407());
o.add(buildUnnamed407());
return o;
}
void checkUnnamed408(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
checkUnnamed407(o[0]);
checkUnnamed407(o[1]);
}
core.int buildCounterGoogleRpcStatus = 0;
api.GoogleRpcStatus buildGoogleRpcStatus() {
var o = api.GoogleRpcStatus();
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
o.code = 42;
o.details = buildUnnamed408();
o.message = 'foo';
}
buildCounterGoogleRpcStatus--;
return o;
}
void checkGoogleRpcStatus(api.GoogleRpcStatus o) {
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
checkUnnamed408(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterGoogleRpcStatus--;
}
void main() {
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress();
var od = api.GoogleCloudVideointelligenceV1AnnotateVideoProgress.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoRequest', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1AnnotateVideoRequest();
var od = api.GoogleCloudVideointelligenceV1AnnotateVideoRequest.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1AnnotateVideoRequest(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoResponse', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1AnnotateVideoResponse();
var od = api.GoogleCloudVideointelligenceV1AnnotateVideoResponse.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1DetectedAttribute',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1DetectedAttribute();
var od = api.GoogleCloudVideointelligenceV1DetectedAttribute.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1DetectedAttribute(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1DetectedLandmark',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1DetectedLandmark();
var od = api.GoogleCloudVideointelligenceV1DetectedLandmark.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1DetectedLandmark(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1Entity', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1Entity();
var od = api.GoogleCloudVideointelligenceV1Entity.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1Entity(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1ExplicitContentAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1ExplicitContentAnnotation();
var od =
api.GoogleCloudVideointelligenceV1ExplicitContentAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1ExplicitContentAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig();
var od = api.GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1ExplicitContentFrame', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1ExplicitContentFrame();
var od = api.GoogleCloudVideointelligenceV1ExplicitContentFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1ExplicitContentFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1LabelAnnotation();
var od = api.GoogleCloudVideointelligenceV1LabelAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1LabelAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1LabelDetectionConfig', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1LabelDetectionConfig();
var od = api.GoogleCloudVideointelligenceV1LabelDetectionConfig.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1LabelDetectionConfig(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1LabelFrame', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1LabelFrame();
var od =
api.GoogleCloudVideointelligenceV1LabelFrame.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1LabelFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1LabelSegment', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1LabelSegment();
var od =
api.GoogleCloudVideointelligenceV1LabelSegment.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1LabelSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1LogoRecognitionAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1LogoRecognitionAnnotation();
var od =
api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1LogoRecognitionAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1NormalizedBoundingBox', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1NormalizedBoundingBox();
var od = api.GoogleCloudVideointelligenceV1NormalizedBoundingBox.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1NormalizedBoundingBox(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1NormalizedBoundingPoly', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1NormalizedBoundingPoly();
var od =
api.GoogleCloudVideointelligenceV1NormalizedBoundingPoly.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1NormalizedBoundingPoly(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1NormalizedVertex',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1NormalizedVertex();
var od = api.GoogleCloudVideointelligenceV1NormalizedVertex.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1NormalizedVertex(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1ObjectTrackingAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1ObjectTrackingAnnotation();
var od =
api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1ObjectTrackingAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1ObjectTrackingConfig', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1ObjectTrackingConfig();
var od = api.GoogleCloudVideointelligenceV1ObjectTrackingConfig.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1ObjectTrackingConfig(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1ObjectTrackingFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1ObjectTrackingFrame();
var od = api.GoogleCloudVideointelligenceV1ObjectTrackingFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1ObjectTrackingFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1ShotChangeDetectionConfig', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1ShotChangeDetectionConfig();
var od =
api.GoogleCloudVideointelligenceV1ShotChangeDetectionConfig.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1ShotChangeDetectionConfig(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1SpeechContext', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1SpeechContext();
var od =
api.GoogleCloudVideointelligenceV1SpeechContext.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1SpeechContext(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1SpeechRecognitionAlternative',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1SpeechRecognitionAlternative();
var od = api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1SpeechRecognitionAlternative(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1SpeechTranscription',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1SpeechTranscription();
var od = api.GoogleCloudVideointelligenceV1SpeechTranscription.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1SpeechTranscription(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1SpeechTranscriptionConfig', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1SpeechTranscriptionConfig();
var od =
api.GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1SpeechTranscriptionConfig(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1TextAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1TextAnnotation();
var od =
api.GoogleCloudVideointelligenceV1TextAnnotation.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1TextAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1TextDetectionConfig',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1TextDetectionConfig();
var od = api.GoogleCloudVideointelligenceV1TextDetectionConfig.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1TextDetectionConfig(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1TextFrame', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1TextFrame();
var od = api.GoogleCloudVideointelligenceV1TextFrame.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1TextFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1TextSegment', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1TextSegment();
var od =
api.GoogleCloudVideointelligenceV1TextSegment.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1TextSegment(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1TimestampedObject',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1TimestampedObject();
var od = api.GoogleCloudVideointelligenceV1TimestampedObject.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1TimestampedObject(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1Track', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1Track();
var od = api.GoogleCloudVideointelligenceV1Track.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1Track(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationProgress', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1VideoAnnotationProgress();
var od =
api.GoogleCloudVideointelligenceV1VideoAnnotationProgress.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationResults', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1VideoAnnotationResults();
var od =
api.GoogleCloudVideointelligenceV1VideoAnnotationResults.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1VideoAnnotationResults(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1VideoContext', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1VideoContext();
var od =
api.GoogleCloudVideointelligenceV1VideoContext.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1VideoContext(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1VideoSegment', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1VideoSegment();
var od =
api.GoogleCloudVideointelligenceV1VideoSegment.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1VideoSegment(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1WordInfo', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1WordInfo();
var od = api.GoogleCloudVideointelligenceV1WordInfo.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1WordInfo(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress();
var od =
api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse();
var od =
api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2DetectedAttribute', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2DetectedAttribute();
var od =
api.GoogleCloudVideointelligenceV1beta2DetectedAttribute.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2DetectedLandmark', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2DetectedLandmark();
var od = api.GoogleCloudVideointelligenceV1beta2DetectedLandmark.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2DetectedLandmark(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2Entity', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2Entity();
var od =
api.GoogleCloudVideointelligenceV1beta2Entity.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2Entity(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation();
var od = api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2ExplicitContentFrame', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame();
var od =
api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2LabelAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2LabelAnnotation();
var od = api.GoogleCloudVideointelligenceV1beta2LabelAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2LabelFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2LabelFrame();
var od = api.GoogleCloudVideointelligenceV1beta2LabelFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2LabelFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2LabelSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2LabelSegment();
var od = api.GoogleCloudVideointelligenceV1beta2LabelSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2LabelSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation();
var od = api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox();
var od =
api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly();
var od = api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2NormalizedVertex', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2NormalizedVertex();
var od = api.GoogleCloudVideointelligenceV1beta2NormalizedVertex.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2NormalizedVertex(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation();
var od = api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame();
var od =
api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative();
var od =
api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2SpeechTranscription', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2SpeechTranscription();
var od =
api.GoogleCloudVideointelligenceV1beta2SpeechTranscription.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2SpeechTranscription(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2TextAnnotation',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2TextAnnotation();
var od = api.GoogleCloudVideointelligenceV1beta2TextAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2TextAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2TextFrame', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2TextFrame();
var od =
api.GoogleCloudVideointelligenceV1beta2TextFrame.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2TextFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2TextSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2TextSegment();
var od = api.GoogleCloudVideointelligenceV1beta2TextSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2TextSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2TimestampedObject', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2TimestampedObject();
var od =
api.GoogleCloudVideointelligenceV1beta2TimestampedObject.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2TimestampedObject(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2Track', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2Track();
var od =
api.GoogleCloudVideointelligenceV1beta2Track.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2Track(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress();
var od = api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1beta2VideoAnnotationResults',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults();
var od = api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2VideoSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2VideoSegment();
var od = api.GoogleCloudVideointelligenceV1beta2VideoSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1beta2VideoSegment(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1beta2WordInfo', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1beta2WordInfo();
var od =
api.GoogleCloudVideointelligenceV1beta2WordInfo.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1beta2WordInfo(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress();
var od = api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse();
var od = api.GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1DetectedAttribute', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute();
var od =
api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1DetectedLandmark', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1DetectedLandmark();
var od =
api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1DetectedLandmark(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1Entity', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1Entity();
var od =
api.GoogleCloudVideointelligenceV1p1beta1Entity.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1Entity(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame();
var od = api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1LabelAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1LabelFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1LabelFrame();
var od = api.GoogleCloudVideointelligenceV1p1beta1LabelFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1LabelFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1LabelSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1LabelSegment();
var od = api.GoogleCloudVideointelligenceV1p1beta1LabelSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1LabelSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox();
var od = api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly();
var od = api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1NormalizedVertex', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1NormalizedVertex();
var od =
api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1NormalizedVertex(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation();
var od = api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame();
var od =
api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative();
var od =
api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative(
od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1SpeechTranscription',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1SpeechTranscription();
var od =
api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1SpeechTranscription(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1TextAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1TextAnnotation();
var od = api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1TextAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1TextFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1TextFrame();
var od = api.GoogleCloudVideointelligenceV1p1beta1TextFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1TextFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1TextSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1TextSegment();
var od = api.GoogleCloudVideointelligenceV1p1beta1TextSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1TextSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1TimestampedObject', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1TimestampedObject();
var od =
api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1TimestampedObject(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1Track', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1Track();
var od =
api.GoogleCloudVideointelligenceV1p1beta1Track.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1Track(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress();
var od = api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults();
var od = api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1VideoSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment();
var od = api.GoogleCloudVideointelligenceV1p1beta1VideoSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p1beta1WordInfo',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p1beta1WordInfo();
var od = api.GoogleCloudVideointelligenceV1p1beta1WordInfo.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p1beta1WordInfo(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress();
var od = api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse();
var od = api.GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1DetectedAttribute', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute();
var od =
api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1DetectedLandmark', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1DetectedLandmark();
var od =
api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1DetectedLandmark(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1Entity', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1Entity();
var od =
api.GoogleCloudVideointelligenceV1p2beta1Entity.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1Entity(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame();
var od = api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1LabelAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1LabelFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1LabelFrame();
var od = api.GoogleCloudVideointelligenceV1p2beta1LabelFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1LabelFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1LabelSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1LabelSegment();
var od = api.GoogleCloudVideointelligenceV1p2beta1LabelSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1LabelSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox();
var od = api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly();
var od = api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1NormalizedVertex', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1NormalizedVertex();
var od =
api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1NormalizedVertex(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation();
var od = api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame();
var od =
api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative();
var od =
api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative(
od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1SpeechTranscription',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1SpeechTranscription();
var od =
api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1SpeechTranscription(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1TextAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1TextAnnotation();
var od = api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1TextAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1TextFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1TextFrame();
var od = api.GoogleCloudVideointelligenceV1p2beta1TextFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1TextFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1TextSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1TextSegment();
var od = api.GoogleCloudVideointelligenceV1p2beta1TextSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1TextSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1TimestampedObject', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1TimestampedObject();
var od =
api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1TimestampedObject(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1Track', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1Track();
var od =
api.GoogleCloudVideointelligenceV1p2beta1Track.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1Track(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress();
var od = api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults();
var od = api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1VideoSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment();
var od = api.GoogleCloudVideointelligenceV1p2beta1VideoSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p2beta1WordInfo',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p2beta1WordInfo();
var od = api.GoogleCloudVideointelligenceV1p2beta1WordInfo.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p2beta1WordInfo(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress();
var od = api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse();
var od = api.GoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1Celebrity',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1Celebrity();
var od = api.GoogleCloudVideointelligenceV1p3beta1Celebrity.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1Celebrity(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation(
od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1CelebrityTrack', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1CelebrityTrack();
var od = api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1CelebrityTrack(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1DetectedAttribute', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute();
var od =
api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1DetectedLandmark', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1DetectedLandmark();
var od =
api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1DetectedLandmark(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1Entity', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1Entity();
var od =
api.GoogleCloudVideointelligenceV1p3beta1Entity.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1Entity(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame();
var od = api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation();
var od = api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1LabelAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1LabelFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1LabelFrame();
var od = api.GoogleCloudVideointelligenceV1p3beta1LabelFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1LabelFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1LabelSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1LabelSegment();
var od = api.GoogleCloudVideointelligenceV1p3beta1LabelSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1LabelSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox();
var od = api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly();
var od = api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1NormalizedVertex', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1NormalizedVertex();
var od =
api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1NormalizedVertex(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation();
var od = api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame();
var od =
api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation();
var od =
api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity();
var od =
api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative();
var od =
api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative(
od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1SpeechTranscription',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1SpeechTranscription();
var od =
api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1SpeechTranscription(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse();
var od =
api.GoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse(
od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults();
var od =
api.GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults(
od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1TextAnnotation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1TextAnnotation();
var od = api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1TextAnnotation(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1TextFrame',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1TextFrame();
var od = api.GoogleCloudVideointelligenceV1p3beta1TextFrame.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1TextFrame(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1TextSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1TextSegment();
var od = api.GoogleCloudVideointelligenceV1p3beta1TextSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1TextSegment(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1TimestampedObject', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1TimestampedObject();
var od =
api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1TimestampedObject(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1Track', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1Track();
var od =
api.GoogleCloudVideointelligenceV1p3beta1Track.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1Track(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress();
var od = api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress(od);
});
});
unittest.group(
'obj-schema-GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults',
() {
unittest.test('to-json--from-json', () {
var o =
buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults();
var od = api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults
.fromJson(o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1VideoSegment',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment();
var od = api.GoogleCloudVideointelligenceV1p3beta1VideoSegment.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(od);
});
});
unittest.group('obj-schema-GoogleCloudVideointelligenceV1p3beta1WordInfo',
() {
unittest.test('to-json--from-json', () {
var o = buildGoogleCloudVideointelligenceV1p3beta1WordInfo();
var od = api.GoogleCloudVideointelligenceV1p3beta1WordInfo.fromJson(
o.toJson());
checkGoogleCloudVideointelligenceV1p3beta1WordInfo(od);
});
});
unittest.group('obj-schema-GoogleLongrunningCancelOperationRequest', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleLongrunningCancelOperationRequest();
var od = api.GoogleLongrunningCancelOperationRequest.fromJson(o.toJson());
checkGoogleLongrunningCancelOperationRequest(od);
});
});
unittest.group('obj-schema-GoogleLongrunningListOperationsResponse', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleLongrunningListOperationsResponse();
var od = api.GoogleLongrunningListOperationsResponse.fromJson(o.toJson());
checkGoogleLongrunningListOperationsResponse(od);
});
});
unittest.group('obj-schema-GoogleLongrunningOperation', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleLongrunningOperation();
var od = api.GoogleLongrunningOperation.fromJson(o.toJson());
checkGoogleLongrunningOperation(od);
});
});
unittest.group('obj-schema-GoogleProtobufEmpty', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleProtobufEmpty();
var od = api.GoogleProtobufEmpty.fromJson(o.toJson());
checkGoogleProtobufEmpty(od);
});
});
unittest.group('obj-schema-GoogleRpcStatus', () {
unittest.test('to-json--from-json', () {
var o = buildGoogleRpcStatus();
var od = api.GoogleRpcStatus.fromJson(o.toJson());
checkGoogleRpcStatus(od);
});
});
unittest.group('resource-OperationsProjectsLocationsOperationsResourceApi',
() {
unittest.test('method--cancel', () {
var mock = HttpServerMock();
api.OperationsProjectsLocationsOperationsResourceApi res =
api.VideointelligenceApi(mock)
.operations
.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;
core.int index;
core.String subPart;
unittest.expect(
path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
unittest.expect(path.substring(pathOffset, pathOffset + 14),
unittest.equals("v1/operations/"));
pathOffset += 14;
// 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 async.Future.value(stringResponse(200, h, resp));
}), true);
res
.cancel(arg_name, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleProtobufEmpty(response);
})));
});
unittest.test('method--delete', () {
var mock = HttpServerMock();
api.OperationsProjectsLocationsOperationsResourceApi res =
api.VideointelligenceApi(mock)
.operations
.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;
core.int index;
core.String subPart;
unittest.expect(
path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
unittest.expect(path.substring(pathOffset, pathOffset + 14),
unittest.equals("v1/operations/"));
pathOffset += 14;
// 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 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 = HttpServerMock();
api.OperationsProjectsLocationsOperationsResourceApi res =
api.VideointelligenceApi(mock)
.operations
.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;
core.int index;
core.String subPart;
unittest.expect(
path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
unittest.expect(path.substring(pathOffset, pathOffset + 14),
unittest.equals("v1/operations/"));
pathOffset += 14;
// 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 async.Future.value(stringResponse(200, h, resp));
}), true);
res
.get(arg_name, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleLongrunningOperation(response);
})));
});
});
unittest.group('resource-ProjectsLocationsCorporaOperationsResourceApi', () {
unittest.test('method--get', () {
var mock = HttpServerMock();
api.ProjectsLocationsCorporaOperationsResourceApi res =
api.VideointelligenceApi(mock).projects.locations.corpora.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;
core.int index;
core.String 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 async.Future.value(stringResponse(200, h, resp));
}), true);
res
.get(arg_name, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleLongrunningOperation(response);
})));
});
});
unittest.group('resource-ProjectsLocationsCorpuraOperationsResourceApi', () {
unittest.test('method--get', () {
var mock = HttpServerMock();
api.ProjectsLocationsCorpuraOperationsResourceApi res =
api.VideointelligenceApi(mock).projects.locations.corpura.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;
core.int index;
core.String 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 async.Future.value(stringResponse(200, h, resp));
}), true);
res
.get(arg_name, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleLongrunningOperation(response);
})));
});
});
unittest.group('resource-ProjectsLocationsOperationsResourceApi', () {
unittest.test('method--cancel', () {
var mock = HttpServerMock();
api.ProjectsLocationsOperationsResourceApi res =
api.VideointelligenceApi(mock).projects.locations.operations;
var arg_request = buildGoogleLongrunningCancelOperationRequest();
var arg_name = 'foo';
var arg_$fields = 'foo';
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = api.GoogleLongrunningCancelOperationRequest.fromJson(json);
checkGoogleLongrunningCancelOperationRequest(obj);
var path = (req.url).path;
var pathOffset = 0;
core.int index;
core.String 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 async.Future.value(stringResponse(200, h, resp));
}), true);
res
.cancel(arg_request, arg_name, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleProtobufEmpty(response);
})));
});
unittest.test('method--delete', () {
var mock = HttpServerMock();
api.ProjectsLocationsOperationsResourceApi res =
api.VideointelligenceApi(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;
core.int index;
core.String 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 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 = HttpServerMock();
api.ProjectsLocationsOperationsResourceApi res =
api.VideointelligenceApi(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;
core.int index;
core.String 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 async.Future.value(stringResponse(200, h, resp));
}), true);
res
.get(arg_name, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleLongrunningOperation(response);
})));
});
unittest.test('method--list', () {
var mock = HttpServerMock();
api.ProjectsLocationsOperationsResourceApi res =
api.VideointelligenceApi(mock).projects.locations.operations;
var arg_name = 'foo';
var arg_filter = 'foo';
var arg_pageSize = 42;
var arg_pageToken = 'foo';
var arg_$fields = 'foo';
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
core.int index;
core.String 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>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
for (var part in query.split('&')) {
var keyValue = part.split('=');
addQueryParam(
core.Uri.decodeQueryComponent(keyValue[0]),
core.Uri.decodeQueryComponent(keyValue[1]),
);
}
}
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(core.int.parse(queryMap["pageSize"].first),
unittest.equals(arg_pageSize));
unittest.expect(
queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
'content-type': 'application/json; charset=utf-8',
};
var resp =
convert.json.encode(buildGoogleLongrunningListOperationsResponse());
return async.Future.value(stringResponse(200, h, resp));
}), true);
res
.list(arg_name,
filter: arg_filter,
pageSize: arg_pageSize,
pageToken: arg_pageToken,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleLongrunningListOperationsResponse(response);
})));
});
});
unittest.group('resource-VideosResourceApi', () {
unittest.test('method--annotate', () {
var mock = HttpServerMock();
api.VideosResourceApi res = api.VideointelligenceApi(mock).videos;
var arg_request =
buildGoogleCloudVideointelligenceV1AnnotateVideoRequest();
var arg_$fields = 'foo';
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj =
api.GoogleCloudVideointelligenceV1AnnotateVideoRequest.fromJson(
json);
checkGoogleCloudVideointelligenceV1AnnotateVideoRequest(obj);
var path = (req.url).path;
var pathOffset = 0;
core.int index;
core.String subPart;
unittest.expect(
path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
unittest.expect(path.substring(pathOffset, pathOffset + 18),
unittest.equals("v1/videos:annotate"));
pathOffset += 18;
var query = (req.url).query;
var queryOffset = 0;
var queryMap = <core.String, core.List<core.String>>{};
void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
if (query.isNotEmpty) {
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 async.Future.value(stringResponse(200, h, resp));
}), true);
res
.annotate(arg_request, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleLongrunningOperation(response);
})));
});
});
}