blob: 86ec8c7f71fe56dd51584ba2851a60ec3cebf96d [file] [log] [blame]
// ignore_for_file: camel_case_types
// ignore_for_file: comment_references
// 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: prefer_expression_function_bodies
// 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_final_locals
// ignore_for_file: prefer_single_quotes
// ignore_for_file: unused_local_variable
import 'dart:async' as async;
import 'dart:convert' as convert;
import 'dart:core' as core;
import 'package:http/http.dart' as http;
import 'package:test/test.dart' as unittest;
import 'package:googleapis/docs/v1.dart' as api;
import '../test_shared.dart';
core.List<core.String> buildUnnamed6366() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6366(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.List<core.String> buildUnnamed6367() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6367(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.Map<core.String, api.SuggestedTextStyle> buildUnnamed6368() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed6368(core.Map<core.String, api.SuggestedTextStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTextStyle(o['x']! as api.SuggestedTextStyle);
checkSuggestedTextStyle(o['y']! as api.SuggestedTextStyle);
}
core.int buildCounterAutoText = 0;
api.AutoText buildAutoText() {
var o = api.AutoText();
buildCounterAutoText++;
if (buildCounterAutoText < 3) {
o.suggestedDeletionIds = buildUnnamed6366();
o.suggestedInsertionIds = buildUnnamed6367();
o.suggestedTextStyleChanges = buildUnnamed6368();
o.textStyle = buildTextStyle();
o.type = 'foo';
}
buildCounterAutoText--;
return o;
}
void checkAutoText(api.AutoText o) {
buildCounterAutoText++;
if (buildCounterAutoText < 3) {
checkUnnamed6366(o.suggestedDeletionIds!);
checkUnnamed6367(o.suggestedInsertionIds!);
checkUnnamed6368(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
unittest.expect(
o.type!,
unittest.equals('foo'),
);
}
buildCounterAutoText--;
}
core.int buildCounterBackground = 0;
api.Background buildBackground() {
var o = api.Background();
buildCounterBackground++;
if (buildCounterBackground < 3) {
o.color = buildOptionalColor();
}
buildCounterBackground--;
return o;
}
void checkBackground(api.Background o) {
buildCounterBackground++;
if (buildCounterBackground < 3) {
checkOptionalColor(o.color! as api.OptionalColor);
}
buildCounterBackground--;
}
core.int buildCounterBackgroundSuggestionState = 0;
api.BackgroundSuggestionState buildBackgroundSuggestionState() {
var o = api.BackgroundSuggestionState();
buildCounterBackgroundSuggestionState++;
if (buildCounterBackgroundSuggestionState < 3) {
o.backgroundColorSuggested = true;
}
buildCounterBackgroundSuggestionState--;
return o;
}
void checkBackgroundSuggestionState(api.BackgroundSuggestionState o) {
buildCounterBackgroundSuggestionState++;
if (buildCounterBackgroundSuggestionState < 3) {
unittest.expect(o.backgroundColorSuggested!, unittest.isTrue);
}
buildCounterBackgroundSuggestionState--;
}
core.List<api.Request> buildUnnamed6369() {
var o = <api.Request>[];
o.add(buildRequest());
o.add(buildRequest());
return o;
}
void checkUnnamed6369(core.List<api.Request> o) {
unittest.expect(o, unittest.hasLength(2));
checkRequest(o[0] as api.Request);
checkRequest(o[1] as api.Request);
}
core.int buildCounterBatchUpdateDocumentRequest = 0;
api.BatchUpdateDocumentRequest buildBatchUpdateDocumentRequest() {
var o = api.BatchUpdateDocumentRequest();
buildCounterBatchUpdateDocumentRequest++;
if (buildCounterBatchUpdateDocumentRequest < 3) {
o.requests = buildUnnamed6369();
o.writeControl = buildWriteControl();
}
buildCounterBatchUpdateDocumentRequest--;
return o;
}
void checkBatchUpdateDocumentRequest(api.BatchUpdateDocumentRequest o) {
buildCounterBatchUpdateDocumentRequest++;
if (buildCounterBatchUpdateDocumentRequest < 3) {
checkUnnamed6369(o.requests!);
checkWriteControl(o.writeControl! as api.WriteControl);
}
buildCounterBatchUpdateDocumentRequest--;
}
core.List<api.Response> buildUnnamed6370() {
var o = <api.Response>[];
o.add(buildResponse());
o.add(buildResponse());
return o;
}
void checkUnnamed6370(core.List<api.Response> o) {
unittest.expect(o, unittest.hasLength(2));
checkResponse(o[0] as api.Response);
checkResponse(o[1] as api.Response);
}
core.int buildCounterBatchUpdateDocumentResponse = 0;
api.BatchUpdateDocumentResponse buildBatchUpdateDocumentResponse() {
var o = api.BatchUpdateDocumentResponse();
buildCounterBatchUpdateDocumentResponse++;
if (buildCounterBatchUpdateDocumentResponse < 3) {
o.documentId = 'foo';
o.replies = buildUnnamed6370();
o.writeControl = buildWriteControl();
}
buildCounterBatchUpdateDocumentResponse--;
return o;
}
void checkBatchUpdateDocumentResponse(api.BatchUpdateDocumentResponse o) {
buildCounterBatchUpdateDocumentResponse++;
if (buildCounterBatchUpdateDocumentResponse < 3) {
unittest.expect(
o.documentId!,
unittest.equals('foo'),
);
checkUnnamed6370(o.replies!);
checkWriteControl(o.writeControl! as api.WriteControl);
}
buildCounterBatchUpdateDocumentResponse--;
}
core.List<api.StructuralElement> buildUnnamed6371() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed6371(core.List<api.StructuralElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkStructuralElement(o[0] as api.StructuralElement);
checkStructuralElement(o[1] as api.StructuralElement);
}
core.int buildCounterBody = 0;
api.Body buildBody() {
var o = api.Body();
buildCounterBody++;
if (buildCounterBody < 3) {
o.content = buildUnnamed6371();
}
buildCounterBody--;
return o;
}
void checkBody(api.Body o) {
buildCounterBody++;
if (buildCounterBody < 3) {
checkUnnamed6371(o.content!);
}
buildCounterBody--;
}
core.int buildCounterBullet = 0;
api.Bullet buildBullet() {
var o = api.Bullet();
buildCounterBullet++;
if (buildCounterBullet < 3) {
o.listId = 'foo';
o.nestingLevel = 42;
o.textStyle = buildTextStyle();
}
buildCounterBullet--;
return o;
}
void checkBullet(api.Bullet o) {
buildCounterBullet++;
if (buildCounterBullet < 3) {
unittest.expect(
o.listId!,
unittest.equals('foo'),
);
unittest.expect(
o.nestingLevel!,
unittest.equals(42),
);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterBullet--;
}
core.int buildCounterBulletSuggestionState = 0;
api.BulletSuggestionState buildBulletSuggestionState() {
var o = api.BulletSuggestionState();
buildCounterBulletSuggestionState++;
if (buildCounterBulletSuggestionState < 3) {
o.listIdSuggested = true;
o.nestingLevelSuggested = true;
o.textStyleSuggestionState = buildTextStyleSuggestionState();
}
buildCounterBulletSuggestionState--;
return o;
}
void checkBulletSuggestionState(api.BulletSuggestionState o) {
buildCounterBulletSuggestionState++;
if (buildCounterBulletSuggestionState < 3) {
unittest.expect(o.listIdSuggested!, unittest.isTrue);
unittest.expect(o.nestingLevelSuggested!, unittest.isTrue);
checkTextStyleSuggestionState(
o.textStyleSuggestionState! as api.TextStyleSuggestionState);
}
buildCounterBulletSuggestionState--;
}
core.int buildCounterColor = 0;
api.Color buildColor() {
var o = api.Color();
buildCounterColor++;
if (buildCounterColor < 3) {
o.rgbColor = buildRgbColor();
}
buildCounterColor--;
return o;
}
void checkColor(api.Color o) {
buildCounterColor++;
if (buildCounterColor < 3) {
checkRgbColor(o.rgbColor! as api.RgbColor);
}
buildCounterColor--;
}
core.List<core.String> buildUnnamed6372() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6372(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.List<core.String> buildUnnamed6373() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6373(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.Map<core.String, api.SuggestedTextStyle> buildUnnamed6374() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed6374(core.Map<core.String, api.SuggestedTextStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTextStyle(o['x']! as api.SuggestedTextStyle);
checkSuggestedTextStyle(o['y']! as api.SuggestedTextStyle);
}
core.int buildCounterColumnBreak = 0;
api.ColumnBreak buildColumnBreak() {
var o = api.ColumnBreak();
buildCounterColumnBreak++;
if (buildCounterColumnBreak < 3) {
o.suggestedDeletionIds = buildUnnamed6372();
o.suggestedInsertionIds = buildUnnamed6373();
o.suggestedTextStyleChanges = buildUnnamed6374();
o.textStyle = buildTextStyle();
}
buildCounterColumnBreak--;
return o;
}
void checkColumnBreak(api.ColumnBreak o) {
buildCounterColumnBreak++;
if (buildCounterColumnBreak < 3) {
checkUnnamed6372(o.suggestedDeletionIds!);
checkUnnamed6373(o.suggestedInsertionIds!);
checkUnnamed6374(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterColumnBreak--;
}
core.int buildCounterCreateFooterRequest = 0;
api.CreateFooterRequest buildCreateFooterRequest() {
var o = api.CreateFooterRequest();
buildCounterCreateFooterRequest++;
if (buildCounterCreateFooterRequest < 3) {
o.sectionBreakLocation = buildLocation();
o.type = 'foo';
}
buildCounterCreateFooterRequest--;
return o;
}
void checkCreateFooterRequest(api.CreateFooterRequest o) {
buildCounterCreateFooterRequest++;
if (buildCounterCreateFooterRequest < 3) {
checkLocation(o.sectionBreakLocation! as api.Location);
unittest.expect(
o.type!,
unittest.equals('foo'),
);
}
buildCounterCreateFooterRequest--;
}
core.int buildCounterCreateFooterResponse = 0;
api.CreateFooterResponse buildCreateFooterResponse() {
var o = api.CreateFooterResponse();
buildCounterCreateFooterResponse++;
if (buildCounterCreateFooterResponse < 3) {
o.footerId = 'foo';
}
buildCounterCreateFooterResponse--;
return o;
}
void checkCreateFooterResponse(api.CreateFooterResponse o) {
buildCounterCreateFooterResponse++;
if (buildCounterCreateFooterResponse < 3) {
unittest.expect(
o.footerId!,
unittest.equals('foo'),
);
}
buildCounterCreateFooterResponse--;
}
core.int buildCounterCreateFootnoteRequest = 0;
api.CreateFootnoteRequest buildCreateFootnoteRequest() {
var o = api.CreateFootnoteRequest();
buildCounterCreateFootnoteRequest++;
if (buildCounterCreateFootnoteRequest < 3) {
o.endOfSegmentLocation = buildEndOfSegmentLocation();
o.location = buildLocation();
}
buildCounterCreateFootnoteRequest--;
return o;
}
void checkCreateFootnoteRequest(api.CreateFootnoteRequest o) {
buildCounterCreateFootnoteRequest++;
if (buildCounterCreateFootnoteRequest < 3) {
checkEndOfSegmentLocation(
o.endOfSegmentLocation! as api.EndOfSegmentLocation);
checkLocation(o.location! as api.Location);
}
buildCounterCreateFootnoteRequest--;
}
core.int buildCounterCreateFootnoteResponse = 0;
api.CreateFootnoteResponse buildCreateFootnoteResponse() {
var o = api.CreateFootnoteResponse();
buildCounterCreateFootnoteResponse++;
if (buildCounterCreateFootnoteResponse < 3) {
o.footnoteId = 'foo';
}
buildCounterCreateFootnoteResponse--;
return o;
}
void checkCreateFootnoteResponse(api.CreateFootnoteResponse o) {
buildCounterCreateFootnoteResponse++;
if (buildCounterCreateFootnoteResponse < 3) {
unittest.expect(
o.footnoteId!,
unittest.equals('foo'),
);
}
buildCounterCreateFootnoteResponse--;
}
core.int buildCounterCreateHeaderRequest = 0;
api.CreateHeaderRequest buildCreateHeaderRequest() {
var o = api.CreateHeaderRequest();
buildCounterCreateHeaderRequest++;
if (buildCounterCreateHeaderRequest < 3) {
o.sectionBreakLocation = buildLocation();
o.type = 'foo';
}
buildCounterCreateHeaderRequest--;
return o;
}
void checkCreateHeaderRequest(api.CreateHeaderRequest o) {
buildCounterCreateHeaderRequest++;
if (buildCounterCreateHeaderRequest < 3) {
checkLocation(o.sectionBreakLocation! as api.Location);
unittest.expect(
o.type!,
unittest.equals('foo'),
);
}
buildCounterCreateHeaderRequest--;
}
core.int buildCounterCreateHeaderResponse = 0;
api.CreateHeaderResponse buildCreateHeaderResponse() {
var o = api.CreateHeaderResponse();
buildCounterCreateHeaderResponse++;
if (buildCounterCreateHeaderResponse < 3) {
o.headerId = 'foo';
}
buildCounterCreateHeaderResponse--;
return o;
}
void checkCreateHeaderResponse(api.CreateHeaderResponse o) {
buildCounterCreateHeaderResponse++;
if (buildCounterCreateHeaderResponse < 3) {
unittest.expect(
o.headerId!,
unittest.equals('foo'),
);
}
buildCounterCreateHeaderResponse--;
}
core.int buildCounterCreateNamedRangeRequest = 0;
api.CreateNamedRangeRequest buildCreateNamedRangeRequest() {
var o = api.CreateNamedRangeRequest();
buildCounterCreateNamedRangeRequest++;
if (buildCounterCreateNamedRangeRequest < 3) {
o.name = 'foo';
o.range = buildRange();
}
buildCounterCreateNamedRangeRequest--;
return o;
}
void checkCreateNamedRangeRequest(api.CreateNamedRangeRequest o) {
buildCounterCreateNamedRangeRequest++;
if (buildCounterCreateNamedRangeRequest < 3) {
unittest.expect(
o.name!,
unittest.equals('foo'),
);
checkRange(o.range! as api.Range);
}
buildCounterCreateNamedRangeRequest--;
}
core.int buildCounterCreateNamedRangeResponse = 0;
api.CreateNamedRangeResponse buildCreateNamedRangeResponse() {
var o = api.CreateNamedRangeResponse();
buildCounterCreateNamedRangeResponse++;
if (buildCounterCreateNamedRangeResponse < 3) {
o.namedRangeId = 'foo';
}
buildCounterCreateNamedRangeResponse--;
return o;
}
void checkCreateNamedRangeResponse(api.CreateNamedRangeResponse o) {
buildCounterCreateNamedRangeResponse++;
if (buildCounterCreateNamedRangeResponse < 3) {
unittest.expect(
o.namedRangeId!,
unittest.equals('foo'),
);
}
buildCounterCreateNamedRangeResponse--;
}
core.int buildCounterCreateParagraphBulletsRequest = 0;
api.CreateParagraphBulletsRequest buildCreateParagraphBulletsRequest() {
var o = api.CreateParagraphBulletsRequest();
buildCounterCreateParagraphBulletsRequest++;
if (buildCounterCreateParagraphBulletsRequest < 3) {
o.bulletPreset = 'foo';
o.range = buildRange();
}
buildCounterCreateParagraphBulletsRequest--;
return o;
}
void checkCreateParagraphBulletsRequest(api.CreateParagraphBulletsRequest o) {
buildCounterCreateParagraphBulletsRequest++;
if (buildCounterCreateParagraphBulletsRequest < 3) {
unittest.expect(
o.bulletPreset!,
unittest.equals('foo'),
);
checkRange(o.range! as api.Range);
}
buildCounterCreateParagraphBulletsRequest--;
}
core.int buildCounterCropProperties = 0;
api.CropProperties buildCropProperties() {
var o = api.CropProperties();
buildCounterCropProperties++;
if (buildCounterCropProperties < 3) {
o.angle = 42.0;
o.offsetBottom = 42.0;
o.offsetLeft = 42.0;
o.offsetRight = 42.0;
o.offsetTop = 42.0;
}
buildCounterCropProperties--;
return o;
}
void checkCropProperties(api.CropProperties o) {
buildCounterCropProperties++;
if (buildCounterCropProperties < 3) {
unittest.expect(
o.angle!,
unittest.equals(42.0),
);
unittest.expect(
o.offsetBottom!,
unittest.equals(42.0),
);
unittest.expect(
o.offsetLeft!,
unittest.equals(42.0),
);
unittest.expect(
o.offsetRight!,
unittest.equals(42.0),
);
unittest.expect(
o.offsetTop!,
unittest.equals(42.0),
);
}
buildCounterCropProperties--;
}
core.int buildCounterCropPropertiesSuggestionState = 0;
api.CropPropertiesSuggestionState buildCropPropertiesSuggestionState() {
var o = api.CropPropertiesSuggestionState();
buildCounterCropPropertiesSuggestionState++;
if (buildCounterCropPropertiesSuggestionState < 3) {
o.angleSuggested = true;
o.offsetBottomSuggested = true;
o.offsetLeftSuggested = true;
o.offsetRightSuggested = true;
o.offsetTopSuggested = true;
}
buildCounterCropPropertiesSuggestionState--;
return o;
}
void checkCropPropertiesSuggestionState(api.CropPropertiesSuggestionState o) {
buildCounterCropPropertiesSuggestionState++;
if (buildCounterCropPropertiesSuggestionState < 3) {
unittest.expect(o.angleSuggested!, unittest.isTrue);
unittest.expect(o.offsetBottomSuggested!, unittest.isTrue);
unittest.expect(o.offsetLeftSuggested!, unittest.isTrue);
unittest.expect(o.offsetRightSuggested!, unittest.isTrue);
unittest.expect(o.offsetTopSuggested!, unittest.isTrue);
}
buildCounterCropPropertiesSuggestionState--;
}
core.int buildCounterDeleteContentRangeRequest = 0;
api.DeleteContentRangeRequest buildDeleteContentRangeRequest() {
var o = api.DeleteContentRangeRequest();
buildCounterDeleteContentRangeRequest++;
if (buildCounterDeleteContentRangeRequest < 3) {
o.range = buildRange();
}
buildCounterDeleteContentRangeRequest--;
return o;
}
void checkDeleteContentRangeRequest(api.DeleteContentRangeRequest o) {
buildCounterDeleteContentRangeRequest++;
if (buildCounterDeleteContentRangeRequest < 3) {
checkRange(o.range! as api.Range);
}
buildCounterDeleteContentRangeRequest--;
}
core.int buildCounterDeleteFooterRequest = 0;
api.DeleteFooterRequest buildDeleteFooterRequest() {
var o = api.DeleteFooterRequest();
buildCounterDeleteFooterRequest++;
if (buildCounterDeleteFooterRequest < 3) {
o.footerId = 'foo';
}
buildCounterDeleteFooterRequest--;
return o;
}
void checkDeleteFooterRequest(api.DeleteFooterRequest o) {
buildCounterDeleteFooterRequest++;
if (buildCounterDeleteFooterRequest < 3) {
unittest.expect(
o.footerId!,
unittest.equals('foo'),
);
}
buildCounterDeleteFooterRequest--;
}
core.int buildCounterDeleteHeaderRequest = 0;
api.DeleteHeaderRequest buildDeleteHeaderRequest() {
var o = api.DeleteHeaderRequest();
buildCounterDeleteHeaderRequest++;
if (buildCounterDeleteHeaderRequest < 3) {
o.headerId = 'foo';
}
buildCounterDeleteHeaderRequest--;
return o;
}
void checkDeleteHeaderRequest(api.DeleteHeaderRequest o) {
buildCounterDeleteHeaderRequest++;
if (buildCounterDeleteHeaderRequest < 3) {
unittest.expect(
o.headerId!,
unittest.equals('foo'),
);
}
buildCounterDeleteHeaderRequest--;
}
core.int buildCounterDeleteNamedRangeRequest = 0;
api.DeleteNamedRangeRequest buildDeleteNamedRangeRequest() {
var o = api.DeleteNamedRangeRequest();
buildCounterDeleteNamedRangeRequest++;
if (buildCounterDeleteNamedRangeRequest < 3) {
o.name = 'foo';
o.namedRangeId = 'foo';
}
buildCounterDeleteNamedRangeRequest--;
return o;
}
void checkDeleteNamedRangeRequest(api.DeleteNamedRangeRequest o) {
buildCounterDeleteNamedRangeRequest++;
if (buildCounterDeleteNamedRangeRequest < 3) {
unittest.expect(
o.name!,
unittest.equals('foo'),
);
unittest.expect(
o.namedRangeId!,
unittest.equals('foo'),
);
}
buildCounterDeleteNamedRangeRequest--;
}
core.int buildCounterDeleteParagraphBulletsRequest = 0;
api.DeleteParagraphBulletsRequest buildDeleteParagraphBulletsRequest() {
var o = api.DeleteParagraphBulletsRequest();
buildCounterDeleteParagraphBulletsRequest++;
if (buildCounterDeleteParagraphBulletsRequest < 3) {
o.range = buildRange();
}
buildCounterDeleteParagraphBulletsRequest--;
return o;
}
void checkDeleteParagraphBulletsRequest(api.DeleteParagraphBulletsRequest o) {
buildCounterDeleteParagraphBulletsRequest++;
if (buildCounterDeleteParagraphBulletsRequest < 3) {
checkRange(o.range! as api.Range);
}
buildCounterDeleteParagraphBulletsRequest--;
}
core.int buildCounterDeletePositionedObjectRequest = 0;
api.DeletePositionedObjectRequest buildDeletePositionedObjectRequest() {
var o = api.DeletePositionedObjectRequest();
buildCounterDeletePositionedObjectRequest++;
if (buildCounterDeletePositionedObjectRequest < 3) {
o.objectId = 'foo';
}
buildCounterDeletePositionedObjectRequest--;
return o;
}
void checkDeletePositionedObjectRequest(api.DeletePositionedObjectRequest o) {
buildCounterDeletePositionedObjectRequest++;
if (buildCounterDeletePositionedObjectRequest < 3) {
unittest.expect(
o.objectId!,
unittest.equals('foo'),
);
}
buildCounterDeletePositionedObjectRequest--;
}
core.int buildCounterDeleteTableColumnRequest = 0;
api.DeleteTableColumnRequest buildDeleteTableColumnRequest() {
var o = api.DeleteTableColumnRequest();
buildCounterDeleteTableColumnRequest++;
if (buildCounterDeleteTableColumnRequest < 3) {
o.tableCellLocation = buildTableCellLocation();
}
buildCounterDeleteTableColumnRequest--;
return o;
}
void checkDeleteTableColumnRequest(api.DeleteTableColumnRequest o) {
buildCounterDeleteTableColumnRequest++;
if (buildCounterDeleteTableColumnRequest < 3) {
checkTableCellLocation(o.tableCellLocation! as api.TableCellLocation);
}
buildCounterDeleteTableColumnRequest--;
}
core.int buildCounterDeleteTableRowRequest = 0;
api.DeleteTableRowRequest buildDeleteTableRowRequest() {
var o = api.DeleteTableRowRequest();
buildCounterDeleteTableRowRequest++;
if (buildCounterDeleteTableRowRequest < 3) {
o.tableCellLocation = buildTableCellLocation();
}
buildCounterDeleteTableRowRequest--;
return o;
}
void checkDeleteTableRowRequest(api.DeleteTableRowRequest o) {
buildCounterDeleteTableRowRequest++;
if (buildCounterDeleteTableRowRequest < 3) {
checkTableCellLocation(o.tableCellLocation! as api.TableCellLocation);
}
buildCounterDeleteTableRowRequest--;
}
core.int buildCounterDimension = 0;
api.Dimension buildDimension() {
var o = api.Dimension();
buildCounterDimension++;
if (buildCounterDimension < 3) {
o.magnitude = 42.0;
o.unit = 'foo';
}
buildCounterDimension--;
return o;
}
void checkDimension(api.Dimension o) {
buildCounterDimension++;
if (buildCounterDimension < 3) {
unittest.expect(
o.magnitude!,
unittest.equals(42.0),
);
unittest.expect(
o.unit!,
unittest.equals('foo'),
);
}
buildCounterDimension--;
}
core.Map<core.String, api.Footer> buildUnnamed6375() {
var o = <core.String, api.Footer>{};
o['x'] = buildFooter();
o['y'] = buildFooter();
return o;
}
void checkUnnamed6375(core.Map<core.String, api.Footer> o) {
unittest.expect(o, unittest.hasLength(2));
checkFooter(o['x']! as api.Footer);
checkFooter(o['y']! as api.Footer);
}
core.Map<core.String, api.Footnote> buildUnnamed6376() {
var o = <core.String, api.Footnote>{};
o['x'] = buildFootnote();
o['y'] = buildFootnote();
return o;
}
void checkUnnamed6376(core.Map<core.String, api.Footnote> o) {
unittest.expect(o, unittest.hasLength(2));
checkFootnote(o['x']! as api.Footnote);
checkFootnote(o['y']! as api.Footnote);
}
core.Map<core.String, api.Header> buildUnnamed6377() {
var o = <core.String, api.Header>{};
o['x'] = buildHeader();
o['y'] = buildHeader();
return o;
}
void checkUnnamed6377(core.Map<core.String, api.Header> o) {
unittest.expect(o, unittest.hasLength(2));
checkHeader(o['x']! as api.Header);
checkHeader(o['y']! as api.Header);
}
core.Map<core.String, api.InlineObject> buildUnnamed6378() {
var o = <core.String, api.InlineObject>{};
o['x'] = buildInlineObject();
o['y'] = buildInlineObject();
return o;
}
void checkUnnamed6378(core.Map<core.String, api.InlineObject> o) {
unittest.expect(o, unittest.hasLength(2));
checkInlineObject(o['x']! as api.InlineObject);
checkInlineObject(o['y']! as api.InlineObject);
}
core.Map<core.String, api.List> buildUnnamed6379() {
var o = <core.String, api.List>{};
o['x'] = buildList();
o['y'] = buildList();
return o;
}
void checkUnnamed6379(core.Map<core.String, api.List> o) {
unittest.expect(o, unittest.hasLength(2));
checkList(o['x']! as api.List);
checkList(o['y']! as api.List);
}
core.Map<core.String, api.NamedRanges> buildUnnamed6380() {
var o = <core.String, api.NamedRanges>{};
o['x'] = buildNamedRanges();
o['y'] = buildNamedRanges();
return o;
}
void checkUnnamed6380(core.Map<core.String, api.NamedRanges> o) {
unittest.expect(o, unittest.hasLength(2));
checkNamedRanges(o['x']! as api.NamedRanges);
checkNamedRanges(o['y']! as api.NamedRanges);
}
core.Map<core.String, api.PositionedObject> buildUnnamed6381() {
var o = <core.String, api.PositionedObject>{};
o['x'] = buildPositionedObject();
o['y'] = buildPositionedObject();
return o;
}
void checkUnnamed6381(core.Map<core.String, api.PositionedObject> o) {
unittest.expect(o, unittest.hasLength(2));
checkPositionedObject(o['x']! as api.PositionedObject);
checkPositionedObject(o['y']! as api.PositionedObject);
}
core.Map<core.String, api.SuggestedDocumentStyle> buildUnnamed6382() {
var o = <core.String, api.SuggestedDocumentStyle>{};
o['x'] = buildSuggestedDocumentStyle();
o['y'] = buildSuggestedDocumentStyle();
return o;
}
void checkUnnamed6382(core.Map<core.String, api.SuggestedDocumentStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedDocumentStyle(o['x']! as api.SuggestedDocumentStyle);
checkSuggestedDocumentStyle(o['y']! as api.SuggestedDocumentStyle);
}
core.Map<core.String, api.SuggestedNamedStyles> buildUnnamed6383() {
var o = <core.String, api.SuggestedNamedStyles>{};
o['x'] = buildSuggestedNamedStyles();
o['y'] = buildSuggestedNamedStyles();
return o;
}
void checkUnnamed6383(core.Map<core.String, api.SuggestedNamedStyles> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedNamedStyles(o['x']! as api.SuggestedNamedStyles);
checkSuggestedNamedStyles(o['y']! as api.SuggestedNamedStyles);
}
core.int buildCounterDocument = 0;
api.Document buildDocument() {
var o = api.Document();
buildCounterDocument++;
if (buildCounterDocument < 3) {
o.body = buildBody();
o.documentId = 'foo';
o.documentStyle = buildDocumentStyle();
o.footers = buildUnnamed6375();
o.footnotes = buildUnnamed6376();
o.headers = buildUnnamed6377();
o.inlineObjects = buildUnnamed6378();
o.lists = buildUnnamed6379();
o.namedRanges = buildUnnamed6380();
o.namedStyles = buildNamedStyles();
o.positionedObjects = buildUnnamed6381();
o.revisionId = 'foo';
o.suggestedDocumentStyleChanges = buildUnnamed6382();
o.suggestedNamedStylesChanges = buildUnnamed6383();
o.suggestionsViewMode = 'foo';
o.title = 'foo';
}
buildCounterDocument--;
return o;
}
void checkDocument(api.Document o) {
buildCounterDocument++;
if (buildCounterDocument < 3) {
checkBody(o.body! as api.Body);
unittest.expect(
o.documentId!,
unittest.equals('foo'),
);
checkDocumentStyle(o.documentStyle! as api.DocumentStyle);
checkUnnamed6375(o.footers!);
checkUnnamed6376(o.footnotes!);
checkUnnamed6377(o.headers!);
checkUnnamed6378(o.inlineObjects!);
checkUnnamed6379(o.lists!);
checkUnnamed6380(o.namedRanges!);
checkNamedStyles(o.namedStyles! as api.NamedStyles);
checkUnnamed6381(o.positionedObjects!);
unittest.expect(
o.revisionId!,
unittest.equals('foo'),
);
checkUnnamed6382(o.suggestedDocumentStyleChanges!);
checkUnnamed6383(o.suggestedNamedStylesChanges!);
unittest.expect(
o.suggestionsViewMode!,
unittest.equals('foo'),
);
unittest.expect(
o.title!,
unittest.equals('foo'),
);
}
buildCounterDocument--;
}
core.int buildCounterDocumentStyle = 0;
api.DocumentStyle buildDocumentStyle() {
var o = api.DocumentStyle();
buildCounterDocumentStyle++;
if (buildCounterDocumentStyle < 3) {
o.background = buildBackground();
o.defaultFooterId = 'foo';
o.defaultHeaderId = 'foo';
o.evenPageFooterId = 'foo';
o.evenPageHeaderId = 'foo';
o.firstPageFooterId = 'foo';
o.firstPageHeaderId = 'foo';
o.marginBottom = buildDimension();
o.marginFooter = buildDimension();
o.marginHeader = buildDimension();
o.marginLeft = buildDimension();
o.marginRight = buildDimension();
o.marginTop = buildDimension();
o.pageNumberStart = 42;
o.pageSize = buildSize();
o.useCustomHeaderFooterMargins = true;
o.useEvenPageHeaderFooter = true;
o.useFirstPageHeaderFooter = true;
}
buildCounterDocumentStyle--;
return o;
}
void checkDocumentStyle(api.DocumentStyle o) {
buildCounterDocumentStyle++;
if (buildCounterDocumentStyle < 3) {
checkBackground(o.background! as api.Background);
unittest.expect(
o.defaultFooterId!,
unittest.equals('foo'),
);
unittest.expect(
o.defaultHeaderId!,
unittest.equals('foo'),
);
unittest.expect(
o.evenPageFooterId!,
unittest.equals('foo'),
);
unittest.expect(
o.evenPageHeaderId!,
unittest.equals('foo'),
);
unittest.expect(
o.firstPageFooterId!,
unittest.equals('foo'),
);
unittest.expect(
o.firstPageHeaderId!,
unittest.equals('foo'),
);
checkDimension(o.marginBottom! as api.Dimension);
checkDimension(o.marginFooter! as api.Dimension);
checkDimension(o.marginHeader! as api.Dimension);
checkDimension(o.marginLeft! as api.Dimension);
checkDimension(o.marginRight! as api.Dimension);
checkDimension(o.marginTop! as api.Dimension);
unittest.expect(
o.pageNumberStart!,
unittest.equals(42),
);
checkSize(o.pageSize! as api.Size);
unittest.expect(o.useCustomHeaderFooterMargins!, unittest.isTrue);
unittest.expect(o.useEvenPageHeaderFooter!, unittest.isTrue);
unittest.expect(o.useFirstPageHeaderFooter!, unittest.isTrue);
}
buildCounterDocumentStyle--;
}
core.int buildCounterDocumentStyleSuggestionState = 0;
api.DocumentStyleSuggestionState buildDocumentStyleSuggestionState() {
var o = api.DocumentStyleSuggestionState();
buildCounterDocumentStyleSuggestionState++;
if (buildCounterDocumentStyleSuggestionState < 3) {
o.backgroundSuggestionState = buildBackgroundSuggestionState();
o.defaultFooterIdSuggested = true;
o.defaultHeaderIdSuggested = true;
o.evenPageFooterIdSuggested = true;
o.evenPageHeaderIdSuggested = true;
o.firstPageFooterIdSuggested = true;
o.firstPageHeaderIdSuggested = true;
o.marginBottomSuggested = true;
o.marginFooterSuggested = true;
o.marginHeaderSuggested = true;
o.marginLeftSuggested = true;
o.marginRightSuggested = true;
o.marginTopSuggested = true;
o.pageNumberStartSuggested = true;
o.pageSizeSuggestionState = buildSizeSuggestionState();
o.useCustomHeaderFooterMarginsSuggested = true;
o.useEvenPageHeaderFooterSuggested = true;
o.useFirstPageHeaderFooterSuggested = true;
}
buildCounterDocumentStyleSuggestionState--;
return o;
}
void checkDocumentStyleSuggestionState(api.DocumentStyleSuggestionState o) {
buildCounterDocumentStyleSuggestionState++;
if (buildCounterDocumentStyleSuggestionState < 3) {
checkBackgroundSuggestionState(
o.backgroundSuggestionState! as api.BackgroundSuggestionState);
unittest.expect(o.defaultFooterIdSuggested!, unittest.isTrue);
unittest.expect(o.defaultHeaderIdSuggested!, unittest.isTrue);
unittest.expect(o.evenPageFooterIdSuggested!, unittest.isTrue);
unittest.expect(o.evenPageHeaderIdSuggested!, unittest.isTrue);
unittest.expect(o.firstPageFooterIdSuggested!, unittest.isTrue);
unittest.expect(o.firstPageHeaderIdSuggested!, unittest.isTrue);
unittest.expect(o.marginBottomSuggested!, unittest.isTrue);
unittest.expect(o.marginFooterSuggested!, unittest.isTrue);
unittest.expect(o.marginHeaderSuggested!, unittest.isTrue);
unittest.expect(o.marginLeftSuggested!, unittest.isTrue);
unittest.expect(o.marginRightSuggested!, unittest.isTrue);
unittest.expect(o.marginTopSuggested!, unittest.isTrue);
unittest.expect(o.pageNumberStartSuggested!, unittest.isTrue);
checkSizeSuggestionState(
o.pageSizeSuggestionState! as api.SizeSuggestionState);
unittest.expect(o.useCustomHeaderFooterMarginsSuggested!, unittest.isTrue);
unittest.expect(o.useEvenPageHeaderFooterSuggested!, unittest.isTrue);
unittest.expect(o.useFirstPageHeaderFooterSuggested!, unittest.isTrue);
}
buildCounterDocumentStyleSuggestionState--;
}
core.int buildCounterEmbeddedDrawingProperties = 0;
api.EmbeddedDrawingProperties buildEmbeddedDrawingProperties() {
var o = api.EmbeddedDrawingProperties();
buildCounterEmbeddedDrawingProperties++;
if (buildCounterEmbeddedDrawingProperties < 3) {}
buildCounterEmbeddedDrawingProperties--;
return o;
}
void checkEmbeddedDrawingProperties(api.EmbeddedDrawingProperties o) {
buildCounterEmbeddedDrawingProperties++;
if (buildCounterEmbeddedDrawingProperties < 3) {}
buildCounterEmbeddedDrawingProperties--;
}
core.int buildCounterEmbeddedDrawingPropertiesSuggestionState = 0;
api.EmbeddedDrawingPropertiesSuggestionState
buildEmbeddedDrawingPropertiesSuggestionState() {
var o = api.EmbeddedDrawingPropertiesSuggestionState();
buildCounterEmbeddedDrawingPropertiesSuggestionState++;
if (buildCounterEmbeddedDrawingPropertiesSuggestionState < 3) {}
buildCounterEmbeddedDrawingPropertiesSuggestionState--;
return o;
}
void checkEmbeddedDrawingPropertiesSuggestionState(
api.EmbeddedDrawingPropertiesSuggestionState o) {
buildCounterEmbeddedDrawingPropertiesSuggestionState++;
if (buildCounterEmbeddedDrawingPropertiesSuggestionState < 3) {}
buildCounterEmbeddedDrawingPropertiesSuggestionState--;
}
core.int buildCounterEmbeddedObject = 0;
api.EmbeddedObject buildEmbeddedObject() {
var o = api.EmbeddedObject();
buildCounterEmbeddedObject++;
if (buildCounterEmbeddedObject < 3) {
o.description = 'foo';
o.embeddedDrawingProperties = buildEmbeddedDrawingProperties();
o.embeddedObjectBorder = buildEmbeddedObjectBorder();
o.imageProperties = buildImageProperties();
o.linkedContentReference = buildLinkedContentReference();
o.marginBottom = buildDimension();
o.marginLeft = buildDimension();
o.marginRight = buildDimension();
o.marginTop = buildDimension();
o.size = buildSize();
o.title = 'foo';
}
buildCounterEmbeddedObject--;
return o;
}
void checkEmbeddedObject(api.EmbeddedObject o) {
buildCounterEmbeddedObject++;
if (buildCounterEmbeddedObject < 3) {
unittest.expect(
o.description!,
unittest.equals('foo'),
);
checkEmbeddedDrawingProperties(
o.embeddedDrawingProperties! as api.EmbeddedDrawingProperties);
checkEmbeddedObjectBorder(
o.embeddedObjectBorder! as api.EmbeddedObjectBorder);
checkImageProperties(o.imageProperties! as api.ImageProperties);
checkLinkedContentReference(
o.linkedContentReference! as api.LinkedContentReference);
checkDimension(o.marginBottom! as api.Dimension);
checkDimension(o.marginLeft! as api.Dimension);
checkDimension(o.marginRight! as api.Dimension);
checkDimension(o.marginTop! as api.Dimension);
checkSize(o.size! as api.Size);
unittest.expect(
o.title!,
unittest.equals('foo'),
);
}
buildCounterEmbeddedObject--;
}
core.int buildCounterEmbeddedObjectBorder = 0;
api.EmbeddedObjectBorder buildEmbeddedObjectBorder() {
var o = api.EmbeddedObjectBorder();
buildCounterEmbeddedObjectBorder++;
if (buildCounterEmbeddedObjectBorder < 3) {
o.color = buildOptionalColor();
o.dashStyle = 'foo';
o.propertyState = 'foo';
o.width = buildDimension();
}
buildCounterEmbeddedObjectBorder--;
return o;
}
void checkEmbeddedObjectBorder(api.EmbeddedObjectBorder o) {
buildCounterEmbeddedObjectBorder++;
if (buildCounterEmbeddedObjectBorder < 3) {
checkOptionalColor(o.color! as api.OptionalColor);
unittest.expect(
o.dashStyle!,
unittest.equals('foo'),
);
unittest.expect(
o.propertyState!,
unittest.equals('foo'),
);
checkDimension(o.width! as api.Dimension);
}
buildCounterEmbeddedObjectBorder--;
}
core.int buildCounterEmbeddedObjectBorderSuggestionState = 0;
api.EmbeddedObjectBorderSuggestionState
buildEmbeddedObjectBorderSuggestionState() {
var o = api.EmbeddedObjectBorderSuggestionState();
buildCounterEmbeddedObjectBorderSuggestionState++;
if (buildCounterEmbeddedObjectBorderSuggestionState < 3) {
o.colorSuggested = true;
o.dashStyleSuggested = true;
o.propertyStateSuggested = true;
o.widthSuggested = true;
}
buildCounterEmbeddedObjectBorderSuggestionState--;
return o;
}
void checkEmbeddedObjectBorderSuggestionState(
api.EmbeddedObjectBorderSuggestionState o) {
buildCounterEmbeddedObjectBorderSuggestionState++;
if (buildCounterEmbeddedObjectBorderSuggestionState < 3) {
unittest.expect(o.colorSuggested!, unittest.isTrue);
unittest.expect(o.dashStyleSuggested!, unittest.isTrue);
unittest.expect(o.propertyStateSuggested!, unittest.isTrue);
unittest.expect(o.widthSuggested!, unittest.isTrue);
}
buildCounterEmbeddedObjectBorderSuggestionState--;
}
core.int buildCounterEmbeddedObjectSuggestionState = 0;
api.EmbeddedObjectSuggestionState buildEmbeddedObjectSuggestionState() {
var o = api.EmbeddedObjectSuggestionState();
buildCounterEmbeddedObjectSuggestionState++;
if (buildCounterEmbeddedObjectSuggestionState < 3) {
o.descriptionSuggested = true;
o.embeddedDrawingPropertiesSuggestionState =
buildEmbeddedDrawingPropertiesSuggestionState();
o.embeddedObjectBorderSuggestionState =
buildEmbeddedObjectBorderSuggestionState();
o.imagePropertiesSuggestionState = buildImagePropertiesSuggestionState();
o.linkedContentReferenceSuggestionState =
buildLinkedContentReferenceSuggestionState();
o.marginBottomSuggested = true;
o.marginLeftSuggested = true;
o.marginRightSuggested = true;
o.marginTopSuggested = true;
o.sizeSuggestionState = buildSizeSuggestionState();
o.titleSuggested = true;
}
buildCounterEmbeddedObjectSuggestionState--;
return o;
}
void checkEmbeddedObjectSuggestionState(api.EmbeddedObjectSuggestionState o) {
buildCounterEmbeddedObjectSuggestionState++;
if (buildCounterEmbeddedObjectSuggestionState < 3) {
unittest.expect(o.descriptionSuggested!, unittest.isTrue);
checkEmbeddedDrawingPropertiesSuggestionState(
o.embeddedDrawingPropertiesSuggestionState!
as api.EmbeddedDrawingPropertiesSuggestionState);
checkEmbeddedObjectBorderSuggestionState(
o.embeddedObjectBorderSuggestionState!
as api.EmbeddedObjectBorderSuggestionState);
checkImagePropertiesSuggestionState(o.imagePropertiesSuggestionState!
as api.ImagePropertiesSuggestionState);
checkLinkedContentReferenceSuggestionState(
o.linkedContentReferenceSuggestionState!
as api.LinkedContentReferenceSuggestionState);
unittest.expect(o.marginBottomSuggested!, unittest.isTrue);
unittest.expect(o.marginLeftSuggested!, unittest.isTrue);
unittest.expect(o.marginRightSuggested!, unittest.isTrue);
unittest.expect(o.marginTopSuggested!, unittest.isTrue);
checkSizeSuggestionState(o.sizeSuggestionState! as api.SizeSuggestionState);
unittest.expect(o.titleSuggested!, unittest.isTrue);
}
buildCounterEmbeddedObjectSuggestionState--;
}
core.int buildCounterEndOfSegmentLocation = 0;
api.EndOfSegmentLocation buildEndOfSegmentLocation() {
var o = api.EndOfSegmentLocation();
buildCounterEndOfSegmentLocation++;
if (buildCounterEndOfSegmentLocation < 3) {
o.segmentId = 'foo';
}
buildCounterEndOfSegmentLocation--;
return o;
}
void checkEndOfSegmentLocation(api.EndOfSegmentLocation o) {
buildCounterEndOfSegmentLocation++;
if (buildCounterEndOfSegmentLocation < 3) {
unittest.expect(
o.segmentId!,
unittest.equals('foo'),
);
}
buildCounterEndOfSegmentLocation--;
}
core.List<core.String> buildUnnamed6384() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6384(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.List<core.String> buildUnnamed6385() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6385(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 buildCounterEquation = 0;
api.Equation buildEquation() {
var o = api.Equation();
buildCounterEquation++;
if (buildCounterEquation < 3) {
o.suggestedDeletionIds = buildUnnamed6384();
o.suggestedInsertionIds = buildUnnamed6385();
}
buildCounterEquation--;
return o;
}
void checkEquation(api.Equation o) {
buildCounterEquation++;
if (buildCounterEquation < 3) {
checkUnnamed6384(o.suggestedDeletionIds!);
checkUnnamed6385(o.suggestedInsertionIds!);
}
buildCounterEquation--;
}
core.List<api.StructuralElement> buildUnnamed6386() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed6386(core.List<api.StructuralElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkStructuralElement(o[0] as api.StructuralElement);
checkStructuralElement(o[1] as api.StructuralElement);
}
core.int buildCounterFooter = 0;
api.Footer buildFooter() {
var o = api.Footer();
buildCounterFooter++;
if (buildCounterFooter < 3) {
o.content = buildUnnamed6386();
o.footerId = 'foo';
}
buildCounterFooter--;
return o;
}
void checkFooter(api.Footer o) {
buildCounterFooter++;
if (buildCounterFooter < 3) {
checkUnnamed6386(o.content!);
unittest.expect(
o.footerId!,
unittest.equals('foo'),
);
}
buildCounterFooter--;
}
core.List<api.StructuralElement> buildUnnamed6387() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed6387(core.List<api.StructuralElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkStructuralElement(o[0] as api.StructuralElement);
checkStructuralElement(o[1] as api.StructuralElement);
}
core.int buildCounterFootnote = 0;
api.Footnote buildFootnote() {
var o = api.Footnote();
buildCounterFootnote++;
if (buildCounterFootnote < 3) {
o.content = buildUnnamed6387();
o.footnoteId = 'foo';
}
buildCounterFootnote--;
return o;
}
void checkFootnote(api.Footnote o) {
buildCounterFootnote++;
if (buildCounterFootnote < 3) {
checkUnnamed6387(o.content!);
unittest.expect(
o.footnoteId!,
unittest.equals('foo'),
);
}
buildCounterFootnote--;
}
core.List<core.String> buildUnnamed6388() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6388(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.List<core.String> buildUnnamed6389() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6389(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.Map<core.String, api.SuggestedTextStyle> buildUnnamed6390() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed6390(core.Map<core.String, api.SuggestedTextStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTextStyle(o['x']! as api.SuggestedTextStyle);
checkSuggestedTextStyle(o['y']! as api.SuggestedTextStyle);
}
core.int buildCounterFootnoteReference = 0;
api.FootnoteReference buildFootnoteReference() {
var o = api.FootnoteReference();
buildCounterFootnoteReference++;
if (buildCounterFootnoteReference < 3) {
o.footnoteId = 'foo';
o.footnoteNumber = 'foo';
o.suggestedDeletionIds = buildUnnamed6388();
o.suggestedInsertionIds = buildUnnamed6389();
o.suggestedTextStyleChanges = buildUnnamed6390();
o.textStyle = buildTextStyle();
}
buildCounterFootnoteReference--;
return o;
}
void checkFootnoteReference(api.FootnoteReference o) {
buildCounterFootnoteReference++;
if (buildCounterFootnoteReference < 3) {
unittest.expect(
o.footnoteId!,
unittest.equals('foo'),
);
unittest.expect(
o.footnoteNumber!,
unittest.equals('foo'),
);
checkUnnamed6388(o.suggestedDeletionIds!);
checkUnnamed6389(o.suggestedInsertionIds!);
checkUnnamed6390(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterFootnoteReference--;
}
core.List<api.StructuralElement> buildUnnamed6391() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed6391(core.List<api.StructuralElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkStructuralElement(o[0] as api.StructuralElement);
checkStructuralElement(o[1] as api.StructuralElement);
}
core.int buildCounterHeader = 0;
api.Header buildHeader() {
var o = api.Header();
buildCounterHeader++;
if (buildCounterHeader < 3) {
o.content = buildUnnamed6391();
o.headerId = 'foo';
}
buildCounterHeader--;
return o;
}
void checkHeader(api.Header o) {
buildCounterHeader++;
if (buildCounterHeader < 3) {
checkUnnamed6391(o.content!);
unittest.expect(
o.headerId!,
unittest.equals('foo'),
);
}
buildCounterHeader--;
}
core.List<core.String> buildUnnamed6392() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6392(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.List<core.String> buildUnnamed6393() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6393(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.Map<core.String, api.SuggestedTextStyle> buildUnnamed6394() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed6394(core.Map<core.String, api.SuggestedTextStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTextStyle(o['x']! as api.SuggestedTextStyle);
checkSuggestedTextStyle(o['y']! as api.SuggestedTextStyle);
}
core.int buildCounterHorizontalRule = 0;
api.HorizontalRule buildHorizontalRule() {
var o = api.HorizontalRule();
buildCounterHorizontalRule++;
if (buildCounterHorizontalRule < 3) {
o.suggestedDeletionIds = buildUnnamed6392();
o.suggestedInsertionIds = buildUnnamed6393();
o.suggestedTextStyleChanges = buildUnnamed6394();
o.textStyle = buildTextStyle();
}
buildCounterHorizontalRule--;
return o;
}
void checkHorizontalRule(api.HorizontalRule o) {
buildCounterHorizontalRule++;
if (buildCounterHorizontalRule < 3) {
checkUnnamed6392(o.suggestedDeletionIds!);
checkUnnamed6393(o.suggestedInsertionIds!);
checkUnnamed6394(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterHorizontalRule--;
}
core.int buildCounterImageProperties = 0;
api.ImageProperties buildImageProperties() {
var o = api.ImageProperties();
buildCounterImageProperties++;
if (buildCounterImageProperties < 3) {
o.angle = 42.0;
o.brightness = 42.0;
o.contentUri = 'foo';
o.contrast = 42.0;
o.cropProperties = buildCropProperties();
o.sourceUri = 'foo';
o.transparency = 42.0;
}
buildCounterImageProperties--;
return o;
}
void checkImageProperties(api.ImageProperties o) {
buildCounterImageProperties++;
if (buildCounterImageProperties < 3) {
unittest.expect(
o.angle!,
unittest.equals(42.0),
);
unittest.expect(
o.brightness!,
unittest.equals(42.0),
);
unittest.expect(
o.contentUri!,
unittest.equals('foo'),
);
unittest.expect(
o.contrast!,
unittest.equals(42.0),
);
checkCropProperties(o.cropProperties! as api.CropProperties);
unittest.expect(
o.sourceUri!,
unittest.equals('foo'),
);
unittest.expect(
o.transparency!,
unittest.equals(42.0),
);
}
buildCounterImageProperties--;
}
core.int buildCounterImagePropertiesSuggestionState = 0;
api.ImagePropertiesSuggestionState buildImagePropertiesSuggestionState() {
var o = api.ImagePropertiesSuggestionState();
buildCounterImagePropertiesSuggestionState++;
if (buildCounterImagePropertiesSuggestionState < 3) {
o.angleSuggested = true;
o.brightnessSuggested = true;
o.contentUriSuggested = true;
o.contrastSuggested = true;
o.cropPropertiesSuggestionState = buildCropPropertiesSuggestionState();
o.sourceUriSuggested = true;
o.transparencySuggested = true;
}
buildCounterImagePropertiesSuggestionState--;
return o;
}
void checkImagePropertiesSuggestionState(api.ImagePropertiesSuggestionState o) {
buildCounterImagePropertiesSuggestionState++;
if (buildCounterImagePropertiesSuggestionState < 3) {
unittest.expect(o.angleSuggested!, unittest.isTrue);
unittest.expect(o.brightnessSuggested!, unittest.isTrue);
unittest.expect(o.contentUriSuggested!, unittest.isTrue);
unittest.expect(o.contrastSuggested!, unittest.isTrue);
checkCropPropertiesSuggestionState(
o.cropPropertiesSuggestionState! as api.CropPropertiesSuggestionState);
unittest.expect(o.sourceUriSuggested!, unittest.isTrue);
unittest.expect(o.transparencySuggested!, unittest.isTrue);
}
buildCounterImagePropertiesSuggestionState--;
}
core.List<core.String> buildUnnamed6395() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6395(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.Map<core.String, api.SuggestedInlineObjectProperties> buildUnnamed6396() {
var o = <core.String, api.SuggestedInlineObjectProperties>{};
o['x'] = buildSuggestedInlineObjectProperties();
o['y'] = buildSuggestedInlineObjectProperties();
return o;
}
void checkUnnamed6396(
core.Map<core.String, api.SuggestedInlineObjectProperties> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedInlineObjectProperties(
o['x']! as api.SuggestedInlineObjectProperties);
checkSuggestedInlineObjectProperties(
o['y']! as api.SuggestedInlineObjectProperties);
}
core.int buildCounterInlineObject = 0;
api.InlineObject buildInlineObject() {
var o = api.InlineObject();
buildCounterInlineObject++;
if (buildCounterInlineObject < 3) {
o.inlineObjectProperties = buildInlineObjectProperties();
o.objectId = 'foo';
o.suggestedDeletionIds = buildUnnamed6395();
o.suggestedInlineObjectPropertiesChanges = buildUnnamed6396();
o.suggestedInsertionId = 'foo';
}
buildCounterInlineObject--;
return o;
}
void checkInlineObject(api.InlineObject o) {
buildCounterInlineObject++;
if (buildCounterInlineObject < 3) {
checkInlineObjectProperties(
o.inlineObjectProperties! as api.InlineObjectProperties);
unittest.expect(
o.objectId!,
unittest.equals('foo'),
);
checkUnnamed6395(o.suggestedDeletionIds!);
checkUnnamed6396(o.suggestedInlineObjectPropertiesChanges!);
unittest.expect(
o.suggestedInsertionId!,
unittest.equals('foo'),
);
}
buildCounterInlineObject--;
}
core.List<core.String> buildUnnamed6397() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6397(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.List<core.String> buildUnnamed6398() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6398(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.Map<core.String, api.SuggestedTextStyle> buildUnnamed6399() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed6399(core.Map<core.String, api.SuggestedTextStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTextStyle(o['x']! as api.SuggestedTextStyle);
checkSuggestedTextStyle(o['y']! as api.SuggestedTextStyle);
}
core.int buildCounterInlineObjectElement = 0;
api.InlineObjectElement buildInlineObjectElement() {
var o = api.InlineObjectElement();
buildCounterInlineObjectElement++;
if (buildCounterInlineObjectElement < 3) {
o.inlineObjectId = 'foo';
o.suggestedDeletionIds = buildUnnamed6397();
o.suggestedInsertionIds = buildUnnamed6398();
o.suggestedTextStyleChanges = buildUnnamed6399();
o.textStyle = buildTextStyle();
}
buildCounterInlineObjectElement--;
return o;
}
void checkInlineObjectElement(api.InlineObjectElement o) {
buildCounterInlineObjectElement++;
if (buildCounterInlineObjectElement < 3) {
unittest.expect(
o.inlineObjectId!,
unittest.equals('foo'),
);
checkUnnamed6397(o.suggestedDeletionIds!);
checkUnnamed6398(o.suggestedInsertionIds!);
checkUnnamed6399(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterInlineObjectElement--;
}
core.int buildCounterInlineObjectProperties = 0;
api.InlineObjectProperties buildInlineObjectProperties() {
var o = api.InlineObjectProperties();
buildCounterInlineObjectProperties++;
if (buildCounterInlineObjectProperties < 3) {
o.embeddedObject = buildEmbeddedObject();
}
buildCounterInlineObjectProperties--;
return o;
}
void checkInlineObjectProperties(api.InlineObjectProperties o) {
buildCounterInlineObjectProperties++;
if (buildCounterInlineObjectProperties < 3) {
checkEmbeddedObject(o.embeddedObject! as api.EmbeddedObject);
}
buildCounterInlineObjectProperties--;
}
core.int buildCounterInlineObjectPropertiesSuggestionState = 0;
api.InlineObjectPropertiesSuggestionState
buildInlineObjectPropertiesSuggestionState() {
var o = api.InlineObjectPropertiesSuggestionState();
buildCounterInlineObjectPropertiesSuggestionState++;
if (buildCounterInlineObjectPropertiesSuggestionState < 3) {
o.embeddedObjectSuggestionState = buildEmbeddedObjectSuggestionState();
}
buildCounterInlineObjectPropertiesSuggestionState--;
return o;
}
void checkInlineObjectPropertiesSuggestionState(
api.InlineObjectPropertiesSuggestionState o) {
buildCounterInlineObjectPropertiesSuggestionState++;
if (buildCounterInlineObjectPropertiesSuggestionState < 3) {
checkEmbeddedObjectSuggestionState(
o.embeddedObjectSuggestionState! as api.EmbeddedObjectSuggestionState);
}
buildCounterInlineObjectPropertiesSuggestionState--;
}
core.int buildCounterInsertInlineImageRequest = 0;
api.InsertInlineImageRequest buildInsertInlineImageRequest() {
var o = api.InsertInlineImageRequest();
buildCounterInsertInlineImageRequest++;
if (buildCounterInsertInlineImageRequest < 3) {
o.endOfSegmentLocation = buildEndOfSegmentLocation();
o.location = buildLocation();
o.objectSize = buildSize();
o.uri = 'foo';
}
buildCounterInsertInlineImageRequest--;
return o;
}
void checkInsertInlineImageRequest(api.InsertInlineImageRequest o) {
buildCounterInsertInlineImageRequest++;
if (buildCounterInsertInlineImageRequest < 3) {
checkEndOfSegmentLocation(
o.endOfSegmentLocation! as api.EndOfSegmentLocation);
checkLocation(o.location! as api.Location);
checkSize(o.objectSize! as api.Size);
unittest.expect(
o.uri!,
unittest.equals('foo'),
);
}
buildCounterInsertInlineImageRequest--;
}
core.int buildCounterInsertInlineImageResponse = 0;
api.InsertInlineImageResponse buildInsertInlineImageResponse() {
var o = api.InsertInlineImageResponse();
buildCounterInsertInlineImageResponse++;
if (buildCounterInsertInlineImageResponse < 3) {
o.objectId = 'foo';
}
buildCounterInsertInlineImageResponse--;
return o;
}
void checkInsertInlineImageResponse(api.InsertInlineImageResponse o) {
buildCounterInsertInlineImageResponse++;
if (buildCounterInsertInlineImageResponse < 3) {
unittest.expect(
o.objectId!,
unittest.equals('foo'),
);
}
buildCounterInsertInlineImageResponse--;
}
core.int buildCounterInsertInlineSheetsChartResponse = 0;
api.InsertInlineSheetsChartResponse buildInsertInlineSheetsChartResponse() {
var o = api.InsertInlineSheetsChartResponse();
buildCounterInsertInlineSheetsChartResponse++;
if (buildCounterInsertInlineSheetsChartResponse < 3) {
o.objectId = 'foo';
}
buildCounterInsertInlineSheetsChartResponse--;
return o;
}
void checkInsertInlineSheetsChartResponse(
api.InsertInlineSheetsChartResponse o) {
buildCounterInsertInlineSheetsChartResponse++;
if (buildCounterInsertInlineSheetsChartResponse < 3) {
unittest.expect(
o.objectId!,
unittest.equals('foo'),
);
}
buildCounterInsertInlineSheetsChartResponse--;
}
core.int buildCounterInsertPageBreakRequest = 0;
api.InsertPageBreakRequest buildInsertPageBreakRequest() {
var o = api.InsertPageBreakRequest();
buildCounterInsertPageBreakRequest++;
if (buildCounterInsertPageBreakRequest < 3) {
o.endOfSegmentLocation = buildEndOfSegmentLocation();
o.location = buildLocation();
}
buildCounterInsertPageBreakRequest--;
return o;
}
void checkInsertPageBreakRequest(api.InsertPageBreakRequest o) {
buildCounterInsertPageBreakRequest++;
if (buildCounterInsertPageBreakRequest < 3) {
checkEndOfSegmentLocation(
o.endOfSegmentLocation! as api.EndOfSegmentLocation);
checkLocation(o.location! as api.Location);
}
buildCounterInsertPageBreakRequest--;
}
core.int buildCounterInsertSectionBreakRequest = 0;
api.InsertSectionBreakRequest buildInsertSectionBreakRequest() {
var o = api.InsertSectionBreakRequest();
buildCounterInsertSectionBreakRequest++;
if (buildCounterInsertSectionBreakRequest < 3) {
o.endOfSegmentLocation = buildEndOfSegmentLocation();
o.location = buildLocation();
o.sectionType = 'foo';
}
buildCounterInsertSectionBreakRequest--;
return o;
}
void checkInsertSectionBreakRequest(api.InsertSectionBreakRequest o) {
buildCounterInsertSectionBreakRequest++;
if (buildCounterInsertSectionBreakRequest < 3) {
checkEndOfSegmentLocation(
o.endOfSegmentLocation! as api.EndOfSegmentLocation);
checkLocation(o.location! as api.Location);
unittest.expect(
o.sectionType!,
unittest.equals('foo'),
);
}
buildCounterInsertSectionBreakRequest--;
}
core.int buildCounterInsertTableColumnRequest = 0;
api.InsertTableColumnRequest buildInsertTableColumnRequest() {
var o = api.InsertTableColumnRequest();
buildCounterInsertTableColumnRequest++;
if (buildCounterInsertTableColumnRequest < 3) {
o.insertRight = true;
o.tableCellLocation = buildTableCellLocation();
}
buildCounterInsertTableColumnRequest--;
return o;
}
void checkInsertTableColumnRequest(api.InsertTableColumnRequest o) {
buildCounterInsertTableColumnRequest++;
if (buildCounterInsertTableColumnRequest < 3) {
unittest.expect(o.insertRight!, unittest.isTrue);
checkTableCellLocation(o.tableCellLocation! as api.TableCellLocation);
}
buildCounterInsertTableColumnRequest--;
}
core.int buildCounterInsertTableRequest = 0;
api.InsertTableRequest buildInsertTableRequest() {
var o = api.InsertTableRequest();
buildCounterInsertTableRequest++;
if (buildCounterInsertTableRequest < 3) {
o.columns = 42;
o.endOfSegmentLocation = buildEndOfSegmentLocation();
o.location = buildLocation();
o.rows = 42;
}
buildCounterInsertTableRequest--;
return o;
}
void checkInsertTableRequest(api.InsertTableRequest o) {
buildCounterInsertTableRequest++;
if (buildCounterInsertTableRequest < 3) {
unittest.expect(
o.columns!,
unittest.equals(42),
);
checkEndOfSegmentLocation(
o.endOfSegmentLocation! as api.EndOfSegmentLocation);
checkLocation(o.location! as api.Location);
unittest.expect(
o.rows!,
unittest.equals(42),
);
}
buildCounterInsertTableRequest--;
}
core.int buildCounterInsertTableRowRequest = 0;
api.InsertTableRowRequest buildInsertTableRowRequest() {
var o = api.InsertTableRowRequest();
buildCounterInsertTableRowRequest++;
if (buildCounterInsertTableRowRequest < 3) {
o.insertBelow = true;
o.tableCellLocation = buildTableCellLocation();
}
buildCounterInsertTableRowRequest--;
return o;
}
void checkInsertTableRowRequest(api.InsertTableRowRequest o) {
buildCounterInsertTableRowRequest++;
if (buildCounterInsertTableRowRequest < 3) {
unittest.expect(o.insertBelow!, unittest.isTrue);
checkTableCellLocation(o.tableCellLocation! as api.TableCellLocation);
}
buildCounterInsertTableRowRequest--;
}
core.int buildCounterInsertTextRequest = 0;
api.InsertTextRequest buildInsertTextRequest() {
var o = api.InsertTextRequest();
buildCounterInsertTextRequest++;
if (buildCounterInsertTextRequest < 3) {
o.endOfSegmentLocation = buildEndOfSegmentLocation();
o.location = buildLocation();
o.text = 'foo';
}
buildCounterInsertTextRequest--;
return o;
}
void checkInsertTextRequest(api.InsertTextRequest o) {
buildCounterInsertTextRequest++;
if (buildCounterInsertTextRequest < 3) {
checkEndOfSegmentLocation(
o.endOfSegmentLocation! as api.EndOfSegmentLocation);
checkLocation(o.location! as api.Location);
unittest.expect(
o.text!,
unittest.equals('foo'),
);
}
buildCounterInsertTextRequest--;
}
core.int buildCounterLink = 0;
api.Link buildLink() {
var o = api.Link();
buildCounterLink++;
if (buildCounterLink < 3) {
o.bookmarkId = 'foo';
o.headingId = 'foo';
o.url = 'foo';
}
buildCounterLink--;
return o;
}
void checkLink(api.Link o) {
buildCounterLink++;
if (buildCounterLink < 3) {
unittest.expect(
o.bookmarkId!,
unittest.equals('foo'),
);
unittest.expect(
o.headingId!,
unittest.equals('foo'),
);
unittest.expect(
o.url!,
unittest.equals('foo'),
);
}
buildCounterLink--;
}
core.int buildCounterLinkedContentReference = 0;
api.LinkedContentReference buildLinkedContentReference() {
var o = api.LinkedContentReference();
buildCounterLinkedContentReference++;
if (buildCounterLinkedContentReference < 3) {
o.sheetsChartReference = buildSheetsChartReference();
}
buildCounterLinkedContentReference--;
return o;
}
void checkLinkedContentReference(api.LinkedContentReference o) {
buildCounterLinkedContentReference++;
if (buildCounterLinkedContentReference < 3) {
checkSheetsChartReference(
o.sheetsChartReference! as api.SheetsChartReference);
}
buildCounterLinkedContentReference--;
}
core.int buildCounterLinkedContentReferenceSuggestionState = 0;
api.LinkedContentReferenceSuggestionState
buildLinkedContentReferenceSuggestionState() {
var o = api.LinkedContentReferenceSuggestionState();
buildCounterLinkedContentReferenceSuggestionState++;
if (buildCounterLinkedContentReferenceSuggestionState < 3) {
o.sheetsChartReferenceSuggestionState =
buildSheetsChartReferenceSuggestionState();
}
buildCounterLinkedContentReferenceSuggestionState--;
return o;
}
void checkLinkedContentReferenceSuggestionState(
api.LinkedContentReferenceSuggestionState o) {
buildCounterLinkedContentReferenceSuggestionState++;
if (buildCounterLinkedContentReferenceSuggestionState < 3) {
checkSheetsChartReferenceSuggestionState(
o.sheetsChartReferenceSuggestionState!
as api.SheetsChartReferenceSuggestionState);
}
buildCounterLinkedContentReferenceSuggestionState--;
}
core.List<core.String> buildUnnamed6400() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6400(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.Map<core.String, api.SuggestedListProperties> buildUnnamed6401() {
var o = <core.String, api.SuggestedListProperties>{};
o['x'] = buildSuggestedListProperties();
o['y'] = buildSuggestedListProperties();
return o;
}
void checkUnnamed6401(core.Map<core.String, api.SuggestedListProperties> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedListProperties(o['x']! as api.SuggestedListProperties);
checkSuggestedListProperties(o['y']! as api.SuggestedListProperties);
}
core.int buildCounterList = 0;
api.List buildList() {
var o = api.List();
buildCounterList++;
if (buildCounterList < 3) {
o.listProperties = buildListProperties();
o.suggestedDeletionIds = buildUnnamed6400();
o.suggestedInsertionId = 'foo';
o.suggestedListPropertiesChanges = buildUnnamed6401();
}
buildCounterList--;
return o;
}
void checkList(api.List o) {
buildCounterList++;
if (buildCounterList < 3) {
checkListProperties(o.listProperties! as api.ListProperties);
checkUnnamed6400(o.suggestedDeletionIds!);
unittest.expect(
o.suggestedInsertionId!,
unittest.equals('foo'),
);
checkUnnamed6401(o.suggestedListPropertiesChanges!);
}
buildCounterList--;
}
core.List<api.NestingLevel> buildUnnamed6402() {
var o = <api.NestingLevel>[];
o.add(buildNestingLevel());
o.add(buildNestingLevel());
return o;
}
void checkUnnamed6402(core.List<api.NestingLevel> o) {
unittest.expect(o, unittest.hasLength(2));
checkNestingLevel(o[0] as api.NestingLevel);
checkNestingLevel(o[1] as api.NestingLevel);
}
core.int buildCounterListProperties = 0;
api.ListProperties buildListProperties() {
var o = api.ListProperties();
buildCounterListProperties++;
if (buildCounterListProperties < 3) {
o.nestingLevels = buildUnnamed6402();
}
buildCounterListProperties--;
return o;
}
void checkListProperties(api.ListProperties o) {
buildCounterListProperties++;
if (buildCounterListProperties < 3) {
checkUnnamed6402(o.nestingLevels!);
}
buildCounterListProperties--;
}
core.List<api.NestingLevelSuggestionState> buildUnnamed6403() {
var o = <api.NestingLevelSuggestionState>[];
o.add(buildNestingLevelSuggestionState());
o.add(buildNestingLevelSuggestionState());
return o;
}
void checkUnnamed6403(core.List<api.NestingLevelSuggestionState> o) {
unittest.expect(o, unittest.hasLength(2));
checkNestingLevelSuggestionState(o[0] as api.NestingLevelSuggestionState);
checkNestingLevelSuggestionState(o[1] as api.NestingLevelSuggestionState);
}
core.int buildCounterListPropertiesSuggestionState = 0;
api.ListPropertiesSuggestionState buildListPropertiesSuggestionState() {
var o = api.ListPropertiesSuggestionState();
buildCounterListPropertiesSuggestionState++;
if (buildCounterListPropertiesSuggestionState < 3) {
o.nestingLevelsSuggestionStates = buildUnnamed6403();
}
buildCounterListPropertiesSuggestionState--;
return o;
}
void checkListPropertiesSuggestionState(api.ListPropertiesSuggestionState o) {
buildCounterListPropertiesSuggestionState++;
if (buildCounterListPropertiesSuggestionState < 3) {
checkUnnamed6403(o.nestingLevelsSuggestionStates!);
}
buildCounterListPropertiesSuggestionState--;
}
core.int buildCounterLocation = 0;
api.Location buildLocation() {
var o = api.Location();
buildCounterLocation++;
if (buildCounterLocation < 3) {
o.index = 42;
o.segmentId = 'foo';
}
buildCounterLocation--;
return o;
}
void checkLocation(api.Location o) {
buildCounterLocation++;
if (buildCounterLocation < 3) {
unittest.expect(
o.index!,
unittest.equals(42),
);
unittest.expect(
o.segmentId!,
unittest.equals('foo'),
);
}
buildCounterLocation--;
}
core.int buildCounterMergeTableCellsRequest = 0;
api.MergeTableCellsRequest buildMergeTableCellsRequest() {
var o = api.MergeTableCellsRequest();
buildCounterMergeTableCellsRequest++;
if (buildCounterMergeTableCellsRequest < 3) {
o.tableRange = buildTableRange();
}
buildCounterMergeTableCellsRequest--;
return o;
}
void checkMergeTableCellsRequest(api.MergeTableCellsRequest o) {
buildCounterMergeTableCellsRequest++;
if (buildCounterMergeTableCellsRequest < 3) {
checkTableRange(o.tableRange! as api.TableRange);
}
buildCounterMergeTableCellsRequest--;
}
core.List<api.Range> buildUnnamed6404() {
var o = <api.Range>[];
o.add(buildRange());
o.add(buildRange());
return o;
}
void checkUnnamed6404(core.List<api.Range> o) {
unittest.expect(o, unittest.hasLength(2));
checkRange(o[0] as api.Range);
checkRange(o[1] as api.Range);
}
core.int buildCounterNamedRange = 0;
api.NamedRange buildNamedRange() {
var o = api.NamedRange();
buildCounterNamedRange++;
if (buildCounterNamedRange < 3) {
o.name = 'foo';
o.namedRangeId = 'foo';
o.ranges = buildUnnamed6404();
}
buildCounterNamedRange--;
return o;
}
void checkNamedRange(api.NamedRange o) {
buildCounterNamedRange++;
if (buildCounterNamedRange < 3) {
unittest.expect(
o.name!,
unittest.equals('foo'),
);
unittest.expect(
o.namedRangeId!,
unittest.equals('foo'),
);
checkUnnamed6404(o.ranges!);
}
buildCounterNamedRange--;
}
core.List<api.NamedRange> buildUnnamed6405() {
var o = <api.NamedRange>[];
o.add(buildNamedRange());
o.add(buildNamedRange());
return o;
}
void checkUnnamed6405(core.List<api.NamedRange> o) {
unittest.expect(o, unittest.hasLength(2));
checkNamedRange(o[0] as api.NamedRange);
checkNamedRange(o[1] as api.NamedRange);
}
core.int buildCounterNamedRanges = 0;
api.NamedRanges buildNamedRanges() {
var o = api.NamedRanges();
buildCounterNamedRanges++;
if (buildCounterNamedRanges < 3) {
o.name = 'foo';
o.namedRanges = buildUnnamed6405();
}
buildCounterNamedRanges--;
return o;
}
void checkNamedRanges(api.NamedRanges o) {
buildCounterNamedRanges++;
if (buildCounterNamedRanges < 3) {
unittest.expect(
o.name!,
unittest.equals('foo'),
);
checkUnnamed6405(o.namedRanges!);
}
buildCounterNamedRanges--;
}
core.int buildCounterNamedStyle = 0;
api.NamedStyle buildNamedStyle() {
var o = api.NamedStyle();
buildCounterNamedStyle++;
if (buildCounterNamedStyle < 3) {
o.namedStyleType = 'foo';
o.paragraphStyle = buildParagraphStyle();
o.textStyle = buildTextStyle();
}
buildCounterNamedStyle--;
return o;
}
void checkNamedStyle(api.NamedStyle o) {
buildCounterNamedStyle++;
if (buildCounterNamedStyle < 3) {
unittest.expect(
o.namedStyleType!,
unittest.equals('foo'),
);
checkParagraphStyle(o.paragraphStyle! as api.ParagraphStyle);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterNamedStyle--;
}
core.int buildCounterNamedStyleSuggestionState = 0;
api.NamedStyleSuggestionState buildNamedStyleSuggestionState() {
var o = api.NamedStyleSuggestionState();
buildCounterNamedStyleSuggestionState++;
if (buildCounterNamedStyleSuggestionState < 3) {
o.namedStyleType = 'foo';
o.paragraphStyleSuggestionState = buildParagraphStyleSuggestionState();
o.textStyleSuggestionState = buildTextStyleSuggestionState();
}
buildCounterNamedStyleSuggestionState--;
return o;
}
void checkNamedStyleSuggestionState(api.NamedStyleSuggestionState o) {
buildCounterNamedStyleSuggestionState++;
if (buildCounterNamedStyleSuggestionState < 3) {
unittest.expect(
o.namedStyleType!,
unittest.equals('foo'),
);
checkParagraphStyleSuggestionState(
o.paragraphStyleSuggestionState! as api.ParagraphStyleSuggestionState);
checkTextStyleSuggestionState(
o.textStyleSuggestionState! as api.TextStyleSuggestionState);
}
buildCounterNamedStyleSuggestionState--;
}
core.List<api.NamedStyle> buildUnnamed6406() {
var o = <api.NamedStyle>[];
o.add(buildNamedStyle());
o.add(buildNamedStyle());
return o;
}
void checkUnnamed6406(core.List<api.NamedStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkNamedStyle(o[0] as api.NamedStyle);
checkNamedStyle(o[1] as api.NamedStyle);
}
core.int buildCounterNamedStyles = 0;
api.NamedStyles buildNamedStyles() {
var o = api.NamedStyles();
buildCounterNamedStyles++;
if (buildCounterNamedStyles < 3) {
o.styles = buildUnnamed6406();
}
buildCounterNamedStyles--;
return o;
}
void checkNamedStyles(api.NamedStyles o) {
buildCounterNamedStyles++;
if (buildCounterNamedStyles < 3) {
checkUnnamed6406(o.styles!);
}
buildCounterNamedStyles--;
}
core.List<api.NamedStyleSuggestionState> buildUnnamed6407() {
var o = <api.NamedStyleSuggestionState>[];
o.add(buildNamedStyleSuggestionState());
o.add(buildNamedStyleSuggestionState());
return o;
}
void checkUnnamed6407(core.List<api.NamedStyleSuggestionState> o) {
unittest.expect(o, unittest.hasLength(2));
checkNamedStyleSuggestionState(o[0] as api.NamedStyleSuggestionState);
checkNamedStyleSuggestionState(o[1] as api.NamedStyleSuggestionState);
}
core.int buildCounterNamedStylesSuggestionState = 0;
api.NamedStylesSuggestionState buildNamedStylesSuggestionState() {
var o = api.NamedStylesSuggestionState();
buildCounterNamedStylesSuggestionState++;
if (buildCounterNamedStylesSuggestionState < 3) {
o.stylesSuggestionStates = buildUnnamed6407();
}
buildCounterNamedStylesSuggestionState--;
return o;
}
void checkNamedStylesSuggestionState(api.NamedStylesSuggestionState o) {
buildCounterNamedStylesSuggestionState++;
if (buildCounterNamedStylesSuggestionState < 3) {
checkUnnamed6407(o.stylesSuggestionStates!);
}
buildCounterNamedStylesSuggestionState--;
}
core.int buildCounterNestingLevel = 0;
api.NestingLevel buildNestingLevel() {
var o = api.NestingLevel();
buildCounterNestingLevel++;
if (buildCounterNestingLevel < 3) {
o.bulletAlignment = 'foo';
o.glyphFormat = 'foo';
o.glyphSymbol = 'foo';
o.glyphType = 'foo';
o.indentFirstLine = buildDimension();
o.indentStart = buildDimension();
o.startNumber = 42;
o.textStyle = buildTextStyle();
}
buildCounterNestingLevel--;
return o;
}
void checkNestingLevel(api.NestingLevel o) {
buildCounterNestingLevel++;
if (buildCounterNestingLevel < 3) {
unittest.expect(
o.bulletAlignment!,
unittest.equals('foo'),
);
unittest.expect(
o.glyphFormat!,
unittest.equals('foo'),
);
unittest.expect(
o.glyphSymbol!,
unittest.equals('foo'),
);
unittest.expect(
o.glyphType!,
unittest.equals('foo'),
);
checkDimension(o.indentFirstLine! as api.Dimension);
checkDimension(o.indentStart! as api.Dimension);
unittest.expect(
o.startNumber!,
unittest.equals(42),
);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterNestingLevel--;
}
core.int buildCounterNestingLevelSuggestionState = 0;
api.NestingLevelSuggestionState buildNestingLevelSuggestionState() {
var o = api.NestingLevelSuggestionState();
buildCounterNestingLevelSuggestionState++;
if (buildCounterNestingLevelSuggestionState < 3) {
o.bulletAlignmentSuggested = true;
o.glyphFormatSuggested = true;
o.glyphSymbolSuggested = true;
o.glyphTypeSuggested = true;
o.indentFirstLineSuggested = true;
o.indentStartSuggested = true;
o.startNumberSuggested = true;
o.textStyleSuggestionState = buildTextStyleSuggestionState();
}
buildCounterNestingLevelSuggestionState--;
return o;
}
void checkNestingLevelSuggestionState(api.NestingLevelSuggestionState o) {
buildCounterNestingLevelSuggestionState++;
if (buildCounterNestingLevelSuggestionState < 3) {
unittest.expect(o.bulletAlignmentSuggested!, unittest.isTrue);
unittest.expect(o.glyphFormatSuggested!, unittest.isTrue);
unittest.expect(o.glyphSymbolSuggested!, unittest.isTrue);
unittest.expect(o.glyphTypeSuggested!, unittest.isTrue);
unittest.expect(o.indentFirstLineSuggested!, unittest.isTrue);
unittest.expect(o.indentStartSuggested!, unittest.isTrue);
unittest.expect(o.startNumberSuggested!, unittest.isTrue);
checkTextStyleSuggestionState(
o.textStyleSuggestionState! as api.TextStyleSuggestionState);
}
buildCounterNestingLevelSuggestionState--;
}
core.List<core.String> buildUnnamed6408() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6408(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 buildCounterObjectReferences = 0;
api.ObjectReferences buildObjectReferences() {
var o = api.ObjectReferences();
buildCounterObjectReferences++;
if (buildCounterObjectReferences < 3) {
o.objectIds = buildUnnamed6408();
}
buildCounterObjectReferences--;
return o;
}
void checkObjectReferences(api.ObjectReferences o) {
buildCounterObjectReferences++;
if (buildCounterObjectReferences < 3) {
checkUnnamed6408(o.objectIds!);
}
buildCounterObjectReferences--;
}
core.int buildCounterOptionalColor = 0;
api.OptionalColor buildOptionalColor() {
var o = api.OptionalColor();
buildCounterOptionalColor++;
if (buildCounterOptionalColor < 3) {
o.color = buildColor();
}
buildCounterOptionalColor--;
return o;
}
void checkOptionalColor(api.OptionalColor o) {
buildCounterOptionalColor++;
if (buildCounterOptionalColor < 3) {
checkColor(o.color! as api.Color);
}
buildCounterOptionalColor--;
}
core.List<core.String> buildUnnamed6409() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6409(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.List<core.String> buildUnnamed6410() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6410(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.Map<core.String, api.SuggestedTextStyle> buildUnnamed6411() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed6411(core.Map<core.String, api.SuggestedTextStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTextStyle(o['x']! as api.SuggestedTextStyle);
checkSuggestedTextStyle(o['y']! as api.SuggestedTextStyle);
}
core.int buildCounterPageBreak = 0;
api.PageBreak buildPageBreak() {
var o = api.PageBreak();
buildCounterPageBreak++;
if (buildCounterPageBreak < 3) {
o.suggestedDeletionIds = buildUnnamed6409();
o.suggestedInsertionIds = buildUnnamed6410();
o.suggestedTextStyleChanges = buildUnnamed6411();
o.textStyle = buildTextStyle();
}
buildCounterPageBreak--;
return o;
}
void checkPageBreak(api.PageBreak o) {
buildCounterPageBreak++;
if (buildCounterPageBreak < 3) {
checkUnnamed6409(o.suggestedDeletionIds!);
checkUnnamed6410(o.suggestedInsertionIds!);
checkUnnamed6411(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterPageBreak--;
}
core.List<api.ParagraphElement> buildUnnamed6412() {
var o = <api.ParagraphElement>[];
o.add(buildParagraphElement());
o.add(buildParagraphElement());
return o;
}
void checkUnnamed6412(core.List<api.ParagraphElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkParagraphElement(o[0] as api.ParagraphElement);
checkParagraphElement(o[1] as api.ParagraphElement);
}
core.List<core.String> buildUnnamed6413() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6413(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.Map<core.String, api.SuggestedBullet> buildUnnamed6414() {
var o = <core.String, api.SuggestedBullet>{};
o['x'] = buildSuggestedBullet();
o['y'] = buildSuggestedBullet();
return o;
}
void checkUnnamed6414(core.Map<core.String, api.SuggestedBullet> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedBullet(o['x']! as api.SuggestedBullet);
checkSuggestedBullet(o['y']! as api.SuggestedBullet);
}
core.Map<core.String, api.SuggestedParagraphStyle> buildUnnamed6415() {
var o = <core.String, api.SuggestedParagraphStyle>{};
o['x'] = buildSuggestedParagraphStyle();
o['y'] = buildSuggestedParagraphStyle();
return o;
}
void checkUnnamed6415(core.Map<core.String, api.SuggestedParagraphStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedParagraphStyle(o['x']! as api.SuggestedParagraphStyle);
checkSuggestedParagraphStyle(o['y']! as api.SuggestedParagraphStyle);
}
core.Map<core.String, api.ObjectReferences> buildUnnamed6416() {
var o = <core.String, api.ObjectReferences>{};
o['x'] = buildObjectReferences();
o['y'] = buildObjectReferences();
return o;
}
void checkUnnamed6416(core.Map<core.String, api.ObjectReferences> o) {
unittest.expect(o, unittest.hasLength(2));
checkObjectReferences(o['x']! as api.ObjectReferences);
checkObjectReferences(o['y']! as api.ObjectReferences);
}
core.int buildCounterParagraph = 0;
api.Paragraph buildParagraph() {
var o = api.Paragraph();
buildCounterParagraph++;
if (buildCounterParagraph < 3) {
o.bullet = buildBullet();
o.elements = buildUnnamed6412();
o.paragraphStyle = buildParagraphStyle();
o.positionedObjectIds = buildUnnamed6413();
o.suggestedBulletChanges = buildUnnamed6414();
o.suggestedParagraphStyleChanges = buildUnnamed6415();
o.suggestedPositionedObjectIds = buildUnnamed6416();
}
buildCounterParagraph--;
return o;
}
void checkParagraph(api.Paragraph o) {
buildCounterParagraph++;
if (buildCounterParagraph < 3) {
checkBullet(o.bullet! as api.Bullet);
checkUnnamed6412(o.elements!);
checkParagraphStyle(o.paragraphStyle! as api.ParagraphStyle);
checkUnnamed6413(o.positionedObjectIds!);
checkUnnamed6414(o.suggestedBulletChanges!);
checkUnnamed6415(o.suggestedParagraphStyleChanges!);
checkUnnamed6416(o.suggestedPositionedObjectIds!);
}
buildCounterParagraph--;
}
core.int buildCounterParagraphBorder = 0;
api.ParagraphBorder buildParagraphBorder() {
var o = api.ParagraphBorder();
buildCounterParagraphBorder++;
if (buildCounterParagraphBorder < 3) {
o.color = buildOptionalColor();
o.dashStyle = 'foo';
o.padding = buildDimension();
o.width = buildDimension();
}
buildCounterParagraphBorder--;
return o;
}
void checkParagraphBorder(api.ParagraphBorder o) {
buildCounterParagraphBorder++;
if (buildCounterParagraphBorder < 3) {
checkOptionalColor(o.color! as api.OptionalColor);
unittest.expect(
o.dashStyle!,
unittest.equals('foo'),
);
checkDimension(o.padding! as api.Dimension);
checkDimension(o.width! as api.Dimension);
}
buildCounterParagraphBorder--;
}
core.int buildCounterParagraphElement = 0;
api.ParagraphElement buildParagraphElement() {
var o = api.ParagraphElement();
buildCounterParagraphElement++;
if (buildCounterParagraphElement < 3) {
o.autoText = buildAutoText();
o.columnBreak = buildColumnBreak();
o.endIndex = 42;
o.equation = buildEquation();
o.footnoteReference = buildFootnoteReference();
o.horizontalRule = buildHorizontalRule();
o.inlineObjectElement = buildInlineObjectElement();
o.pageBreak = buildPageBreak();
o.startIndex = 42;
o.textRun = buildTextRun();
}
buildCounterParagraphElement--;
return o;
}
void checkParagraphElement(api.ParagraphElement o) {
buildCounterParagraphElement++;
if (buildCounterParagraphElement < 3) {
checkAutoText(o.autoText! as api.AutoText);
checkColumnBreak(o.columnBreak! as api.ColumnBreak);
unittest.expect(
o.endIndex!,
unittest.equals(42),
);
checkEquation(o.equation! as api.Equation);
checkFootnoteReference(o.footnoteReference! as api.FootnoteReference);
checkHorizontalRule(o.horizontalRule! as api.HorizontalRule);
checkInlineObjectElement(o.inlineObjectElement! as api.InlineObjectElement);
checkPageBreak(o.pageBreak! as api.PageBreak);
unittest.expect(
o.startIndex!,
unittest.equals(42),
);
checkTextRun(o.textRun! as api.TextRun);
}
buildCounterParagraphElement--;
}
core.List<api.TabStop> buildUnnamed6417() {
var o = <api.TabStop>[];
o.add(buildTabStop());
o.add(buildTabStop());
return o;
}
void checkUnnamed6417(core.List<api.TabStop> o) {
unittest.expect(o, unittest.hasLength(2));
checkTabStop(o[0] as api.TabStop);
checkTabStop(o[1] as api.TabStop);
}
core.int buildCounterParagraphStyle = 0;
api.ParagraphStyle buildParagraphStyle() {
var o = api.ParagraphStyle();
buildCounterParagraphStyle++;
if (buildCounterParagraphStyle < 3) {
o.alignment = 'foo';
o.avoidWidowAndOrphan = true;
o.borderBetween = buildParagraphBorder();
o.borderBottom = buildParagraphBorder();
o.borderLeft = buildParagraphBorder();
o.borderRight = buildParagraphBorder();
o.borderTop = buildParagraphBorder();
o.direction = 'foo';
o.headingId = 'foo';
o.indentEnd = buildDimension();
o.indentFirstLine = buildDimension();
o.indentStart = buildDimension();
o.keepLinesTogether = true;
o.keepWithNext = true;
o.lineSpacing = 42.0;
o.namedStyleType = 'foo';
o.shading = buildShading();
o.spaceAbove = buildDimension();
o.spaceBelow = buildDimension();
o.spacingMode = 'foo';
o.tabStops = buildUnnamed6417();
}
buildCounterParagraphStyle--;
return o;
}
void checkParagraphStyle(api.ParagraphStyle o) {
buildCounterParagraphStyle++;
if (buildCounterParagraphStyle < 3) {
unittest.expect(
o.alignment!,
unittest.equals('foo'),
);
unittest.expect(o.avoidWidowAndOrphan!, unittest.isTrue);
checkParagraphBorder(o.borderBetween! as api.ParagraphBorder);
checkParagraphBorder(o.borderBottom! as api.ParagraphBorder);
checkParagraphBorder(o.borderLeft! as api.ParagraphBorder);
checkParagraphBorder(o.borderRight! as api.ParagraphBorder);
checkParagraphBorder(o.borderTop! as api.ParagraphBorder);
unittest.expect(
o.direction!,
unittest.equals('foo'),
);
unittest.expect(
o.headingId!,
unittest.equals('foo'),
);
checkDimension(o.indentEnd! as api.Dimension);
checkDimension(o.indentFirstLine! as api.Dimension);
checkDimension(o.indentStart! as api.Dimension);
unittest.expect(o.keepLinesTogether!, unittest.isTrue);
unittest.expect(o.keepWithNext!, unittest.isTrue);
unittest.expect(
o.lineSpacing!,
unittest.equals(42.0),
);
unittest.expect(
o.namedStyleType!,
unittest.equals('foo'),
);
checkShading(o.shading! as api.Shading);
checkDimension(o.spaceAbove! as api.Dimension);
checkDimension(o.spaceBelow! as api.Dimension);
unittest.expect(
o.spacingMode!,
unittest.equals('foo'),
);
checkUnnamed6417(o.tabStops!);
}
buildCounterParagraphStyle--;
}
core.int buildCounterParagraphStyleSuggestionState = 0;
api.ParagraphStyleSuggestionState buildParagraphStyleSuggestionState() {
var o = api.ParagraphStyleSuggestionState();
buildCounterParagraphStyleSuggestionState++;
if (buildCounterParagraphStyleSuggestionState < 3) {
o.alignmentSuggested = true;
o.avoidWidowAndOrphanSuggested = true;
o.borderBetweenSuggested = true;
o.borderBottomSuggested = true;
o.borderLeftSuggested = true;
o.borderRightSuggested = true;
o.borderTopSuggested = true;
o.directionSuggested = true;
o.headingIdSuggested = true;
o.indentEndSuggested = true;
o.indentFirstLineSuggested = true;
o.indentStartSuggested = true;
o.keepLinesTogetherSuggested = true;
o.keepWithNextSuggested = true;
o.lineSpacingSuggested = true;
o.namedStyleTypeSuggested = true;
o.shadingSuggestionState = buildShadingSuggestionState();
o.spaceAboveSuggested = true;
o.spaceBelowSuggested = true;
o.spacingModeSuggested = true;
}
buildCounterParagraphStyleSuggestionState--;
return o;
}
void checkParagraphStyleSuggestionState(api.ParagraphStyleSuggestionState o) {
buildCounterParagraphStyleSuggestionState++;
if (buildCounterParagraphStyleSuggestionState < 3) {
unittest.expect(o.alignmentSuggested!, unittest.isTrue);
unittest.expect(o.avoidWidowAndOrphanSuggested!, unittest.isTrue);
unittest.expect(o.borderBetweenSuggested!, unittest.isTrue);
unittest.expect(o.borderBottomSuggested!, unittest.isTrue);
unittest.expect(o.borderLeftSuggested!, unittest.isTrue);
unittest.expect(o.borderRightSuggested!, unittest.isTrue);
unittest.expect(o.borderTopSuggested!, unittest.isTrue);
unittest.expect(o.directionSuggested!, unittest.isTrue);
unittest.expect(o.headingIdSuggested!, unittest.isTrue);
unittest.expect(o.indentEndSuggested!, unittest.isTrue);
unittest.expect(o.indentFirstLineSuggested!, unittest.isTrue);
unittest.expect(o.indentStartSuggested!, unittest.isTrue);
unittest.expect(o.keepLinesTogetherSuggested!, unittest.isTrue);
unittest.expect(o.keepWithNextSuggested!, unittest.isTrue);
unittest.expect(o.lineSpacingSuggested!, unittest.isTrue);
unittest.expect(o.namedStyleTypeSuggested!, unittest.isTrue);
checkShadingSuggestionState(
o.shadingSuggestionState! as api.ShadingSuggestionState);
unittest.expect(o.spaceAboveSuggested!, unittest.isTrue);
unittest.expect(o.spaceBelowSuggested!, unittest.isTrue);
unittest.expect(o.spacingModeSuggested!, unittest.isTrue);
}
buildCounterParagraphStyleSuggestionState--;
}
core.List<core.String> buildUnnamed6418() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6418(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.Map<core.String, api.SuggestedPositionedObjectProperties>
buildUnnamed6419() {
var o = <core.String, api.SuggestedPositionedObjectProperties>{};
o['x'] = buildSuggestedPositionedObjectProperties();
o['y'] = buildSuggestedPositionedObjectProperties();
return o;
}
void checkUnnamed6419(
core.Map<core.String, api.SuggestedPositionedObjectProperties> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedPositionedObjectProperties(
o['x']! as api.SuggestedPositionedObjectProperties);
checkSuggestedPositionedObjectProperties(
o['y']! as api.SuggestedPositionedObjectProperties);
}
core.int buildCounterPositionedObject = 0;
api.PositionedObject buildPositionedObject() {
var o = api.PositionedObject();
buildCounterPositionedObject++;
if (buildCounterPositionedObject < 3) {
o.objectId = 'foo';
o.positionedObjectProperties = buildPositionedObjectProperties();
o.suggestedDeletionIds = buildUnnamed6418();
o.suggestedInsertionId = 'foo';
o.suggestedPositionedObjectPropertiesChanges = buildUnnamed6419();
}
buildCounterPositionedObject--;
return o;
}
void checkPositionedObject(api.PositionedObject o) {
buildCounterPositionedObject++;
if (buildCounterPositionedObject < 3) {
unittest.expect(
o.objectId!,
unittest.equals('foo'),
);
checkPositionedObjectProperties(
o.positionedObjectProperties! as api.PositionedObjectProperties);
checkUnnamed6418(o.suggestedDeletionIds!);
unittest.expect(
o.suggestedInsertionId!,
unittest.equals('foo'),
);
checkUnnamed6419(o.suggestedPositionedObjectPropertiesChanges!);
}
buildCounterPositionedObject--;
}
core.int buildCounterPositionedObjectPositioning = 0;
api.PositionedObjectPositioning buildPositionedObjectPositioning() {
var o = api.PositionedObjectPositioning();
buildCounterPositionedObjectPositioning++;
if (buildCounterPositionedObjectPositioning < 3) {
o.layout = 'foo';
o.leftOffset = buildDimension();
o.topOffset = buildDimension();
}
buildCounterPositionedObjectPositioning--;
return o;
}
void checkPositionedObjectPositioning(api.PositionedObjectPositioning o) {
buildCounterPositionedObjectPositioning++;
if (buildCounterPositionedObjectPositioning < 3) {
unittest.expect(
o.layout!,
unittest.equals('foo'),
);
checkDimension(o.leftOffset! as api.Dimension);
checkDimension(o.topOffset! as api.Dimension);
}
buildCounterPositionedObjectPositioning--;
}
core.int buildCounterPositionedObjectPositioningSuggestionState = 0;
api.PositionedObjectPositioningSuggestionState
buildPositionedObjectPositioningSuggestionState() {
var o = api.PositionedObjectPositioningSuggestionState();
buildCounterPositionedObjectPositioningSuggestionState++;
if (buildCounterPositionedObjectPositioningSuggestionState < 3) {
o.layoutSuggested = true;
o.leftOffsetSuggested = true;
o.topOffsetSuggested = true;
}
buildCounterPositionedObjectPositioningSuggestionState--;
return o;
}
void checkPositionedObjectPositioningSuggestionState(
api.PositionedObjectPositioningSuggestionState o) {
buildCounterPositionedObjectPositioningSuggestionState++;
if (buildCounterPositionedObjectPositioningSuggestionState < 3) {
unittest.expect(o.layoutSuggested!, unittest.isTrue);
unittest.expect(o.leftOffsetSuggested!, unittest.isTrue);
unittest.expect(o.topOffsetSuggested!, unittest.isTrue);
}
buildCounterPositionedObjectPositioningSuggestionState--;
}
core.int buildCounterPositionedObjectProperties = 0;
api.PositionedObjectProperties buildPositionedObjectProperties() {
var o = api.PositionedObjectProperties();
buildCounterPositionedObjectProperties++;
if (buildCounterPositionedObjectProperties < 3) {
o.embeddedObject = buildEmbeddedObject();
o.positioning = buildPositionedObjectPositioning();
}
buildCounterPositionedObjectProperties--;
return o;
}
void checkPositionedObjectProperties(api.PositionedObjectProperties o) {
buildCounterPositionedObjectProperties++;
if (buildCounterPositionedObjectProperties < 3) {
checkEmbeddedObject(o.embeddedObject! as api.EmbeddedObject);
checkPositionedObjectPositioning(
o.positioning! as api.PositionedObjectPositioning);
}
buildCounterPositionedObjectProperties--;
}
core.int buildCounterPositionedObjectPropertiesSuggestionState = 0;
api.PositionedObjectPropertiesSuggestionState
buildPositionedObjectPropertiesSuggestionState() {
var o = api.PositionedObjectPropertiesSuggestionState();
buildCounterPositionedObjectPropertiesSuggestionState++;
if (buildCounterPositionedObjectPropertiesSuggestionState < 3) {
o.embeddedObjectSuggestionState = buildEmbeddedObjectSuggestionState();
o.positioningSuggestionState =
buildPositionedObjectPositioningSuggestionState();
}
buildCounterPositionedObjectPropertiesSuggestionState--;
return o;
}
void checkPositionedObjectPropertiesSuggestionState(
api.PositionedObjectPropertiesSuggestionState o) {
buildCounterPositionedObjectPropertiesSuggestionState++;
if (buildCounterPositionedObjectPropertiesSuggestionState < 3) {
checkEmbeddedObjectSuggestionState(
o.embeddedObjectSuggestionState! as api.EmbeddedObjectSuggestionState);
checkPositionedObjectPositioningSuggestionState(
o.positioningSuggestionState!
as api.PositionedObjectPositioningSuggestionState);
}
buildCounterPositionedObjectPropertiesSuggestionState--;
}
core.int buildCounterRange = 0;
api.Range buildRange() {
var o = api.Range();
buildCounterRange++;
if (buildCounterRange < 3) {
o.endIndex = 42;
o.segmentId = 'foo';
o.startIndex = 42;
}
buildCounterRange--;
return o;
}
void checkRange(api.Range o) {
buildCounterRange++;
if (buildCounterRange < 3) {
unittest.expect(
o.endIndex!,
unittest.equals(42),
);
unittest.expect(
o.segmentId!,
unittest.equals('foo'),
);
unittest.expect(
o.startIndex!,
unittest.equals(42),
);
}
buildCounterRange--;
}
core.int buildCounterReplaceAllTextRequest = 0;
api.ReplaceAllTextRequest buildReplaceAllTextRequest() {
var o = api.ReplaceAllTextRequest();
buildCounterReplaceAllTextRequest++;
if (buildCounterReplaceAllTextRequest < 3) {
o.containsText = buildSubstringMatchCriteria();
o.replaceText = 'foo';
}
buildCounterReplaceAllTextRequest--;
return o;
}
void checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) {
buildCounterReplaceAllTextRequest++;
if (buildCounterReplaceAllTextRequest < 3) {
checkSubstringMatchCriteria(o.containsText! as api.SubstringMatchCriteria);
unittest.expect(
o.replaceText!,
unittest.equals('foo'),
);
}
buildCounterReplaceAllTextRequest--;
}
core.int buildCounterReplaceAllTextResponse = 0;
api.ReplaceAllTextResponse buildReplaceAllTextResponse() {
var o = api.ReplaceAllTextResponse();
buildCounterReplaceAllTextResponse++;
if (buildCounterReplaceAllTextResponse < 3) {
o.occurrencesChanged = 42;
}
buildCounterReplaceAllTextResponse--;
return o;
}
void checkReplaceAllTextResponse(api.ReplaceAllTextResponse o) {
buildCounterReplaceAllTextResponse++;
if (buildCounterReplaceAllTextResponse < 3) {
unittest.expect(
o.occurrencesChanged!,
unittest.equals(42),
);
}
buildCounterReplaceAllTextResponse--;
}
core.int buildCounterReplaceImageRequest = 0;
api.ReplaceImageRequest buildReplaceImageRequest() {
var o = api.ReplaceImageRequest();
buildCounterReplaceImageRequest++;
if (buildCounterReplaceImageRequest < 3) {
o.imageObjectId = 'foo';
o.imageReplaceMethod = 'foo';
o.uri = 'foo';
}
buildCounterReplaceImageRequest--;
return o;
}
void checkReplaceImageRequest(api.ReplaceImageRequest o) {
buildCounterReplaceImageRequest++;
if (buildCounterReplaceImageRequest < 3) {
unittest.expect(
o.imageObjectId!,
unittest.equals('foo'),
);
unittest.expect(
o.imageReplaceMethod!,
unittest.equals('foo'),
);
unittest.expect(
o.uri!,
unittest.equals('foo'),
);
}
buildCounterReplaceImageRequest--;
}
core.int buildCounterReplaceNamedRangeContentRequest = 0;
api.ReplaceNamedRangeContentRequest buildReplaceNamedRangeContentRequest() {
var o = api.ReplaceNamedRangeContentRequest();
buildCounterReplaceNamedRangeContentRequest++;
if (buildCounterReplaceNamedRangeContentRequest < 3) {
o.namedRangeId = 'foo';
o.namedRangeName = 'foo';
o.text = 'foo';
}
buildCounterReplaceNamedRangeContentRequest--;
return o;
}
void checkReplaceNamedRangeContentRequest(
api.ReplaceNamedRangeContentRequest o) {
buildCounterReplaceNamedRangeContentRequest++;
if (buildCounterReplaceNamedRangeContentRequest < 3) {
unittest.expect(
o.namedRangeId!,
unittest.equals('foo'),
);
unittest.expect(
o.namedRangeName!,
unittest.equals('foo'),
);
unittest.expect(
o.text!,
unittest.equals('foo'),
);
}
buildCounterReplaceNamedRangeContentRequest--;
}
core.int buildCounterRequest = 0;
api.Request buildRequest() {
var o = api.Request();
buildCounterRequest++;
if (buildCounterRequest < 3) {
o.createFooter = buildCreateFooterRequest();
o.createFootnote = buildCreateFootnoteRequest();
o.createHeader = buildCreateHeaderRequest();
o.createNamedRange = buildCreateNamedRangeRequest();
o.createParagraphBullets = buildCreateParagraphBulletsRequest();
o.deleteContentRange = buildDeleteContentRangeRequest();
o.deleteFooter = buildDeleteFooterRequest();
o.deleteHeader = buildDeleteHeaderRequest();
o.deleteNamedRange = buildDeleteNamedRangeRequest();
o.deleteParagraphBullets = buildDeleteParagraphBulletsRequest();
o.deletePositionedObject = buildDeletePositionedObjectRequest();
o.deleteTableColumn = buildDeleteTableColumnRequest();
o.deleteTableRow = buildDeleteTableRowRequest();
o.insertInlineImage = buildInsertInlineImageRequest();
o.insertPageBreak = buildInsertPageBreakRequest();
o.insertSectionBreak = buildInsertSectionBreakRequest();
o.insertTable = buildInsertTableRequest();
o.insertTableColumn = buildInsertTableColumnRequest();
o.insertTableRow = buildInsertTableRowRequest();
o.insertText = buildInsertTextRequest();
o.mergeTableCells = buildMergeTableCellsRequest();
o.replaceAllText = buildReplaceAllTextRequest();
o.replaceImage = buildReplaceImageRequest();
o.replaceNamedRangeContent = buildReplaceNamedRangeContentRequest();
o.unmergeTableCells = buildUnmergeTableCellsRequest();
o.updateDocumentStyle = buildUpdateDocumentStyleRequest();
o.updateParagraphStyle = buildUpdateParagraphStyleRequest();
o.updateSectionStyle = buildUpdateSectionStyleRequest();
o.updateTableCellStyle = buildUpdateTableCellStyleRequest();
o.updateTableColumnProperties = buildUpdateTableColumnPropertiesRequest();
o.updateTableRowStyle = buildUpdateTableRowStyleRequest();
o.updateTextStyle = buildUpdateTextStyleRequest();
}
buildCounterRequest--;
return o;
}
void checkRequest(api.Request o) {
buildCounterRequest++;
if (buildCounterRequest < 3) {
checkCreateFooterRequest(o.createFooter! as api.CreateFooterRequest);
checkCreateFootnoteRequest(o.createFootnote! as api.CreateFootnoteRequest);
checkCreateHeaderRequest(o.createHeader! as api.CreateHeaderRequest);
checkCreateNamedRangeRequest(
o.createNamedRange! as api.CreateNamedRangeRequest);
checkCreateParagraphBulletsRequest(
o.createParagraphBullets! as api.CreateParagraphBulletsRequest);
checkDeleteContentRangeRequest(
o.deleteContentRange! as api.DeleteContentRangeRequest);
checkDeleteFooterRequest(o.deleteFooter! as api.DeleteFooterRequest);
checkDeleteHeaderRequest(o.deleteHeader! as api.DeleteHeaderRequest);
checkDeleteNamedRangeRequest(
o.deleteNamedRange! as api.DeleteNamedRangeRequest);
checkDeleteParagraphBulletsRequest(
o.deleteParagraphBullets! as api.DeleteParagraphBulletsRequest);
checkDeletePositionedObjectRequest(
o.deletePositionedObject! as api.DeletePositionedObjectRequest);
checkDeleteTableColumnRequest(
o.deleteTableColumn! as api.DeleteTableColumnRequest);
checkDeleteTableRowRequest(o.deleteTableRow! as api.DeleteTableRowRequest);
checkInsertInlineImageRequest(
o.insertInlineImage! as api.InsertInlineImageRequest);
checkInsertPageBreakRequest(
o.insertPageBreak! as api.InsertPageBreakRequest);
checkInsertSectionBreakRequest(
o.insertSectionBreak! as api.InsertSectionBreakRequest);
checkInsertTableRequest(o.insertTable! as api.InsertTableRequest);
checkInsertTableColumnRequest(
o.insertTableColumn! as api.InsertTableColumnRequest);
checkInsertTableRowRequest(o.insertTableRow! as api.InsertTableRowRequest);
checkInsertTextRequest(o.insertText! as api.InsertTextRequest);
checkMergeTableCellsRequest(
o.mergeTableCells! as api.MergeTableCellsRequest);
checkReplaceAllTextRequest(o.replaceAllText! as api.ReplaceAllTextRequest);
checkReplaceImageRequest(o.replaceImage! as api.ReplaceImageRequest);
checkReplaceNamedRangeContentRequest(
o.replaceNamedRangeContent! as api.ReplaceNamedRangeContentRequest);
checkUnmergeTableCellsRequest(
o.unmergeTableCells! as api.UnmergeTableCellsRequest);
checkUpdateDocumentStyleRequest(
o.updateDocumentStyle! as api.UpdateDocumentStyleRequest);
checkUpdateParagraphStyleRequest(
o.updateParagraphStyle! as api.UpdateParagraphStyleRequest);
checkUpdateSectionStyleRequest(
o.updateSectionStyle! as api.UpdateSectionStyleRequest);
checkUpdateTableCellStyleRequest(
o.updateTableCellStyle! as api.UpdateTableCellStyleRequest);
checkUpdateTableColumnPropertiesRequest(o.updateTableColumnProperties!
as api.UpdateTableColumnPropertiesRequest);
checkUpdateTableRowStyleRequest(
o.updateTableRowStyle! as api.UpdateTableRowStyleRequest);
checkUpdateTextStyleRequest(
o.updateTextStyle! as api.UpdateTextStyleRequest);
}
buildCounterRequest--;
}
core.int buildCounterResponse = 0;
api.Response buildResponse() {
var o = api.Response();
buildCounterResponse++;
if (buildCounterResponse < 3) {
o.createFooter = buildCreateFooterResponse();
o.createFootnote = buildCreateFootnoteResponse();
o.createHeader = buildCreateHeaderResponse();
o.createNamedRange = buildCreateNamedRangeResponse();
o.insertInlineImage = buildInsertInlineImageResponse();
o.insertInlineSheetsChart = buildInsertInlineSheetsChartResponse();
o.replaceAllText = buildReplaceAllTextResponse();
}
buildCounterResponse--;
return o;
}
void checkResponse(api.Response o) {
buildCounterResponse++;
if (buildCounterResponse < 3) {
checkCreateFooterResponse(o.createFooter! as api.CreateFooterResponse);
checkCreateFootnoteResponse(
o.createFootnote! as api.CreateFootnoteResponse);
checkCreateHeaderResponse(o.createHeader! as api.CreateHeaderResponse);
checkCreateNamedRangeResponse(
o.createNamedRange! as api.CreateNamedRangeResponse);
checkInsertInlineImageResponse(
o.insertInlineImage! as api.InsertInlineImageResponse);
checkInsertInlineSheetsChartResponse(
o.insertInlineSheetsChart! as api.InsertInlineSheetsChartResponse);
checkReplaceAllTextResponse(
o.replaceAllText! as api.ReplaceAllTextResponse);
}
buildCounterResponse--;
}
core.int buildCounterRgbColor = 0;
api.RgbColor buildRgbColor() {
var o = api.RgbColor();
buildCounterRgbColor++;
if (buildCounterRgbColor < 3) {
o.blue = 42.0;
o.green = 42.0;
o.red = 42.0;
}
buildCounterRgbColor--;
return o;
}
void checkRgbColor(api.RgbColor o) {
buildCounterRgbColor++;
if (buildCounterRgbColor < 3) {
unittest.expect(
o.blue!,
unittest.equals(42.0),
);
unittest.expect(
o.green!,
unittest.equals(42.0),
);
unittest.expect(
o.red!,
unittest.equals(42.0),
);
}
buildCounterRgbColor--;
}
core.List<core.String> buildUnnamed6420() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6420(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.List<core.String> buildUnnamed6421() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6421(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 buildCounterSectionBreak = 0;
api.SectionBreak buildSectionBreak() {
var o = api.SectionBreak();
buildCounterSectionBreak++;
if (buildCounterSectionBreak < 3) {
o.sectionStyle = buildSectionStyle();
o.suggestedDeletionIds = buildUnnamed6420();
o.suggestedInsertionIds = buildUnnamed6421();
}
buildCounterSectionBreak--;
return o;
}
void checkSectionBreak(api.SectionBreak o) {
buildCounterSectionBreak++;
if (buildCounterSectionBreak < 3) {
checkSectionStyle(o.sectionStyle! as api.SectionStyle);
checkUnnamed6420(o.suggestedDeletionIds!);
checkUnnamed6421(o.suggestedInsertionIds!);
}
buildCounterSectionBreak--;
}
core.int buildCounterSectionColumnProperties = 0;
api.SectionColumnProperties buildSectionColumnProperties() {
var o = api.SectionColumnProperties();
buildCounterSectionColumnProperties++;
if (buildCounterSectionColumnProperties < 3) {
o.paddingEnd = buildDimension();
o.width = buildDimension();
}
buildCounterSectionColumnProperties--;
return o;
}
void checkSectionColumnProperties(api.SectionColumnProperties o) {
buildCounterSectionColumnProperties++;
if (buildCounterSectionColumnProperties < 3) {
checkDimension(o.paddingEnd! as api.Dimension);
checkDimension(o.width! as api.Dimension);
}
buildCounterSectionColumnProperties--;
}
core.List<api.SectionColumnProperties> buildUnnamed6422() {
var o = <api.SectionColumnProperties>[];
o.add(buildSectionColumnProperties());
o.add(buildSectionColumnProperties());
return o;
}
void checkUnnamed6422(core.List<api.SectionColumnProperties> o) {
unittest.expect(o, unittest.hasLength(2));
checkSectionColumnProperties(o[0] as api.SectionColumnProperties);
checkSectionColumnProperties(o[1] as api.SectionColumnProperties);
}
core.int buildCounterSectionStyle = 0;
api.SectionStyle buildSectionStyle() {
var o = api.SectionStyle();
buildCounterSectionStyle++;
if (buildCounterSectionStyle < 3) {
o.columnProperties = buildUnnamed6422();
o.columnSeparatorStyle = 'foo';
o.contentDirection = 'foo';
o.defaultFooterId = 'foo';
o.defaultHeaderId = 'foo';
o.evenPageFooterId = 'foo';
o.evenPageHeaderId = 'foo';
o.firstPageFooterId = 'foo';
o.firstPageHeaderId = 'foo';
o.marginBottom = buildDimension();
o.marginFooter = buildDimension();
o.marginHeader = buildDimension();
o.marginLeft = buildDimension();
o.marginRight = buildDimension();
o.marginTop = buildDimension();
o.pageNumberStart = 42;
o.sectionType = 'foo';
o.useFirstPageHeaderFooter = true;
}
buildCounterSectionStyle--;
return o;
}
void checkSectionStyle(api.SectionStyle o) {
buildCounterSectionStyle++;
if (buildCounterSectionStyle < 3) {
checkUnnamed6422(o.columnProperties!);
unittest.expect(
o.columnSeparatorStyle!,
unittest.equals('foo'),
);
unittest.expect(
o.contentDirection!,
unittest.equals('foo'),
);
unittest.expect(
o.defaultFooterId!,
unittest.equals('foo'),
);
unittest.expect(
o.defaultHeaderId!,
unittest.equals('foo'),
);
unittest.expect(
o.evenPageFooterId!,
unittest.equals('foo'),
);
unittest.expect(
o.evenPageHeaderId!,
unittest.equals('foo'),
);
unittest.expect(
o.firstPageFooterId!,
unittest.equals('foo'),
);
unittest.expect(
o.firstPageHeaderId!,
unittest.equals('foo'),
);
checkDimension(o.marginBottom! as api.Dimension);
checkDimension(o.marginFooter! as api.Dimension);
checkDimension(o.marginHeader! as api.Dimension);
checkDimension(o.marginLeft! as api.Dimension);
checkDimension(o.marginRight! as api.Dimension);
checkDimension(o.marginTop! as api.Dimension);
unittest.expect(
o.pageNumberStart!,
unittest.equals(42),
);
unittest.expect(
o.sectionType!,
unittest.equals('foo'),
);
unittest.expect(o.useFirstPageHeaderFooter!, unittest.isTrue);
}
buildCounterSectionStyle--;
}
core.int buildCounterShading = 0;
api.Shading buildShading() {
var o = api.Shading();
buildCounterShading++;
if (buildCounterShading < 3) {
o.backgroundColor = buildOptionalColor();
}
buildCounterShading--;
return o;
}
void checkShading(api.Shading o) {
buildCounterShading++;
if (buildCounterShading < 3) {
checkOptionalColor(o.backgroundColor! as api.OptionalColor);
}
buildCounterShading--;
}
core.int buildCounterShadingSuggestionState = 0;
api.ShadingSuggestionState buildShadingSuggestionState() {
var o = api.ShadingSuggestionState();
buildCounterShadingSuggestionState++;
if (buildCounterShadingSuggestionState < 3) {
o.backgroundColorSuggested = true;
}
buildCounterShadingSuggestionState--;
return o;
}
void checkShadingSuggestionState(api.ShadingSuggestionState o) {
buildCounterShadingSuggestionState++;
if (buildCounterShadingSuggestionState < 3) {
unittest.expect(o.backgroundColorSuggested!, unittest.isTrue);
}
buildCounterShadingSuggestionState--;
}
core.int buildCounterSheetsChartReference = 0;
api.SheetsChartReference buildSheetsChartReference() {
var o = api.SheetsChartReference();
buildCounterSheetsChartReference++;
if (buildCounterSheetsChartReference < 3) {
o.chartId = 42;
o.spreadsheetId = 'foo';
}
buildCounterSheetsChartReference--;
return o;
}
void checkSheetsChartReference(api.SheetsChartReference o) {
buildCounterSheetsChartReference++;
if (buildCounterSheetsChartReference < 3) {
unittest.expect(
o.chartId!,
unittest.equals(42),
);
unittest.expect(
o.spreadsheetId!,
unittest.equals('foo'),
);
}
buildCounterSheetsChartReference--;
}
core.int buildCounterSheetsChartReferenceSuggestionState = 0;
api.SheetsChartReferenceSuggestionState
buildSheetsChartReferenceSuggestionState() {
var o = api.SheetsChartReferenceSuggestionState();
buildCounterSheetsChartReferenceSuggestionState++;
if (buildCounterSheetsChartReferenceSuggestionState < 3) {
o.chartIdSuggested = true;
o.spreadsheetIdSuggested = true;
}
buildCounterSheetsChartReferenceSuggestionState--;
return o;
}
void checkSheetsChartReferenceSuggestionState(
api.SheetsChartReferenceSuggestionState o) {
buildCounterSheetsChartReferenceSuggestionState++;
if (buildCounterSheetsChartReferenceSuggestionState < 3) {
unittest.expect(o.chartIdSuggested!, unittest.isTrue);
unittest.expect(o.spreadsheetIdSuggested!, unittest.isTrue);
}
buildCounterSheetsChartReferenceSuggestionState--;
}
core.int buildCounterSize = 0;
api.Size buildSize() {
var o = api.Size();
buildCounterSize++;
if (buildCounterSize < 3) {
o.height = buildDimension();
o.width = buildDimension();
}
buildCounterSize--;
return o;
}
void checkSize(api.Size o) {
buildCounterSize++;
if (buildCounterSize < 3) {
checkDimension(o.height! as api.Dimension);
checkDimension(o.width! as api.Dimension);
}
buildCounterSize--;
}
core.int buildCounterSizeSuggestionState = 0;
api.SizeSuggestionState buildSizeSuggestionState() {
var o = api.SizeSuggestionState();
buildCounterSizeSuggestionState++;
if (buildCounterSizeSuggestionState < 3) {
o.heightSuggested = true;
o.widthSuggested = true;
}
buildCounterSizeSuggestionState--;
return o;
}
void checkSizeSuggestionState(api.SizeSuggestionState o) {
buildCounterSizeSuggestionState++;
if (buildCounterSizeSuggestionState < 3) {
unittest.expect(o.heightSuggested!, unittest.isTrue);
unittest.expect(o.widthSuggested!, unittest.isTrue);
}
buildCounterSizeSuggestionState--;
}
core.int buildCounterStructuralElement = 0;
api.StructuralElement buildStructuralElement() {
var o = api.StructuralElement();
buildCounterStructuralElement++;
if (buildCounterStructuralElement < 3) {
o.endIndex = 42;
o.paragraph = buildParagraph();
o.sectionBreak = buildSectionBreak();
o.startIndex = 42;
o.table = buildTable();
o.tableOfContents = buildTableOfContents();
}
buildCounterStructuralElement--;
return o;
}
void checkStructuralElement(api.StructuralElement o) {
buildCounterStructuralElement++;
if (buildCounterStructuralElement < 3) {
unittest.expect(
o.endIndex!,
unittest.equals(42),
);
checkParagraph(o.paragraph! as api.Paragraph);
checkSectionBreak(o.sectionBreak! as api.SectionBreak);
unittest.expect(
o.startIndex!,
unittest.equals(42),
);
checkTable(o.table! as api.Table);
checkTableOfContents(o.tableOfContents! as api.TableOfContents);
}
buildCounterStructuralElement--;
}
core.int buildCounterSubstringMatchCriteria = 0;
api.SubstringMatchCriteria buildSubstringMatchCriteria() {
var o = api.SubstringMatchCriteria();
buildCounterSubstringMatchCriteria++;
if (buildCounterSubstringMatchCriteria < 3) {
o.matchCase = true;
o.text = 'foo';
}
buildCounterSubstringMatchCriteria--;
return o;
}
void checkSubstringMatchCriteria(api.SubstringMatchCriteria o) {
buildCounterSubstringMatchCriteria++;
if (buildCounterSubstringMatchCriteria < 3) {
unittest.expect(o.matchCase!, unittest.isTrue);
unittest.expect(
o.text!,
unittest.equals('foo'),
);
}
buildCounterSubstringMatchCriteria--;
}
core.int buildCounterSuggestedBullet = 0;
api.SuggestedBullet buildSuggestedBullet() {
var o = api.SuggestedBullet();
buildCounterSuggestedBullet++;
if (buildCounterSuggestedBullet < 3) {
o.bullet = buildBullet();
o.bulletSuggestionState = buildBulletSuggestionState();
}
buildCounterSuggestedBullet--;
return o;
}
void checkSuggestedBullet(api.SuggestedBullet o) {
buildCounterSuggestedBullet++;
if (buildCounterSuggestedBullet < 3) {
checkBullet(o.bullet! as api.Bullet);
checkBulletSuggestionState(
o.bulletSuggestionState! as api.BulletSuggestionState);
}
buildCounterSuggestedBullet--;
}
core.int buildCounterSuggestedDocumentStyle = 0;
api.SuggestedDocumentStyle buildSuggestedDocumentStyle() {
var o = api.SuggestedDocumentStyle();
buildCounterSuggestedDocumentStyle++;
if (buildCounterSuggestedDocumentStyle < 3) {
o.documentStyle = buildDocumentStyle();
o.documentStyleSuggestionState = buildDocumentStyleSuggestionState();
}
buildCounterSuggestedDocumentStyle--;
return o;
}
void checkSuggestedDocumentStyle(api.SuggestedDocumentStyle o) {
buildCounterSuggestedDocumentStyle++;
if (buildCounterSuggestedDocumentStyle < 3) {
checkDocumentStyle(o.documentStyle! as api.DocumentStyle);
checkDocumentStyleSuggestionState(
o.documentStyleSuggestionState! as api.DocumentStyleSuggestionState);
}
buildCounterSuggestedDocumentStyle--;
}
core.int buildCounterSuggestedInlineObjectProperties = 0;
api.SuggestedInlineObjectProperties buildSuggestedInlineObjectProperties() {
var o = api.SuggestedInlineObjectProperties();
buildCounterSuggestedInlineObjectProperties++;
if (buildCounterSuggestedInlineObjectProperties < 3) {
o.inlineObjectProperties = buildInlineObjectProperties();
o.inlineObjectPropertiesSuggestionState =
buildInlineObjectPropertiesSuggestionState();
}
buildCounterSuggestedInlineObjectProperties--;
return o;
}
void checkSuggestedInlineObjectProperties(
api.SuggestedInlineObjectProperties o) {
buildCounterSuggestedInlineObjectProperties++;
if (buildCounterSuggestedInlineObjectProperties < 3) {
checkInlineObjectProperties(
o.inlineObjectProperties! as api.InlineObjectProperties);
checkInlineObjectPropertiesSuggestionState(
o.inlineObjectPropertiesSuggestionState!
as api.InlineObjectPropertiesSuggestionState);
}
buildCounterSuggestedInlineObjectProperties--;
}
core.int buildCounterSuggestedListProperties = 0;
api.SuggestedListProperties buildSuggestedListProperties() {
var o = api.SuggestedListProperties();
buildCounterSuggestedListProperties++;
if (buildCounterSuggestedListProperties < 3) {
o.listProperties = buildListProperties();
o.listPropertiesSuggestionState = buildListPropertiesSuggestionState();
}
buildCounterSuggestedListProperties--;
return o;
}
void checkSuggestedListProperties(api.SuggestedListProperties o) {
buildCounterSuggestedListProperties++;
if (buildCounterSuggestedListProperties < 3) {
checkListProperties(o.listProperties! as api.ListProperties);
checkListPropertiesSuggestionState(
o.listPropertiesSuggestionState! as api.ListPropertiesSuggestionState);
}
buildCounterSuggestedListProperties--;
}
core.int buildCounterSuggestedNamedStyles = 0;
api.SuggestedNamedStyles buildSuggestedNamedStyles() {
var o = api.SuggestedNamedStyles();
buildCounterSuggestedNamedStyles++;
if (buildCounterSuggestedNamedStyles < 3) {
o.namedStyles = buildNamedStyles();
o.namedStylesSuggestionState = buildNamedStylesSuggestionState();
}
buildCounterSuggestedNamedStyles--;
return o;
}
void checkSuggestedNamedStyles(api.SuggestedNamedStyles o) {
buildCounterSuggestedNamedStyles++;
if (buildCounterSuggestedNamedStyles < 3) {
checkNamedStyles(o.namedStyles! as api.NamedStyles);
checkNamedStylesSuggestionState(
o.namedStylesSuggestionState! as api.NamedStylesSuggestionState);
}
buildCounterSuggestedNamedStyles--;
}
core.int buildCounterSuggestedParagraphStyle = 0;
api.SuggestedParagraphStyle buildSuggestedParagraphStyle() {
var o = api.SuggestedParagraphStyle();
buildCounterSuggestedParagraphStyle++;
if (buildCounterSuggestedParagraphStyle < 3) {
o.paragraphStyle = buildParagraphStyle();
o.paragraphStyleSuggestionState = buildParagraphStyleSuggestionState();
}
buildCounterSuggestedParagraphStyle--;
return o;
}
void checkSuggestedParagraphStyle(api.SuggestedParagraphStyle o) {
buildCounterSuggestedParagraphStyle++;
if (buildCounterSuggestedParagraphStyle < 3) {
checkParagraphStyle(o.paragraphStyle! as api.ParagraphStyle);
checkParagraphStyleSuggestionState(
o.paragraphStyleSuggestionState! as api.ParagraphStyleSuggestionState);
}
buildCounterSuggestedParagraphStyle--;
}
core.int buildCounterSuggestedPositionedObjectProperties = 0;
api.SuggestedPositionedObjectProperties
buildSuggestedPositionedObjectProperties() {
var o = api.SuggestedPositionedObjectProperties();
buildCounterSuggestedPositionedObjectProperties++;
if (buildCounterSuggestedPositionedObjectProperties < 3) {
o.positionedObjectProperties = buildPositionedObjectProperties();
o.positionedObjectPropertiesSuggestionState =
buildPositionedObjectPropertiesSuggestionState();
}
buildCounterSuggestedPositionedObjectProperties--;
return o;
}
void checkSuggestedPositionedObjectProperties(
api.SuggestedPositionedObjectProperties o) {
buildCounterSuggestedPositionedObjectProperties++;
if (buildCounterSuggestedPositionedObjectProperties < 3) {
checkPositionedObjectProperties(
o.positionedObjectProperties! as api.PositionedObjectProperties);
checkPositionedObjectPropertiesSuggestionState(
o.positionedObjectPropertiesSuggestionState!
as api.PositionedObjectPropertiesSuggestionState);
}
buildCounterSuggestedPositionedObjectProperties--;
}
core.int buildCounterSuggestedTableCellStyle = 0;
api.SuggestedTableCellStyle buildSuggestedTableCellStyle() {
var o = api.SuggestedTableCellStyle();
buildCounterSuggestedTableCellStyle++;
if (buildCounterSuggestedTableCellStyle < 3) {
o.tableCellStyle = buildTableCellStyle();
o.tableCellStyleSuggestionState = buildTableCellStyleSuggestionState();
}
buildCounterSuggestedTableCellStyle--;
return o;
}
void checkSuggestedTableCellStyle(api.SuggestedTableCellStyle o) {
buildCounterSuggestedTableCellStyle++;
if (buildCounterSuggestedTableCellStyle < 3) {
checkTableCellStyle(o.tableCellStyle! as api.TableCellStyle);
checkTableCellStyleSuggestionState(
o.tableCellStyleSuggestionState! as api.TableCellStyleSuggestionState);
}
buildCounterSuggestedTableCellStyle--;
}
core.int buildCounterSuggestedTableRowStyle = 0;
api.SuggestedTableRowStyle buildSuggestedTableRowStyle() {
var o = api.SuggestedTableRowStyle();
buildCounterSuggestedTableRowStyle++;
if (buildCounterSuggestedTableRowStyle < 3) {
o.tableRowStyle = buildTableRowStyle();
o.tableRowStyleSuggestionState = buildTableRowStyleSuggestionState();
}
buildCounterSuggestedTableRowStyle--;
return o;
}
void checkSuggestedTableRowStyle(api.SuggestedTableRowStyle o) {
buildCounterSuggestedTableRowStyle++;
if (buildCounterSuggestedTableRowStyle < 3) {
checkTableRowStyle(o.tableRowStyle! as api.TableRowStyle);
checkTableRowStyleSuggestionState(
o.tableRowStyleSuggestionState! as api.TableRowStyleSuggestionState);
}
buildCounterSuggestedTableRowStyle--;
}
core.int buildCounterSuggestedTextStyle = 0;
api.SuggestedTextStyle buildSuggestedTextStyle() {
var o = api.SuggestedTextStyle();
buildCounterSuggestedTextStyle++;
if (buildCounterSuggestedTextStyle < 3) {
o.textStyle = buildTextStyle();
o.textStyleSuggestionState = buildTextStyleSuggestionState();
}
buildCounterSuggestedTextStyle--;
return o;
}
void checkSuggestedTextStyle(api.SuggestedTextStyle o) {
buildCounterSuggestedTextStyle++;
if (buildCounterSuggestedTextStyle < 3) {
checkTextStyle(o.textStyle! as api.TextStyle);
checkTextStyleSuggestionState(
o.textStyleSuggestionState! as api.TextStyleSuggestionState);
}
buildCounterSuggestedTextStyle--;
}
core.int buildCounterTabStop = 0;
api.TabStop buildTabStop() {
var o = api.TabStop();
buildCounterTabStop++;
if (buildCounterTabStop < 3) {
o.alignment = 'foo';
o.offset = buildDimension();
}
buildCounterTabStop--;
return o;
}
void checkTabStop(api.TabStop o) {
buildCounterTabStop++;
if (buildCounterTabStop < 3) {
unittest.expect(
o.alignment!,
unittest.equals('foo'),
);
checkDimension(o.offset! as api.Dimension);
}
buildCounterTabStop--;
}
core.List<core.String> buildUnnamed6423() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6423(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.List<core.String> buildUnnamed6424() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6424(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.List<api.TableRow> buildUnnamed6425() {
var o = <api.TableRow>[];
o.add(buildTableRow());
o.add(buildTableRow());
return o;
}
void checkUnnamed6425(core.List<api.TableRow> o) {
unittest.expect(o, unittest.hasLength(2));
checkTableRow(o[0] as api.TableRow);
checkTableRow(o[1] as api.TableRow);
}
core.int buildCounterTable = 0;
api.Table buildTable() {
var o = api.Table();
buildCounterTable++;
if (buildCounterTable < 3) {
o.columns = 42;
o.rows = 42;
o.suggestedDeletionIds = buildUnnamed6423();
o.suggestedInsertionIds = buildUnnamed6424();
o.tableRows = buildUnnamed6425();
o.tableStyle = buildTableStyle();
}
buildCounterTable--;
return o;
}
void checkTable(api.Table o) {
buildCounterTable++;
if (buildCounterTable < 3) {
unittest.expect(
o.columns!,
unittest.equals(42),
);
unittest.expect(
o.rows!,
unittest.equals(42),
);
checkUnnamed6423(o.suggestedDeletionIds!);
checkUnnamed6424(o.suggestedInsertionIds!);
checkUnnamed6425(o.tableRows!);
checkTableStyle(o.tableStyle! as api.TableStyle);
}
buildCounterTable--;
}
core.List<api.StructuralElement> buildUnnamed6426() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed6426(core.List<api.StructuralElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkStructuralElement(o[0] as api.StructuralElement);
checkStructuralElement(o[1] as api.StructuralElement);
}
core.List<core.String> buildUnnamed6427() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6427(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.List<core.String> buildUnnamed6428() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6428(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.Map<core.String, api.SuggestedTableCellStyle> buildUnnamed6429() {
var o = <core.String, api.SuggestedTableCellStyle>{};
o['x'] = buildSuggestedTableCellStyle();
o['y'] = buildSuggestedTableCellStyle();
return o;
}
void checkUnnamed6429(core.Map<core.String, api.SuggestedTableCellStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTableCellStyle(o['x']! as api.SuggestedTableCellStyle);
checkSuggestedTableCellStyle(o['y']! as api.SuggestedTableCellStyle);
}
core.int buildCounterTableCell = 0;
api.TableCell buildTableCell() {
var o = api.TableCell();
buildCounterTableCell++;
if (buildCounterTableCell < 3) {
o.content = buildUnnamed6426();
o.endIndex = 42;
o.startIndex = 42;
o.suggestedDeletionIds = buildUnnamed6427();
o.suggestedInsertionIds = buildUnnamed6428();
o.suggestedTableCellStyleChanges = buildUnnamed6429();
o.tableCellStyle = buildTableCellStyle();
}
buildCounterTableCell--;
return o;
}
void checkTableCell(api.TableCell o) {
buildCounterTableCell++;
if (buildCounterTableCell < 3) {
checkUnnamed6426(o.content!);
unittest.expect(
o.endIndex!,
unittest.equals(42),
);
unittest.expect(
o.startIndex!,
unittest.equals(42),
);
checkUnnamed6427(o.suggestedDeletionIds!);
checkUnnamed6428(o.suggestedInsertionIds!);
checkUnnamed6429(o.suggestedTableCellStyleChanges!);
checkTableCellStyle(o.tableCellStyle! as api.TableCellStyle);
}
buildCounterTableCell--;
}
core.int buildCounterTableCellBorder = 0;
api.TableCellBorder buildTableCellBorder() {
var o = api.TableCellBorder();
buildCounterTableCellBorder++;
if (buildCounterTableCellBorder < 3) {
o.color = buildOptionalColor();
o.dashStyle = 'foo';
o.width = buildDimension();
}
buildCounterTableCellBorder--;
return o;
}
void checkTableCellBorder(api.TableCellBorder o) {
buildCounterTableCellBorder++;
if (buildCounterTableCellBorder < 3) {
checkOptionalColor(o.color! as api.OptionalColor);
unittest.expect(
o.dashStyle!,
unittest.equals('foo'),
);
checkDimension(o.width! as api.Dimension);
}
buildCounterTableCellBorder--;
}
core.int buildCounterTableCellLocation = 0;
api.TableCellLocation buildTableCellLocation() {
var o = api.TableCellLocation();
buildCounterTableCellLocation++;
if (buildCounterTableCellLocation < 3) {
o.columnIndex = 42;
o.rowIndex = 42;
o.tableStartLocation = buildLocation();
}
buildCounterTableCellLocation--;
return o;
}
void checkTableCellLocation(api.TableCellLocation o) {
buildCounterTableCellLocation++;
if (buildCounterTableCellLocation < 3) {
unittest.expect(
o.columnIndex!,
unittest.equals(42),
);
unittest.expect(
o.rowIndex!,
unittest.equals(42),
);
checkLocation(o.tableStartLocation! as api.Location);
}
buildCounterTableCellLocation--;
}
core.int buildCounterTableCellStyle = 0;
api.TableCellStyle buildTableCellStyle() {
var o = api.TableCellStyle();
buildCounterTableCellStyle++;
if (buildCounterTableCellStyle < 3) {
o.backgroundColor = buildOptionalColor();
o.borderBottom = buildTableCellBorder();
o.borderLeft = buildTableCellBorder();
o.borderRight = buildTableCellBorder();
o.borderTop = buildTableCellBorder();
o.columnSpan = 42;
o.contentAlignment = 'foo';
o.paddingBottom = buildDimension();
o.paddingLeft = buildDimension();
o.paddingRight = buildDimension();
o.paddingTop = buildDimension();
o.rowSpan = 42;
}
buildCounterTableCellStyle--;
return o;
}
void checkTableCellStyle(api.TableCellStyle o) {
buildCounterTableCellStyle++;
if (buildCounterTableCellStyle < 3) {
checkOptionalColor(o.backgroundColor! as api.OptionalColor);
checkTableCellBorder(o.borderBottom! as api.TableCellBorder);
checkTableCellBorder(o.borderLeft! as api.TableCellBorder);
checkTableCellBorder(o.borderRight! as api.TableCellBorder);
checkTableCellBorder(o.borderTop! as api.TableCellBorder);
unittest.expect(
o.columnSpan!,
unittest.equals(42),
);
unittest.expect(
o.contentAlignment!,
unittest.equals('foo'),
);
checkDimension(o.paddingBottom! as api.Dimension);
checkDimension(o.paddingLeft! as api.Dimension);
checkDimension(o.paddingRight! as api.Dimension);
checkDimension(o.paddingTop! as api.Dimension);
unittest.expect(
o.rowSpan!,
unittest.equals(42),
);
}
buildCounterTableCellStyle--;
}
core.int buildCounterTableCellStyleSuggestionState = 0;
api.TableCellStyleSuggestionState buildTableCellStyleSuggestionState() {
var o = api.TableCellStyleSuggestionState();
buildCounterTableCellStyleSuggestionState++;
if (buildCounterTableCellStyleSuggestionState < 3) {
o.backgroundColorSuggested = true;
o.borderBottomSuggested = true;
o.borderLeftSuggested = true;
o.borderRightSuggested = true;
o.borderTopSuggested = true;
o.columnSpanSuggested = true;
o.contentAlignmentSuggested = true;
o.paddingBottomSuggested = true;
o.paddingLeftSuggested = true;
o.paddingRightSuggested = true;
o.paddingTopSuggested = true;
o.rowSpanSuggested = true;
}
buildCounterTableCellStyleSuggestionState--;
return o;
}
void checkTableCellStyleSuggestionState(api.TableCellStyleSuggestionState o) {
buildCounterTableCellStyleSuggestionState++;
if (buildCounterTableCellStyleSuggestionState < 3) {
unittest.expect(o.backgroundColorSuggested!, unittest.isTrue);
unittest.expect(o.borderBottomSuggested!, unittest.isTrue);
unittest.expect(o.borderLeftSuggested!, unittest.isTrue);
unittest.expect(o.borderRightSuggested!, unittest.isTrue);
unittest.expect(o.borderTopSuggested!, unittest.isTrue);
unittest.expect(o.columnSpanSuggested!, unittest.isTrue);
unittest.expect(o.contentAlignmentSuggested!, unittest.isTrue);
unittest.expect(o.paddingBottomSuggested!, unittest.isTrue);
unittest.expect(o.paddingLeftSuggested!, unittest.isTrue);
unittest.expect(o.paddingRightSuggested!, unittest.isTrue);
unittest.expect(o.paddingTopSuggested!, unittest.isTrue);
unittest.expect(o.rowSpanSuggested!, unittest.isTrue);
}
buildCounterTableCellStyleSuggestionState--;
}
core.int buildCounterTableColumnProperties = 0;
api.TableColumnProperties buildTableColumnProperties() {
var o = api.TableColumnProperties();
buildCounterTableColumnProperties++;
if (buildCounterTableColumnProperties < 3) {
o.width = buildDimension();
o.widthType = 'foo';
}
buildCounterTableColumnProperties--;
return o;
}
void checkTableColumnProperties(api.TableColumnProperties o) {
buildCounterTableColumnProperties++;
if (buildCounterTableColumnProperties < 3) {
checkDimension(o.width! as api.Dimension);
unittest.expect(
o.widthType!,
unittest.equals('foo'),
);
}
buildCounterTableColumnProperties--;
}
core.List<api.StructuralElement> buildUnnamed6430() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed6430(core.List<api.StructuralElement> o) {
unittest.expect(o, unittest.hasLength(2));
checkStructuralElement(o[0] as api.StructuralElement);
checkStructuralElement(o[1] as api.StructuralElement);
}
core.List<core.String> buildUnnamed6431() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6431(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.List<core.String> buildUnnamed6432() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6432(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 buildCounterTableOfContents = 0;
api.TableOfContents buildTableOfContents() {
var o = api.TableOfContents();
buildCounterTableOfContents++;
if (buildCounterTableOfContents < 3) {
o.content = buildUnnamed6430();
o.suggestedDeletionIds = buildUnnamed6431();
o.suggestedInsertionIds = buildUnnamed6432();
}
buildCounterTableOfContents--;
return o;
}
void checkTableOfContents(api.TableOfContents o) {
buildCounterTableOfContents++;
if (buildCounterTableOfContents < 3) {
checkUnnamed6430(o.content!);
checkUnnamed6431(o.suggestedDeletionIds!);
checkUnnamed6432(o.suggestedInsertionIds!);
}
buildCounterTableOfContents--;
}
core.int buildCounterTableRange = 0;
api.TableRange buildTableRange() {
var o = api.TableRange();
buildCounterTableRange++;
if (buildCounterTableRange < 3) {
o.columnSpan = 42;
o.rowSpan = 42;
o.tableCellLocation = buildTableCellLocation();
}
buildCounterTableRange--;
return o;
}
void checkTableRange(api.TableRange o) {
buildCounterTableRange++;
if (buildCounterTableRange < 3) {
unittest.expect(
o.columnSpan!,
unittest.equals(42),
);
unittest.expect(
o.rowSpan!,
unittest.equals(42),
);
checkTableCellLocation(o.tableCellLocation! as api.TableCellLocation);
}
buildCounterTableRange--;
}
core.List<core.String> buildUnnamed6433() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6433(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.List<core.String> buildUnnamed6434() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6434(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.Map<core.String, api.SuggestedTableRowStyle> buildUnnamed6435() {
var o = <core.String, api.SuggestedTableRowStyle>{};
o['x'] = buildSuggestedTableRowStyle();
o['y'] = buildSuggestedTableRowStyle();
return o;
}
void checkUnnamed6435(core.Map<core.String, api.SuggestedTableRowStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTableRowStyle(o['x']! as api.SuggestedTableRowStyle);
checkSuggestedTableRowStyle(o['y']! as api.SuggestedTableRowStyle);
}
core.List<api.TableCell> buildUnnamed6436() {
var o = <api.TableCell>[];
o.add(buildTableCell());
o.add(buildTableCell());
return o;
}
void checkUnnamed6436(core.List<api.TableCell> o) {
unittest.expect(o, unittest.hasLength(2));
checkTableCell(o[0] as api.TableCell);
checkTableCell(o[1] as api.TableCell);
}
core.int buildCounterTableRow = 0;
api.TableRow buildTableRow() {
var o = api.TableRow();
buildCounterTableRow++;
if (buildCounterTableRow < 3) {
o.endIndex = 42;
o.startIndex = 42;
o.suggestedDeletionIds = buildUnnamed6433();
o.suggestedInsertionIds = buildUnnamed6434();
o.suggestedTableRowStyleChanges = buildUnnamed6435();
o.tableCells = buildUnnamed6436();
o.tableRowStyle = buildTableRowStyle();
}
buildCounterTableRow--;
return o;
}
void checkTableRow(api.TableRow o) {
buildCounterTableRow++;
if (buildCounterTableRow < 3) {
unittest.expect(
o.endIndex!,
unittest.equals(42),
);
unittest.expect(
o.startIndex!,
unittest.equals(42),
);
checkUnnamed6433(o.suggestedDeletionIds!);
checkUnnamed6434(o.suggestedInsertionIds!);
checkUnnamed6435(o.suggestedTableRowStyleChanges!);
checkUnnamed6436(o.tableCells!);
checkTableRowStyle(o.tableRowStyle! as api.TableRowStyle);
}
buildCounterTableRow--;
}
core.int buildCounterTableRowStyle = 0;
api.TableRowStyle buildTableRowStyle() {
var o = api.TableRowStyle();
buildCounterTableRowStyle++;
if (buildCounterTableRowStyle < 3) {
o.minRowHeight = buildDimension();
}
buildCounterTableRowStyle--;
return o;
}
void checkTableRowStyle(api.TableRowStyle o) {
buildCounterTableRowStyle++;
if (buildCounterTableRowStyle < 3) {
checkDimension(o.minRowHeight! as api.Dimension);
}
buildCounterTableRowStyle--;
}
core.int buildCounterTableRowStyleSuggestionState = 0;
api.TableRowStyleSuggestionState buildTableRowStyleSuggestionState() {
var o = api.TableRowStyleSuggestionState();
buildCounterTableRowStyleSuggestionState++;
if (buildCounterTableRowStyleSuggestionState < 3) {
o.minRowHeightSuggested = true;
}
buildCounterTableRowStyleSuggestionState--;
return o;
}
void checkTableRowStyleSuggestionState(api.TableRowStyleSuggestionState o) {
buildCounterTableRowStyleSuggestionState++;
if (buildCounterTableRowStyleSuggestionState < 3) {
unittest.expect(o.minRowHeightSuggested!, unittest.isTrue);
}
buildCounterTableRowStyleSuggestionState--;
}
core.List<api.TableColumnProperties> buildUnnamed6437() {
var o = <api.TableColumnProperties>[];
o.add(buildTableColumnProperties());
o.add(buildTableColumnProperties());
return o;
}
void checkUnnamed6437(core.List<api.TableColumnProperties> o) {
unittest.expect(o, unittest.hasLength(2));
checkTableColumnProperties(o[0] as api.TableColumnProperties);
checkTableColumnProperties(o[1] as api.TableColumnProperties);
}
core.int buildCounterTableStyle = 0;
api.TableStyle buildTableStyle() {
var o = api.TableStyle();
buildCounterTableStyle++;
if (buildCounterTableStyle < 3) {
o.tableColumnProperties = buildUnnamed6437();
}
buildCounterTableStyle--;
return o;
}
void checkTableStyle(api.TableStyle o) {
buildCounterTableStyle++;
if (buildCounterTableStyle < 3) {
checkUnnamed6437(o.tableColumnProperties!);
}
buildCounterTableStyle--;
}
core.List<core.String> buildUnnamed6438() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6438(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.List<core.String> buildUnnamed6439() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed6439(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.Map<core.String, api.SuggestedTextStyle> buildUnnamed6440() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed6440(core.Map<core.String, api.SuggestedTextStyle> o) {
unittest.expect(o, unittest.hasLength(2));
checkSuggestedTextStyle(o['x']! as api.SuggestedTextStyle);
checkSuggestedTextStyle(o['y']! as api.SuggestedTextStyle);
}
core.int buildCounterTextRun = 0;
api.TextRun buildTextRun() {
var o = api.TextRun();
buildCounterTextRun++;
if (buildCounterTextRun < 3) {
o.content = 'foo';
o.suggestedDeletionIds = buildUnnamed6438();
o.suggestedInsertionIds = buildUnnamed6439();
o.suggestedTextStyleChanges = buildUnnamed6440();
o.textStyle = buildTextStyle();
}
buildCounterTextRun--;
return o;
}
void checkTextRun(api.TextRun o) {
buildCounterTextRun++;
if (buildCounterTextRun < 3) {
unittest.expect(
o.content!,
unittest.equals('foo'),
);
checkUnnamed6438(o.suggestedDeletionIds!);
checkUnnamed6439(o.suggestedInsertionIds!);
checkUnnamed6440(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterTextRun--;
}
core.int buildCounterTextStyle = 0;
api.TextStyle buildTextStyle() {
var o = api.TextStyle();
buildCounterTextStyle++;
if (buildCounterTextStyle < 3) {
o.backgroundColor = buildOptionalColor();
o.baselineOffset = 'foo';
o.bold = true;
o.fontSize = buildDimension();
o.foregroundColor = buildOptionalColor();
o.italic = true;
o.link = buildLink();
o.smallCaps = true;
o.strikethrough = true;
o.underline = true;
o.weightedFontFamily = buildWeightedFontFamily();
}
buildCounterTextStyle--;
return o;
}
void checkTextStyle(api.TextStyle o) {
buildCounterTextStyle++;
if (buildCounterTextStyle < 3) {
checkOptionalColor(o.backgroundColor! as api.OptionalColor);
unittest.expect(
o.baselineOffset!,
unittest.equals('foo'),
);
unittest.expect(o.bold!, unittest.isTrue);
checkDimension(o.fontSize! as api.Dimension);
checkOptionalColor(o.foregroundColor! as api.OptionalColor);
unittest.expect(o.italic!, unittest.isTrue);
checkLink(o.link! as api.Link);
unittest.expect(o.smallCaps!, unittest.isTrue);
unittest.expect(o.strikethrough!, unittest.isTrue);
unittest.expect(o.underline!, unittest.isTrue);
checkWeightedFontFamily(o.weightedFontFamily! as api.WeightedFontFamily);
}
buildCounterTextStyle--;
}
core.int buildCounterTextStyleSuggestionState = 0;
api.TextStyleSuggestionState buildTextStyleSuggestionState() {
var o = api.TextStyleSuggestionState();
buildCounterTextStyleSuggestionState++;
if (buildCounterTextStyleSuggestionState < 3) {
o.backgroundColorSuggested = true;
o.baselineOffsetSuggested = true;
o.boldSuggested = true;
o.fontSizeSuggested = true;
o.foregroundColorSuggested = true;
o.italicSuggested = true;
o.linkSuggested = true;
o.smallCapsSuggested = true;
o.strikethroughSuggested = true;
o.underlineSuggested = true;
o.weightedFontFamilySuggested = true;
}
buildCounterTextStyleSuggestionState--;
return o;
}
void checkTextStyleSuggestionState(api.TextStyleSuggestionState o) {
buildCounterTextStyleSuggestionState++;
if (buildCounterTextStyleSuggestionState < 3) {
unittest.expect(o.backgroundColorSuggested!, unittest.isTrue);
unittest.expect(o.baselineOffsetSuggested!, unittest.isTrue);
unittest.expect(o.boldSuggested!, unittest.isTrue);
unittest.expect(o.fontSizeSuggested!, unittest.isTrue);
unittest.expect(o.foregroundColorSuggested!, unittest.isTrue);
unittest.expect(o.italicSuggested!, unittest.isTrue);
unittest.expect(o.linkSuggested!, unittest.isTrue);
unittest.expect(o.smallCapsSuggested!, unittest.isTrue);
unittest.expect(o.strikethroughSuggested!, unittest.isTrue);
unittest.expect(o.underlineSuggested!, unittest.isTrue);
unittest.expect(o.weightedFontFamilySuggested!, unittest.isTrue);
}
buildCounterTextStyleSuggestionState--;
}
core.int buildCounterUnmergeTableCellsRequest = 0;
api.UnmergeTableCellsRequest buildUnmergeTableCellsRequest() {
var o = api.UnmergeTableCellsRequest();
buildCounterUnmergeTableCellsRequest++;
if (buildCounterUnmergeTableCellsRequest < 3) {
o.tableRange = buildTableRange();
}
buildCounterUnmergeTableCellsRequest--;
return o;
}
void checkUnmergeTableCellsRequest(api.UnmergeTableCellsRequest o) {
buildCounterUnmergeTableCellsRequest++;
if (buildCounterUnmergeTableCellsRequest < 3) {
checkTableRange(o.tableRange! as api.TableRange);
}
buildCounterUnmergeTableCellsRequest--;
}
core.int buildCounterUpdateDocumentStyleRequest = 0;
api.UpdateDocumentStyleRequest buildUpdateDocumentStyleRequest() {
var o = api.UpdateDocumentStyleRequest();
buildCounterUpdateDocumentStyleRequest++;
if (buildCounterUpdateDocumentStyleRequest < 3) {
o.documentStyle = buildDocumentStyle();
o.fields = 'foo';
}
buildCounterUpdateDocumentStyleRequest--;
return o;
}
void checkUpdateDocumentStyleRequest(api.UpdateDocumentStyleRequest o) {
buildCounterUpdateDocumentStyleRequest++;
if (buildCounterUpdateDocumentStyleRequest < 3) {
checkDocumentStyle(o.documentStyle! as api.DocumentStyle);
unittest.expect(
o.fields!,
unittest.equals('foo'),
);
}
buildCounterUpdateDocumentStyleRequest--;
}
core.int buildCounterUpdateParagraphStyleRequest = 0;
api.UpdateParagraphStyleRequest buildUpdateParagraphStyleRequest() {
var o = api.UpdateParagraphStyleRequest();
buildCounterUpdateParagraphStyleRequest++;
if (buildCounterUpdateParagraphStyleRequest < 3) {
o.fields = 'foo';
o.paragraphStyle = buildParagraphStyle();
o.range = buildRange();
}
buildCounterUpdateParagraphStyleRequest--;
return o;
}
void checkUpdateParagraphStyleRequest(api.UpdateParagraphStyleRequest o) {
buildCounterUpdateParagraphStyleRequest++;
if (buildCounterUpdateParagraphStyleRequest < 3) {
unittest.expect(
o.fields!,
unittest.equals('foo'),
);
checkParagraphStyle(o.paragraphStyle! as api.ParagraphStyle);
checkRange(o.range! as api.Range);
}
buildCounterUpdateParagraphStyleRequest--;
}
core.int buildCounterUpdateSectionStyleRequest = 0;
api.UpdateSectionStyleRequest buildUpdateSectionStyleRequest() {
var o = api.UpdateSectionStyleRequest();
buildCounterUpdateSectionStyleRequest++;
if (buildCounterUpdateSectionStyleRequest < 3) {
o.fields = 'foo';
o.range = buildRange();
o.sectionStyle = buildSectionStyle();
}
buildCounterUpdateSectionStyleRequest--;
return o;
}
void checkUpdateSectionStyleRequest(api.UpdateSectionStyleRequest o) {
buildCounterUpdateSectionStyleRequest++;
if (buildCounterUpdateSectionStyleRequest < 3) {
unittest.expect(
o.fields!,
unittest.equals('foo'),
);
checkRange(o.range! as api.Range);
checkSectionStyle(o.sectionStyle! as api.SectionStyle);
}
buildCounterUpdateSectionStyleRequest--;
}
core.int buildCounterUpdateTableCellStyleRequest = 0;
api.UpdateTableCellStyleRequest buildUpdateTableCellStyleRequest() {
var o = api.UpdateTableCellStyleRequest();
buildCounterUpdateTableCellStyleRequest++;
if (buildCounterUpdateTableCellStyleRequest < 3) {
o.fields = 'foo';
o.tableCellStyle = buildTableCellStyle();
o.tableRange = buildTableRange();
o.tableStartLocation = buildLocation();
}
buildCounterUpdateTableCellStyleRequest--;
return o;
}
void checkUpdateTableCellStyleRequest(api.UpdateTableCellStyleRequest o) {
buildCounterUpdateTableCellStyleRequest++;
if (buildCounterUpdateTableCellStyleRequest < 3) {
unittest.expect(
o.fields!,
unittest.equals('foo'),
);
checkTableCellStyle(o.tableCellStyle! as api.TableCellStyle);
checkTableRange(o.tableRange! as api.TableRange);
checkLocation(o.tableStartLocation! as api.Location);
}
buildCounterUpdateTableCellStyleRequest--;
}
core.List<core.int> buildUnnamed6441() {
var o = <core.int>[];
o.add(42);
o.add(42);
return o;
}
void checkUnnamed6441(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.int buildCounterUpdateTableColumnPropertiesRequest = 0;
api.UpdateTableColumnPropertiesRequest
buildUpdateTableColumnPropertiesRequest() {
var o = api.UpdateTableColumnPropertiesRequest();
buildCounterUpdateTableColumnPropertiesRequest++;
if (buildCounterUpdateTableColumnPropertiesRequest < 3) {
o.columnIndices = buildUnnamed6441();
o.fields = 'foo';
o.tableColumnProperties = buildTableColumnProperties();
o.tableStartLocation = buildLocation();
}
buildCounterUpdateTableColumnPropertiesRequest--;
return o;
}
void checkUpdateTableColumnPropertiesRequest(
api.UpdateTableColumnPropertiesRequest o) {
buildCounterUpdateTableColumnPropertiesRequest++;
if (buildCounterUpdateTableColumnPropertiesRequest < 3) {
checkUnnamed6441(o.columnIndices!);
unittest.expect(
o.fields!,
unittest.equals('foo'),
);
checkTableColumnProperties(
o.tableColumnProperties! as api.TableColumnProperties);
checkLocation(o.tableStartLocation! as api.Location);
}
buildCounterUpdateTableColumnPropertiesRequest--;
}
core.List<core.int> buildUnnamed6442() {
var o = <core.int>[];
o.add(42);
o.add(42);
return o;
}
void checkUnnamed6442(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.int buildCounterUpdateTableRowStyleRequest = 0;
api.UpdateTableRowStyleRequest buildUpdateTableRowStyleRequest() {
var o = api.UpdateTableRowStyleRequest();
buildCounterUpdateTableRowStyleRequest++;
if (buildCounterUpdateTableRowStyleRequest < 3) {
o.fields = 'foo';
o.rowIndices = buildUnnamed6442();
o.tableRowStyle = buildTableRowStyle();
o.tableStartLocation = buildLocation();
}
buildCounterUpdateTableRowStyleRequest--;
return o;
}
void checkUpdateTableRowStyleRequest(api.UpdateTableRowStyleRequest o) {
buildCounterUpdateTableRowStyleRequest++;
if (buildCounterUpdateTableRowStyleRequest < 3) {
unittest.expect(
o.fields!,
unittest.equals('foo'),
);
checkUnnamed6442(o.rowIndices!);
checkTableRowStyle(o.tableRowStyle! as api.TableRowStyle);
checkLocation(o.tableStartLocation! as api.Location);
}
buildCounterUpdateTableRowStyleRequest--;
}
core.int buildCounterUpdateTextStyleRequest = 0;
api.UpdateTextStyleRequest buildUpdateTextStyleRequest() {
var o = api.UpdateTextStyleRequest();
buildCounterUpdateTextStyleRequest++;
if (buildCounterUpdateTextStyleRequest < 3) {
o.fields = 'foo';
o.range = buildRange();
o.textStyle = buildTextStyle();
}
buildCounterUpdateTextStyleRequest--;
return o;
}
void checkUpdateTextStyleRequest(api.UpdateTextStyleRequest o) {
buildCounterUpdateTextStyleRequest++;
if (buildCounterUpdateTextStyleRequest < 3) {
unittest.expect(
o.fields!,
unittest.equals('foo'),
);
checkRange(o.range! as api.Range);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterUpdateTextStyleRequest--;
}
core.int buildCounterWeightedFontFamily = 0;
api.WeightedFontFamily buildWeightedFontFamily() {
var o = api.WeightedFontFamily();
buildCounterWeightedFontFamily++;
if (buildCounterWeightedFontFamily < 3) {
o.fontFamily = 'foo';
o.weight = 42;
}
buildCounterWeightedFontFamily--;
return o;
}
void checkWeightedFontFamily(api.WeightedFontFamily o) {
buildCounterWeightedFontFamily++;
if (buildCounterWeightedFontFamily < 3) {
unittest.expect(
o.fontFamily!,
unittest.equals('foo'),
);
unittest.expect(
o.weight!,
unittest.equals(42),
);
}
buildCounterWeightedFontFamily--;
}
core.int buildCounterWriteControl = 0;
api.WriteControl buildWriteControl() {
var o = api.WriteControl();
buildCounterWriteControl++;
if (buildCounterWriteControl < 3) {
o.requiredRevisionId = 'foo';
o.targetRevisionId = 'foo';
}
buildCounterWriteControl--;
return o;
}
void checkWriteControl(api.WriteControl o) {
buildCounterWriteControl++;
if (buildCounterWriteControl < 3) {
unittest.expect(
o.requiredRevisionId!,
unittest.equals('foo'),
);
unittest.expect(
o.targetRevisionId!,
unittest.equals('foo'),
);
}
buildCounterWriteControl--;
}
void main() {
unittest.group('obj-schema-AutoText', () {
unittest.test('to-json--from-json', () {
var o = buildAutoText();
var od = api.AutoText.fromJson(o.toJson());
checkAutoText(od as api.AutoText);
});
});
unittest.group('obj-schema-Background', () {
unittest.test('to-json--from-json', () {
var o = buildBackground();
var od = api.Background.fromJson(o.toJson());
checkBackground(od as api.Background);
});
});
unittest.group('obj-schema-BackgroundSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildBackgroundSuggestionState();
var od = api.BackgroundSuggestionState.fromJson(o.toJson());
checkBackgroundSuggestionState(od as api.BackgroundSuggestionState);
});
});
unittest.group('obj-schema-BatchUpdateDocumentRequest', () {
unittest.test('to-json--from-json', () {
var o = buildBatchUpdateDocumentRequest();
var od = api.BatchUpdateDocumentRequest.fromJson(o.toJson());
checkBatchUpdateDocumentRequest(od as api.BatchUpdateDocumentRequest);
});
});
unittest.group('obj-schema-BatchUpdateDocumentResponse', () {
unittest.test('to-json--from-json', () {
var o = buildBatchUpdateDocumentResponse();
var od = api.BatchUpdateDocumentResponse.fromJson(o.toJson());
checkBatchUpdateDocumentResponse(od as api.BatchUpdateDocumentResponse);
});
});
unittest.group('obj-schema-Body', () {
unittest.test('to-json--from-json', () {
var o = buildBody();
var od = api.Body.fromJson(o.toJson());
checkBody(od as api.Body);
});
});
unittest.group('obj-schema-Bullet', () {
unittest.test('to-json--from-json', () {
var o = buildBullet();
var od = api.Bullet.fromJson(o.toJson());
checkBullet(od as api.Bullet);
});
});
unittest.group('obj-schema-BulletSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildBulletSuggestionState();
var od = api.BulletSuggestionState.fromJson(o.toJson());
checkBulletSuggestionState(od as api.BulletSuggestionState);
});
});
unittest.group('obj-schema-Color', () {
unittest.test('to-json--from-json', () {
var o = buildColor();
var od = api.Color.fromJson(o.toJson());
checkColor(od as api.Color);
});
});
unittest.group('obj-schema-ColumnBreak', () {
unittest.test('to-json--from-json', () {
var o = buildColumnBreak();
var od = api.ColumnBreak.fromJson(o.toJson());
checkColumnBreak(od as api.ColumnBreak);
});
});
unittest.group('obj-schema-CreateFooterRequest', () {
unittest.test('to-json--from-json', () {
var o = buildCreateFooterRequest();
var od = api.CreateFooterRequest.fromJson(o.toJson());
checkCreateFooterRequest(od as api.CreateFooterRequest);
});
});
unittest.group('obj-schema-CreateFooterResponse', () {
unittest.test('to-json--from-json', () {
var o = buildCreateFooterResponse();
var od = api.CreateFooterResponse.fromJson(o.toJson());
checkCreateFooterResponse(od as api.CreateFooterResponse);
});
});
unittest.group('obj-schema-CreateFootnoteRequest', () {
unittest.test('to-json--from-json', () {
var o = buildCreateFootnoteRequest();
var od = api.CreateFootnoteRequest.fromJson(o.toJson());
checkCreateFootnoteRequest(od as api.CreateFootnoteRequest);
});
});
unittest.group('obj-schema-CreateFootnoteResponse', () {
unittest.test('to-json--from-json', () {
var o = buildCreateFootnoteResponse();
var od = api.CreateFootnoteResponse.fromJson(o.toJson());
checkCreateFootnoteResponse(od as api.CreateFootnoteResponse);
});
});
unittest.group('obj-schema-CreateHeaderRequest', () {
unittest.test('to-json--from-json', () {
var o = buildCreateHeaderRequest();
var od = api.CreateHeaderRequest.fromJson(o.toJson());
checkCreateHeaderRequest(od as api.CreateHeaderRequest);
});
});
unittest.group('obj-schema-CreateHeaderResponse', () {
unittest.test('to-json--from-json', () {
var o = buildCreateHeaderResponse();
var od = api.CreateHeaderResponse.fromJson(o.toJson());
checkCreateHeaderResponse(od as api.CreateHeaderResponse);
});
});
unittest.group('obj-schema-CreateNamedRangeRequest', () {
unittest.test('to-json--from-json', () {
var o = buildCreateNamedRangeRequest();
var od = api.CreateNamedRangeRequest.fromJson(o.toJson());
checkCreateNamedRangeRequest(od as api.CreateNamedRangeRequest);
});
});
unittest.group('obj-schema-CreateNamedRangeResponse', () {
unittest.test('to-json--from-json', () {
var o = buildCreateNamedRangeResponse();
var od = api.CreateNamedRangeResponse.fromJson(o.toJson());
checkCreateNamedRangeResponse(od as api.CreateNamedRangeResponse);
});
});
unittest.group('obj-schema-CreateParagraphBulletsRequest', () {
unittest.test('to-json--from-json', () {
var o = buildCreateParagraphBulletsRequest();
var od = api.CreateParagraphBulletsRequest.fromJson(o.toJson());
checkCreateParagraphBulletsRequest(
od as api.CreateParagraphBulletsRequest);
});
});
unittest.group('obj-schema-CropProperties', () {
unittest.test('to-json--from-json', () {
var o = buildCropProperties();
var od = api.CropProperties.fromJson(o.toJson());
checkCropProperties(od as api.CropProperties);
});
});
unittest.group('obj-schema-CropPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildCropPropertiesSuggestionState();
var od = api.CropPropertiesSuggestionState.fromJson(o.toJson());
checkCropPropertiesSuggestionState(
od as api.CropPropertiesSuggestionState);
});
});
unittest.group('obj-schema-DeleteContentRangeRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeleteContentRangeRequest();
var od = api.DeleteContentRangeRequest.fromJson(o.toJson());
checkDeleteContentRangeRequest(od as api.DeleteContentRangeRequest);
});
});
unittest.group('obj-schema-DeleteFooterRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeleteFooterRequest();
var od = api.DeleteFooterRequest.fromJson(o.toJson());
checkDeleteFooterRequest(od as api.DeleteFooterRequest);
});
});
unittest.group('obj-schema-DeleteHeaderRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeleteHeaderRequest();
var od = api.DeleteHeaderRequest.fromJson(o.toJson());
checkDeleteHeaderRequest(od as api.DeleteHeaderRequest);
});
});
unittest.group('obj-schema-DeleteNamedRangeRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeleteNamedRangeRequest();
var od = api.DeleteNamedRangeRequest.fromJson(o.toJson());
checkDeleteNamedRangeRequest(od as api.DeleteNamedRangeRequest);
});
});
unittest.group('obj-schema-DeleteParagraphBulletsRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeleteParagraphBulletsRequest();
var od = api.DeleteParagraphBulletsRequest.fromJson(o.toJson());
checkDeleteParagraphBulletsRequest(
od as api.DeleteParagraphBulletsRequest);
});
});
unittest.group('obj-schema-DeletePositionedObjectRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeletePositionedObjectRequest();
var od = api.DeletePositionedObjectRequest.fromJson(o.toJson());
checkDeletePositionedObjectRequest(
od as api.DeletePositionedObjectRequest);
});
});
unittest.group('obj-schema-DeleteTableColumnRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeleteTableColumnRequest();
var od = api.DeleteTableColumnRequest.fromJson(o.toJson());
checkDeleteTableColumnRequest(od as api.DeleteTableColumnRequest);
});
});
unittest.group('obj-schema-DeleteTableRowRequest', () {
unittest.test('to-json--from-json', () {
var o = buildDeleteTableRowRequest();
var od = api.DeleteTableRowRequest.fromJson(o.toJson());
checkDeleteTableRowRequest(od as api.DeleteTableRowRequest);
});
});
unittest.group('obj-schema-Dimension', () {
unittest.test('to-json--from-json', () {
var o = buildDimension();
var od = api.Dimension.fromJson(o.toJson());
checkDimension(od as api.Dimension);
});
});
unittest.group('obj-schema-Document', () {
unittest.test('to-json--from-json', () {
var o = buildDocument();
var od = api.Document.fromJson(o.toJson());
checkDocument(od as api.Document);
});
});
unittest.group('obj-schema-DocumentStyle', () {
unittest.test('to-json--from-json', () {
var o = buildDocumentStyle();
var od = api.DocumentStyle.fromJson(o.toJson());
checkDocumentStyle(od as api.DocumentStyle);
});
});
unittest.group('obj-schema-DocumentStyleSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildDocumentStyleSuggestionState();
var od = api.DocumentStyleSuggestionState.fromJson(o.toJson());
checkDocumentStyleSuggestionState(od as api.DocumentStyleSuggestionState);
});
});
unittest.group('obj-schema-EmbeddedDrawingProperties', () {
unittest.test('to-json--from-json', () {
var o = buildEmbeddedDrawingProperties();
var od = api.EmbeddedDrawingProperties.fromJson(o.toJson());
checkEmbeddedDrawingProperties(od as api.EmbeddedDrawingProperties);
});
});
unittest.group('obj-schema-EmbeddedDrawingPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildEmbeddedDrawingPropertiesSuggestionState();
var od =
api.EmbeddedDrawingPropertiesSuggestionState.fromJson(o.toJson());
checkEmbeddedDrawingPropertiesSuggestionState(
od as api.EmbeddedDrawingPropertiesSuggestionState);
});
});
unittest.group('obj-schema-EmbeddedObject', () {
unittest.test('to-json--from-json', () {
var o = buildEmbeddedObject();
var od = api.EmbeddedObject.fromJson(o.toJson());
checkEmbeddedObject(od as api.EmbeddedObject);
});
});
unittest.group('obj-schema-EmbeddedObjectBorder', () {
unittest.test('to-json--from-json', () {
var o = buildEmbeddedObjectBorder();
var od = api.EmbeddedObjectBorder.fromJson(o.toJson());
checkEmbeddedObjectBorder(od as api.EmbeddedObjectBorder);
});
});
unittest.group('obj-schema-EmbeddedObjectBorderSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildEmbeddedObjectBorderSuggestionState();
var od = api.EmbeddedObjectBorderSuggestionState.fromJson(o.toJson());
checkEmbeddedObjectBorderSuggestionState(
od as api.EmbeddedObjectBorderSuggestionState);
});
});
unittest.group('obj-schema-EmbeddedObjectSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildEmbeddedObjectSuggestionState();
var od = api.EmbeddedObjectSuggestionState.fromJson(o.toJson());
checkEmbeddedObjectSuggestionState(
od as api.EmbeddedObjectSuggestionState);
});
});
unittest.group('obj-schema-EndOfSegmentLocation', () {
unittest.test('to-json--from-json', () {
var o = buildEndOfSegmentLocation();
var od = api.EndOfSegmentLocation.fromJson(o.toJson());
checkEndOfSegmentLocation(od as api.EndOfSegmentLocation);
});
});
unittest.group('obj-schema-Equation', () {
unittest.test('to-json--from-json', () {
var o = buildEquation();
var od = api.Equation.fromJson(o.toJson());
checkEquation(od as api.Equation);
});
});
unittest.group('obj-schema-Footer', () {
unittest.test('to-json--from-json', () {
var o = buildFooter();
var od = api.Footer.fromJson(o.toJson());
checkFooter(od as api.Footer);
});
});
unittest.group('obj-schema-Footnote', () {
unittest.test('to-json--from-json', () {
var o = buildFootnote();
var od = api.Footnote.fromJson(o.toJson());
checkFootnote(od as api.Footnote);
});
});
unittest.group('obj-schema-FootnoteReference', () {
unittest.test('to-json--from-json', () {
var o = buildFootnoteReference();
var od = api.FootnoteReference.fromJson(o.toJson());
checkFootnoteReference(od as api.FootnoteReference);
});
});
unittest.group('obj-schema-Header', () {
unittest.test('to-json--from-json', () {
var o = buildHeader();
var od = api.Header.fromJson(o.toJson());
checkHeader(od as api.Header);
});
});
unittest.group('obj-schema-HorizontalRule', () {
unittest.test('to-json--from-json', () {
var o = buildHorizontalRule();
var od = api.HorizontalRule.fromJson(o.toJson());
checkHorizontalRule(od as api.HorizontalRule);
});
});
unittest.group('obj-schema-ImageProperties', () {
unittest.test('to-json--from-json', () {
var o = buildImageProperties();
var od = api.ImageProperties.fromJson(o.toJson());
checkImageProperties(od as api.ImageProperties);
});
});
unittest.group('obj-schema-ImagePropertiesSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildImagePropertiesSuggestionState();
var od = api.ImagePropertiesSuggestionState.fromJson(o.toJson());
checkImagePropertiesSuggestionState(
od as api.ImagePropertiesSuggestionState);
});
});
unittest.group('obj-schema-InlineObject', () {
unittest.test('to-json--from-json', () {
var o = buildInlineObject();
var od = api.InlineObject.fromJson(o.toJson());
checkInlineObject(od as api.InlineObject);
});
});
unittest.group('obj-schema-InlineObjectElement', () {
unittest.test('to-json--from-json', () {
var o = buildInlineObjectElement();
var od = api.InlineObjectElement.fromJson(o.toJson());
checkInlineObjectElement(od as api.InlineObjectElement);
});
});
unittest.group('obj-schema-InlineObjectProperties', () {
unittest.test('to-json--from-json', () {
var o = buildInlineObjectProperties();
var od = api.InlineObjectProperties.fromJson(o.toJson());
checkInlineObjectProperties(od as api.InlineObjectProperties);
});
});
unittest.group('obj-schema-InlineObjectPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildInlineObjectPropertiesSuggestionState();
var od = api.InlineObjectPropertiesSuggestionState.fromJson(o.toJson());
checkInlineObjectPropertiesSuggestionState(
od as api.InlineObjectPropertiesSuggestionState);
});
});
unittest.group('obj-schema-InsertInlineImageRequest', () {
unittest.test('to-json--from-json', () {
var o = buildInsertInlineImageRequest();
var od = api.InsertInlineImageRequest.fromJson(o.toJson());
checkInsertInlineImageRequest(od as api.InsertInlineImageRequest);
});
});
unittest.group('obj-schema-InsertInlineImageResponse', () {
unittest.test('to-json--from-json', () {
var o = buildInsertInlineImageResponse();
var od = api.InsertInlineImageResponse.fromJson(o.toJson());
checkInsertInlineImageResponse(od as api.InsertInlineImageResponse);
});
});
unittest.group('obj-schema-InsertInlineSheetsChartResponse', () {
unittest.test('to-json--from-json', () {
var o = buildInsertInlineSheetsChartResponse();
var od = api.InsertInlineSheetsChartResponse.fromJson(o.toJson());
checkInsertInlineSheetsChartResponse(
od as api.InsertInlineSheetsChartResponse);
});
});
unittest.group('obj-schema-InsertPageBreakRequest', () {
unittest.test('to-json--from-json', () {
var o = buildInsertPageBreakRequest();
var od = api.InsertPageBreakRequest.fromJson(o.toJson());
checkInsertPageBreakRequest(od as api.InsertPageBreakRequest);
});
});
unittest.group('obj-schema-InsertSectionBreakRequest', () {
unittest.test('to-json--from-json', () {
var o = buildInsertSectionBreakRequest();
var od = api.InsertSectionBreakRequest.fromJson(o.toJson());
checkInsertSectionBreakRequest(od as api.InsertSectionBreakRequest);
});
});
unittest.group('obj-schema-InsertTableColumnRequest', () {
unittest.test('to-json--from-json', () {
var o = buildInsertTableColumnRequest();
var od = api.InsertTableColumnRequest.fromJson(o.toJson());
checkInsertTableColumnRequest(od as api.InsertTableColumnRequest);
});
});
unittest.group('obj-schema-InsertTableRequest', () {
unittest.test('to-json--from-json', () {
var o = buildInsertTableRequest();
var od = api.InsertTableRequest.fromJson(o.toJson());
checkInsertTableRequest(od as api.InsertTableRequest);
});
});
unittest.group('obj-schema-InsertTableRowRequest', () {
unittest.test('to-json--from-json', () {
var o = buildInsertTableRowRequest();
var od = api.InsertTableRowRequest.fromJson(o.toJson());
checkInsertTableRowRequest(od as api.InsertTableRowRequest);
});
});
unittest.group('obj-schema-InsertTextRequest', () {
unittest.test('to-json--from-json', () {
var o = buildInsertTextRequest();
var od = api.InsertTextRequest.fromJson(o.toJson());
checkInsertTextRequest(od as api.InsertTextRequest);
});
});
unittest.group('obj-schema-Link', () {
unittest.test('to-json--from-json', () {
var o = buildLink();
var od = api.Link.fromJson(o.toJson());
checkLink(od as api.Link);
});
});
unittest.group('obj-schema-LinkedContentReference', () {
unittest.test('to-json--from-json', () {
var o = buildLinkedContentReference();
var od = api.LinkedContentReference.fromJson(o.toJson());
checkLinkedContentReference(od as api.LinkedContentReference);
});
});
unittest.group('obj-schema-LinkedContentReferenceSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildLinkedContentReferenceSuggestionState();
var od = api.LinkedContentReferenceSuggestionState.fromJson(o.toJson());
checkLinkedContentReferenceSuggestionState(
od as api.LinkedContentReferenceSuggestionState);
});
});
unittest.group('obj-schema-List', () {
unittest.test('to-json--from-json', () {
var o = buildList();
var od = api.List.fromJson(o.toJson());
checkList(od as api.List);
});
});
unittest.group('obj-schema-ListProperties', () {
unittest.test('to-json--from-json', () {
var o = buildListProperties();
var od = api.ListProperties.fromJson(o.toJson());
checkListProperties(od as api.ListProperties);
});
});
unittest.group('obj-schema-ListPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildListPropertiesSuggestionState();
var od = api.ListPropertiesSuggestionState.fromJson(o.toJson());
checkListPropertiesSuggestionState(
od as api.ListPropertiesSuggestionState);
});
});
unittest.group('obj-schema-Location', () {
unittest.test('to-json--from-json', () {
var o = buildLocation();
var od = api.Location.fromJson(o.toJson());
checkLocation(od as api.Location);
});
});
unittest.group('obj-schema-MergeTableCellsRequest', () {
unittest.test('to-json--from-json', () {
var o = buildMergeTableCellsRequest();
var od = api.MergeTableCellsRequest.fromJson(o.toJson());
checkMergeTableCellsRequest(od as api.MergeTableCellsRequest);
});
});
unittest.group('obj-schema-NamedRange', () {
unittest.test('to-json--from-json', () {
var o = buildNamedRange();
var od = api.NamedRange.fromJson(o.toJson());
checkNamedRange(od as api.NamedRange);
});
});
unittest.group('obj-schema-NamedRanges', () {
unittest.test('to-json--from-json', () {
var o = buildNamedRanges();
var od = api.NamedRanges.fromJson(o.toJson());
checkNamedRanges(od as api.NamedRanges);
});
});
unittest.group('obj-schema-NamedStyle', () {
unittest.test('to-json--from-json', () {
var o = buildNamedStyle();
var od = api.NamedStyle.fromJson(o.toJson());
checkNamedStyle(od as api.NamedStyle);
});
});
unittest.group('obj-schema-NamedStyleSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildNamedStyleSuggestionState();
var od = api.NamedStyleSuggestionState.fromJson(o.toJson());
checkNamedStyleSuggestionState(od as api.NamedStyleSuggestionState);
});
});
unittest.group('obj-schema-NamedStyles', () {
unittest.test('to-json--from-json', () {
var o = buildNamedStyles();
var od = api.NamedStyles.fromJson(o.toJson());
checkNamedStyles(od as api.NamedStyles);
});
});
unittest.group('obj-schema-NamedStylesSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildNamedStylesSuggestionState();
var od = api.NamedStylesSuggestionState.fromJson(o.toJson());
checkNamedStylesSuggestionState(od as api.NamedStylesSuggestionState);
});
});
unittest.group('obj-schema-NestingLevel', () {
unittest.test('to-json--from-json', () {
var o = buildNestingLevel();
var od = api.NestingLevel.fromJson(o.toJson());
checkNestingLevel(od as api.NestingLevel);
});
});
unittest.group('obj-schema-NestingLevelSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildNestingLevelSuggestionState();
var od = api.NestingLevelSuggestionState.fromJson(o.toJson());
checkNestingLevelSuggestionState(od as api.NestingLevelSuggestionState);
});
});
unittest.group('obj-schema-ObjectReferences', () {
unittest.test('to-json--from-json', () {
var o = buildObjectReferences();
var od = api.ObjectReferences.fromJson(o.toJson());
checkObjectReferences(od as api.ObjectReferences);
});
});
unittest.group('obj-schema-OptionalColor', () {
unittest.test('to-json--from-json', () {
var o = buildOptionalColor();
var od = api.OptionalColor.fromJson(o.toJson());
checkOptionalColor(od as api.OptionalColor);
});
});
unittest.group('obj-schema-PageBreak', () {
unittest.test('to-json--from-json', () {
var o = buildPageBreak();
var od = api.PageBreak.fromJson(o.toJson());
checkPageBreak(od as api.PageBreak);
});
});
unittest.group('obj-schema-Paragraph', () {
unittest.test('to-json--from-json', () {
var o = buildParagraph();
var od = api.Paragraph.fromJson(o.toJson());
checkParagraph(od as api.Paragraph);
});
});
unittest.group('obj-schema-ParagraphBorder', () {
unittest.test('to-json--from-json', () {
var o = buildParagraphBorder();
var od = api.ParagraphBorder.fromJson(o.toJson());
checkParagraphBorder(od as api.ParagraphBorder);
});
});
unittest.group('obj-schema-ParagraphElement', () {
unittest.test('to-json--from-json', () {
var o = buildParagraphElement();
var od = api.ParagraphElement.fromJson(o.toJson());
checkParagraphElement(od as api.ParagraphElement);
});
});
unittest.group('obj-schema-ParagraphStyle', () {
unittest.test('to-json--from-json', () {
var o = buildParagraphStyle();
var od = api.ParagraphStyle.fromJson(o.toJson());
checkParagraphStyle(od as api.ParagraphStyle);
});
});
unittest.group('obj-schema-ParagraphStyleSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildParagraphStyleSuggestionState();
var od = api.ParagraphStyleSuggestionState.fromJson(o.toJson());
checkParagraphStyleSuggestionState(
od as api.ParagraphStyleSuggestionState);
});
});
unittest.group('obj-schema-PositionedObject', () {
unittest.test('to-json--from-json', () {
var o = buildPositionedObject();
var od = api.PositionedObject.fromJson(o.toJson());
checkPositionedObject(od as api.PositionedObject);
});
});
unittest.group('obj-schema-PositionedObjectPositioning', () {
unittest.test('to-json--from-json', () {
var o = buildPositionedObjectPositioning();
var od = api.PositionedObjectPositioning.fromJson(o.toJson());
checkPositionedObjectPositioning(od as api.PositionedObjectPositioning);
});
});
unittest.group('obj-schema-PositionedObjectPositioningSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildPositionedObjectPositioningSuggestionState();
var od =
api.PositionedObjectPositioningSuggestionState.fromJson(o.toJson());
checkPositionedObjectPositioningSuggestionState(
od as api.PositionedObjectPositioningSuggestionState);
});
});
unittest.group('obj-schema-PositionedObjectProperties', () {
unittest.test('to-json--from-json', () {
var o = buildPositionedObjectProperties();
var od = api.PositionedObjectProperties.fromJson(o.toJson());
checkPositionedObjectProperties(od as api.PositionedObjectProperties);
});
});
unittest.group('obj-schema-PositionedObjectPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildPositionedObjectPropertiesSuggestionState();
var od =
api.PositionedObjectPropertiesSuggestionState.fromJson(o.toJson());
checkPositionedObjectPropertiesSuggestionState(
od as api.PositionedObjectPropertiesSuggestionState);
});
});
unittest.group('obj-schema-Range', () {
unittest.test('to-json--from-json', () {
var o = buildRange();
var od = api.Range.fromJson(o.toJson());
checkRange(od as api.Range);
});
});
unittest.group('obj-schema-ReplaceAllTextRequest', () {
unittest.test('to-json--from-json', () {
var o = buildReplaceAllTextRequest();
var od = api.ReplaceAllTextRequest.fromJson(o.toJson());
checkReplaceAllTextRequest(od as api.ReplaceAllTextRequest);
});
});
unittest.group('obj-schema-ReplaceAllTextResponse', () {
unittest.test('to-json--from-json', () {
var o = buildReplaceAllTextResponse();
var od = api.ReplaceAllTextResponse.fromJson(o.toJson());
checkReplaceAllTextResponse(od as api.ReplaceAllTextResponse);
});
});
unittest.group('obj-schema-ReplaceImageRequest', () {
unittest.test('to-json--from-json', () {
var o = buildReplaceImageRequest();
var od = api.ReplaceImageRequest.fromJson(o.toJson());
checkReplaceImageRequest(od as api.ReplaceImageRequest);
});
});
unittest.group('obj-schema-ReplaceNamedRangeContentRequest', () {
unittest.test('to-json--from-json', () {
var o = buildReplaceNamedRangeContentRequest();
var od = api.ReplaceNamedRangeContentRequest.fromJson(o.toJson());
checkReplaceNamedRangeContentRequest(
od as api.ReplaceNamedRangeContentRequest);
});
});
unittest.group('obj-schema-Request', () {
unittest.test('to-json--from-json', () {
var o = buildRequest();
var od = api.Request.fromJson(o.toJson());
checkRequest(od as api.Request);
});
});
unittest.group('obj-schema-Response', () {
unittest.test('to-json--from-json', () {
var o = buildResponse();
var od = api.Response.fromJson(o.toJson());
checkResponse(od as api.Response);
});
});
unittest.group('obj-schema-RgbColor', () {
unittest.test('to-json--from-json', () {
var o = buildRgbColor();
var od = api.RgbColor.fromJson(o.toJson());
checkRgbColor(od as api.RgbColor);
});
});
unittest.group('obj-schema-SectionBreak', () {
unittest.test('to-json--from-json', () {
var o = buildSectionBreak();
var od = api.SectionBreak.fromJson(o.toJson());
checkSectionBreak(od as api.SectionBreak);
});
});
unittest.group('obj-schema-SectionColumnProperties', () {
unittest.test('to-json--from-json', () {
var o = buildSectionColumnProperties();
var od = api.SectionColumnProperties.fromJson(o.toJson());
checkSectionColumnProperties(od as api.SectionColumnProperties);
});
});
unittest.group('obj-schema-SectionStyle', () {
unittest.test('to-json--from-json', () {
var o = buildSectionStyle();
var od = api.SectionStyle.fromJson(o.toJson());
checkSectionStyle(od as api.SectionStyle);
});
});
unittest.group('obj-schema-Shading', () {
unittest.test('to-json--from-json', () {
var o = buildShading();
var od = api.Shading.fromJson(o.toJson());
checkShading(od as api.Shading);
});
});
unittest.group('obj-schema-ShadingSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildShadingSuggestionState();
var od = api.ShadingSuggestionState.fromJson(o.toJson());
checkShadingSuggestionState(od as api.ShadingSuggestionState);
});
});
unittest.group('obj-schema-SheetsChartReference', () {
unittest.test('to-json--from-json', () {
var o = buildSheetsChartReference();
var od = api.SheetsChartReference.fromJson(o.toJson());
checkSheetsChartReference(od as api.SheetsChartReference);
});
});
unittest.group('obj-schema-SheetsChartReferenceSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildSheetsChartReferenceSuggestionState();
var od = api.SheetsChartReferenceSuggestionState.fromJson(o.toJson());
checkSheetsChartReferenceSuggestionState(
od as api.SheetsChartReferenceSuggestionState);
});
});
unittest.group('obj-schema-Size', () {
unittest.test('to-json--from-json', () {
var o = buildSize();
var od = api.Size.fromJson(o.toJson());
checkSize(od as api.Size);
});
});
unittest.group('obj-schema-SizeSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildSizeSuggestionState();
var od = api.SizeSuggestionState.fromJson(o.toJson());
checkSizeSuggestionState(od as api.SizeSuggestionState);
});
});
unittest.group('obj-schema-StructuralElement', () {
unittest.test('to-json--from-json', () {
var o = buildStructuralElement();
var od = api.StructuralElement.fromJson(o.toJson());
checkStructuralElement(od as api.StructuralElement);
});
});
unittest.group('obj-schema-SubstringMatchCriteria', () {
unittest.test('to-json--from-json', () {
var o = buildSubstringMatchCriteria();
var od = api.SubstringMatchCriteria.fromJson(o.toJson());
checkSubstringMatchCriteria(od as api.SubstringMatchCriteria);
});
});
unittest.group('obj-schema-SuggestedBullet', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedBullet();
var od = api.SuggestedBullet.fromJson(o.toJson());
checkSuggestedBullet(od as api.SuggestedBullet);
});
});
unittest.group('obj-schema-SuggestedDocumentStyle', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedDocumentStyle();
var od = api.SuggestedDocumentStyle.fromJson(o.toJson());
checkSuggestedDocumentStyle(od as api.SuggestedDocumentStyle);
});
});
unittest.group('obj-schema-SuggestedInlineObjectProperties', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedInlineObjectProperties();
var od = api.SuggestedInlineObjectProperties.fromJson(o.toJson());
checkSuggestedInlineObjectProperties(
od as api.SuggestedInlineObjectProperties);
});
});
unittest.group('obj-schema-SuggestedListProperties', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedListProperties();
var od = api.SuggestedListProperties.fromJson(o.toJson());
checkSuggestedListProperties(od as api.SuggestedListProperties);
});
});
unittest.group('obj-schema-SuggestedNamedStyles', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedNamedStyles();
var od = api.SuggestedNamedStyles.fromJson(o.toJson());
checkSuggestedNamedStyles(od as api.SuggestedNamedStyles);
});
});
unittest.group('obj-schema-SuggestedParagraphStyle', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedParagraphStyle();
var od = api.SuggestedParagraphStyle.fromJson(o.toJson());
checkSuggestedParagraphStyle(od as api.SuggestedParagraphStyle);
});
});
unittest.group('obj-schema-SuggestedPositionedObjectProperties', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedPositionedObjectProperties();
var od = api.SuggestedPositionedObjectProperties.fromJson(o.toJson());
checkSuggestedPositionedObjectProperties(
od as api.SuggestedPositionedObjectProperties);
});
});
unittest.group('obj-schema-SuggestedTableCellStyle', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedTableCellStyle();
var od = api.SuggestedTableCellStyle.fromJson(o.toJson());
checkSuggestedTableCellStyle(od as api.SuggestedTableCellStyle);
});
});
unittest.group('obj-schema-SuggestedTableRowStyle', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedTableRowStyle();
var od = api.SuggestedTableRowStyle.fromJson(o.toJson());
checkSuggestedTableRowStyle(od as api.SuggestedTableRowStyle);
});
});
unittest.group('obj-schema-SuggestedTextStyle', () {
unittest.test('to-json--from-json', () {
var o = buildSuggestedTextStyle();
var od = api.SuggestedTextStyle.fromJson(o.toJson());
checkSuggestedTextStyle(od as api.SuggestedTextStyle);
});
});
unittest.group('obj-schema-TabStop', () {
unittest.test('to-json--from-json', () {
var o = buildTabStop();
var od = api.TabStop.fromJson(o.toJson());
checkTabStop(od as api.TabStop);
});
});
unittest.group('obj-schema-Table', () {
unittest.test('to-json--from-json', () {
var o = buildTable();
var od = api.Table.fromJson(o.toJson());
checkTable(od as api.Table);
});
});
unittest.group('obj-schema-TableCell', () {
unittest.test('to-json--from-json', () {
var o = buildTableCell();
var od = api.TableCell.fromJson(o.toJson());
checkTableCell(od as api.TableCell);
});
});
unittest.group('obj-schema-TableCellBorder', () {
unittest.test('to-json--from-json', () {
var o = buildTableCellBorder();
var od = api.TableCellBorder.fromJson(o.toJson());
checkTableCellBorder(od as api.TableCellBorder);
});
});
unittest.group('obj-schema-TableCellLocation', () {
unittest.test('to-json--from-json', () {
var o = buildTableCellLocation();
var od = api.TableCellLocation.fromJson(o.toJson());
checkTableCellLocation(od as api.TableCellLocation);
});
});
unittest.group('obj-schema-TableCellStyle', () {
unittest.test('to-json--from-json', () {
var o = buildTableCellStyle();
var od = api.TableCellStyle.fromJson(o.toJson());
checkTableCellStyle(od as api.TableCellStyle);
});
});
unittest.group('obj-schema-TableCellStyleSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildTableCellStyleSuggestionState();
var od = api.TableCellStyleSuggestionState.fromJson(o.toJson());
checkTableCellStyleSuggestionState(
od as api.TableCellStyleSuggestionState);
});
});
unittest.group('obj-schema-TableColumnProperties', () {
unittest.test('to-json--from-json', () {
var o = buildTableColumnProperties();
var od = api.TableColumnProperties.fromJson(o.toJson());
checkTableColumnProperties(od as api.TableColumnProperties);
});
});
unittest.group('obj-schema-TableOfContents', () {
unittest.test('to-json--from-json', () {
var o = buildTableOfContents();
var od = api.TableOfContents.fromJson(o.toJson());
checkTableOfContents(od as api.TableOfContents);
});
});
unittest.group('obj-schema-TableRange', () {
unittest.test('to-json--from-json', () {
var o = buildTableRange();
var od = api.TableRange.fromJson(o.toJson());
checkTableRange(od as api.TableRange);
});
});
unittest.group('obj-schema-TableRow', () {
unittest.test('to-json--from-json', () {
var o = buildTableRow();
var od = api.TableRow.fromJson(o.toJson());
checkTableRow(od as api.TableRow);
});
});
unittest.group('obj-schema-TableRowStyle', () {
unittest.test('to-json--from-json', () {
var o = buildTableRowStyle();
var od = api.TableRowStyle.fromJson(o.toJson());
checkTableRowStyle(od as api.TableRowStyle);
});
});
unittest.group('obj-schema-TableRowStyleSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildTableRowStyleSuggestionState();
var od = api.TableRowStyleSuggestionState.fromJson(o.toJson());
checkTableRowStyleSuggestionState(od as api.TableRowStyleSuggestionState);
});
});
unittest.group('obj-schema-TableStyle', () {
unittest.test('to-json--from-json', () {
var o = buildTableStyle();
var od = api.TableStyle.fromJson(o.toJson());
checkTableStyle(od as api.TableStyle);
});
});
unittest.group('obj-schema-TextRun', () {
unittest.test('to-json--from-json', () {
var o = buildTextRun();
var od = api.TextRun.fromJson(o.toJson());
checkTextRun(od as api.TextRun);
});
});
unittest.group('obj-schema-TextStyle', () {
unittest.test('to-json--from-json', () {
var o = buildTextStyle();
var od = api.TextStyle.fromJson(o.toJson());
checkTextStyle(od as api.TextStyle);
});
});
unittest.group('obj-schema-TextStyleSuggestionState', () {
unittest.test('to-json--from-json', () {
var o = buildTextStyleSuggestionState();
var od = api.TextStyleSuggestionState.fromJson(o.toJson());
checkTextStyleSuggestionState(od as api.TextStyleSuggestionState);
});
});
unittest.group('obj-schema-UnmergeTableCellsRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUnmergeTableCellsRequest();
var od = api.UnmergeTableCellsRequest.fromJson(o.toJson());
checkUnmergeTableCellsRequest(od as api.UnmergeTableCellsRequest);
});
});
unittest.group('obj-schema-UpdateDocumentStyleRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUpdateDocumentStyleRequest();
var od = api.UpdateDocumentStyleRequest.fromJson(o.toJson());
checkUpdateDocumentStyleRequest(od as api.UpdateDocumentStyleRequest);
});
});
unittest.group('obj-schema-UpdateParagraphStyleRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUpdateParagraphStyleRequest();
var od = api.UpdateParagraphStyleRequest.fromJson(o.toJson());
checkUpdateParagraphStyleRequest(od as api.UpdateParagraphStyleRequest);
});
});
unittest.group('obj-schema-UpdateSectionStyleRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUpdateSectionStyleRequest();
var od = api.UpdateSectionStyleRequest.fromJson(o.toJson());
checkUpdateSectionStyleRequest(od as api.UpdateSectionStyleRequest);
});
});
unittest.group('obj-schema-UpdateTableCellStyleRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUpdateTableCellStyleRequest();
var od = api.UpdateTableCellStyleRequest.fromJson(o.toJson());
checkUpdateTableCellStyleRequest(od as api.UpdateTableCellStyleRequest);
});
});
unittest.group('obj-schema-UpdateTableColumnPropertiesRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUpdateTableColumnPropertiesRequest();
var od = api.UpdateTableColumnPropertiesRequest.fromJson(o.toJson());
checkUpdateTableColumnPropertiesRequest(
od as api.UpdateTableColumnPropertiesRequest);
});
});
unittest.group('obj-schema-UpdateTableRowStyleRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUpdateTableRowStyleRequest();
var od = api.UpdateTableRowStyleRequest.fromJson(o.toJson());
checkUpdateTableRowStyleRequest(od as api.UpdateTableRowStyleRequest);
});
});
unittest.group('obj-schema-UpdateTextStyleRequest', () {
unittest.test('to-json--from-json', () {
var o = buildUpdateTextStyleRequest();
var od = api.UpdateTextStyleRequest.fromJson(o.toJson());
checkUpdateTextStyleRequest(od as api.UpdateTextStyleRequest);
});
});
unittest.group('obj-schema-WeightedFontFamily', () {
unittest.test('to-json--from-json', () {
var o = buildWeightedFontFamily();
var od = api.WeightedFontFamily.fromJson(o.toJson());
checkWeightedFontFamily(od as api.WeightedFontFamily);
});
});
unittest.group('obj-schema-WriteControl', () {
unittest.test('to-json--from-json', () {
var o = buildWriteControl();
var od = api.WriteControl.fromJson(o.toJson());
checkWriteControl(od as api.WriteControl);
});
});
unittest.group('resource-DocumentsResource', () {
unittest.test('method--batchUpdate', () {
var mock = HttpServerMock();
var res = api.DocsApi(mock).documents;
var arg_request = buildBatchUpdateDocumentRequest();
var arg_documentId = 'foo';
var arg_$fields = 'foo';
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = api.BatchUpdateDocumentRequest.fromJson(
json as core.Map<core.String, core.dynamic>);
checkBatchUpdateDocumentRequest(obj as api.BatchUpdateDocumentRequest);
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 + 13),
unittest.equals("v1/documents/"),
);
pathOffset += 13;
index = path.indexOf(':batchUpdate', pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart =
core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
pathOffset = index;
unittest.expect(
subPart,
unittest.equals('$arg_documentId'),
);
unittest.expect(
path.substring(pathOffset, pathOffset + 12),
unittest.equals(":batchUpdate"),
);
pathOffset += 12;
var query = (req.url).query;
var queryOffset = 0;
var queryMap = <core.String, core.List<core.String>>{};
void addQueryParam(core.String n, core.String 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(buildBatchUpdateDocumentResponse());
return async.Future.value(stringResponse(200, h, resp));
}), true);
res
.batchUpdate(arg_request, arg_documentId, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkBatchUpdateDocumentResponse(
response as api.BatchUpdateDocumentResponse);
})));
});
unittest.test('method--create', () {
var mock = HttpServerMock();
var res = api.DocsApi(mock).documents;
var arg_request = buildDocument();
var arg_$fields = 'foo';
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj =
api.Document.fromJson(json as core.Map<core.String, core.dynamic>);
checkDocument(obj as api.Document);
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 + 12),
unittest.equals("v1/documents"),
);
pathOffset += 12;
var query = (req.url).query;
var queryOffset = 0;
var queryMap = <core.String, core.List<core.String>>{};
void addQueryParam(core.String n, core.String 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(buildDocument());
return async.Future.value(stringResponse(200, h, resp));
}), true);
res
.create(arg_request, $fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkDocument(response as api.Document);
})));
});
unittest.test('method--get', () {
var mock = HttpServerMock();
var res = api.DocsApi(mock).documents;
var arg_documentId = 'foo';
var arg_suggestionsViewMode = '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 + 13),
unittest.equals("v1/documents/"),
);
pathOffset += 13;
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
pathOffset = path.length;
unittest.expect(
subPart,
unittest.equals('$arg_documentId'),
);
var query = (req.url).query;
var queryOffset = 0;
var queryMap = <core.String, core.List<core.String>>{};
void addQueryParam(core.String n, core.String 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["suggestionsViewMode"]!.first,
unittest.equals(arg_suggestionsViewMode),
);
unittest.expect(
queryMap["fields"]!.first,
unittest.equals(arg_$fields),
);
var h = {
'content-type': 'application/json; charset=utf-8',
};
var resp = convert.json.encode(buildDocument());
return async.Future.value(stringResponse(200, h, resp));
}), true);
res
.get(arg_documentId,
suggestionsViewMode: arg_suggestionsViewMode,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkDocument(response as api.Document);
})));
});
});
}