blob: 16924cb42a606723092ac28b0e40a787154ec494 [file] [log] [blame]
// ignore_for_file: avoid_returning_null
// ignore_for_file: camel_case_types
// ignore_for_file: cascade_invocations
// 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_final_locals
// ignore_for_file: prefer_interpolation_to_compose_strings
// ignore_for_file: prefer_single_quotes
// 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: unused_local_variable
import 'dart:async' as async;
import 'dart:convert' as convert;
import 'dart:core' as core;
import 'package:googleapis/docs/v1.dart' as api;
import 'package:http/http.dart' as http;
import 'package:test/test.dart' as unittest;
import '../test_shared.dart';
core.List<core.String> buildUnnamed7217() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7217(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> buildUnnamed7218() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7218(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> buildUnnamed7219() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7219(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 = buildUnnamed7217();
o.suggestedInsertionIds = buildUnnamed7218();
o.suggestedTextStyleChanges = buildUnnamed7219();
o.textStyle = buildTextStyle();
o.type = 'foo';
}
buildCounterAutoText--;
return o;
}
void checkAutoText(api.AutoText o) {
buildCounterAutoText++;
if (buildCounterAutoText < 3) {
checkUnnamed7217(o.suggestedDeletionIds!);
checkUnnamed7218(o.suggestedInsertionIds!);
checkUnnamed7219(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> buildUnnamed7220() {
var o = <api.Request>[];
o.add(buildRequest());
o.add(buildRequest());
return o;
}
void checkUnnamed7220(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 = buildUnnamed7220();
o.writeControl = buildWriteControl();
}
buildCounterBatchUpdateDocumentRequest--;
return o;
}
void checkBatchUpdateDocumentRequest(api.BatchUpdateDocumentRequest o) {
buildCounterBatchUpdateDocumentRequest++;
if (buildCounterBatchUpdateDocumentRequest < 3) {
checkUnnamed7220(o.requests!);
checkWriteControl(o.writeControl! as api.WriteControl);
}
buildCounterBatchUpdateDocumentRequest--;
}
core.List<api.Response> buildUnnamed7221() {
var o = <api.Response>[];
o.add(buildResponse());
o.add(buildResponse());
return o;
}
void checkUnnamed7221(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 = buildUnnamed7221();
o.writeControl = buildWriteControl();
}
buildCounterBatchUpdateDocumentResponse--;
return o;
}
void checkBatchUpdateDocumentResponse(api.BatchUpdateDocumentResponse o) {
buildCounterBatchUpdateDocumentResponse++;
if (buildCounterBatchUpdateDocumentResponse < 3) {
unittest.expect(
o.documentId!,
unittest.equals('foo'),
);
checkUnnamed7221(o.replies!);
checkWriteControl(o.writeControl! as api.WriteControl);
}
buildCounterBatchUpdateDocumentResponse--;
}
core.List<api.StructuralElement> buildUnnamed7222() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed7222(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 = buildUnnamed7222();
}
buildCounterBody--;
return o;
}
void checkBody(api.Body o) {
buildCounterBody++;
if (buildCounterBody < 3) {
checkUnnamed7222(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> buildUnnamed7223() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7223(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> buildUnnamed7224() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7224(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> buildUnnamed7225() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7225(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 = buildUnnamed7223();
o.suggestedInsertionIds = buildUnnamed7224();
o.suggestedTextStyleChanges = buildUnnamed7225();
o.textStyle = buildTextStyle();
}
buildCounterColumnBreak--;
return o;
}
void checkColumnBreak(api.ColumnBreak o) {
buildCounterColumnBreak++;
if (buildCounterColumnBreak < 3) {
checkUnnamed7223(o.suggestedDeletionIds!);
checkUnnamed7224(o.suggestedInsertionIds!);
checkUnnamed7225(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> buildUnnamed7226() {
var o = <core.String, api.Footer>{};
o['x'] = buildFooter();
o['y'] = buildFooter();
return o;
}
void checkUnnamed7226(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> buildUnnamed7227() {
var o = <core.String, api.Footnote>{};
o['x'] = buildFootnote();
o['y'] = buildFootnote();
return o;
}
void checkUnnamed7227(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> buildUnnamed7228() {
var o = <core.String, api.Header>{};
o['x'] = buildHeader();
o['y'] = buildHeader();
return o;
}
void checkUnnamed7228(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> buildUnnamed7229() {
var o = <core.String, api.InlineObject>{};
o['x'] = buildInlineObject();
o['y'] = buildInlineObject();
return o;
}
void checkUnnamed7229(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> buildUnnamed7230() {
var o = <core.String, api.List>{};
o['x'] = buildList();
o['y'] = buildList();
return o;
}
void checkUnnamed7230(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> buildUnnamed7231() {
var o = <core.String, api.NamedRanges>{};
o['x'] = buildNamedRanges();
o['y'] = buildNamedRanges();
return o;
}
void checkUnnamed7231(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> buildUnnamed7232() {
var o = <core.String, api.PositionedObject>{};
o['x'] = buildPositionedObject();
o['y'] = buildPositionedObject();
return o;
}
void checkUnnamed7232(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> buildUnnamed7233() {
var o = <core.String, api.SuggestedDocumentStyle>{};
o['x'] = buildSuggestedDocumentStyle();
o['y'] = buildSuggestedDocumentStyle();
return o;
}
void checkUnnamed7233(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> buildUnnamed7234() {
var o = <core.String, api.SuggestedNamedStyles>{};
o['x'] = buildSuggestedNamedStyles();
o['y'] = buildSuggestedNamedStyles();
return o;
}
void checkUnnamed7234(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 = buildUnnamed7226();
o.footnotes = buildUnnamed7227();
o.headers = buildUnnamed7228();
o.inlineObjects = buildUnnamed7229();
o.lists = buildUnnamed7230();
o.namedRanges = buildUnnamed7231();
o.namedStyles = buildNamedStyles();
o.positionedObjects = buildUnnamed7232();
o.revisionId = 'foo';
o.suggestedDocumentStyleChanges = buildUnnamed7233();
o.suggestedNamedStylesChanges = buildUnnamed7234();
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);
checkUnnamed7226(o.footers!);
checkUnnamed7227(o.footnotes!);
checkUnnamed7228(o.headers!);
checkUnnamed7229(o.inlineObjects!);
checkUnnamed7230(o.lists!);
checkUnnamed7231(o.namedRanges!);
checkNamedStyles(o.namedStyles! as api.NamedStyles);
checkUnnamed7232(o.positionedObjects!);
unittest.expect(
o.revisionId!,
unittest.equals('foo'),
);
checkUnnamed7233(o.suggestedDocumentStyleChanges!);
checkUnnamed7234(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> buildUnnamed7235() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7235(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> buildUnnamed7236() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7236(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 = buildUnnamed7235();
o.suggestedInsertionIds = buildUnnamed7236();
}
buildCounterEquation--;
return o;
}
void checkEquation(api.Equation o) {
buildCounterEquation++;
if (buildCounterEquation < 3) {
checkUnnamed7235(o.suggestedDeletionIds!);
checkUnnamed7236(o.suggestedInsertionIds!);
}
buildCounterEquation--;
}
core.List<api.StructuralElement> buildUnnamed7237() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed7237(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 = buildUnnamed7237();
o.footerId = 'foo';
}
buildCounterFooter--;
return o;
}
void checkFooter(api.Footer o) {
buildCounterFooter++;
if (buildCounterFooter < 3) {
checkUnnamed7237(o.content!);
unittest.expect(
o.footerId!,
unittest.equals('foo'),
);
}
buildCounterFooter--;
}
core.List<api.StructuralElement> buildUnnamed7238() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed7238(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 = buildUnnamed7238();
o.footnoteId = 'foo';
}
buildCounterFootnote--;
return o;
}
void checkFootnote(api.Footnote o) {
buildCounterFootnote++;
if (buildCounterFootnote < 3) {
checkUnnamed7238(o.content!);
unittest.expect(
o.footnoteId!,
unittest.equals('foo'),
);
}
buildCounterFootnote--;
}
core.List<core.String> buildUnnamed7239() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7239(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> buildUnnamed7240() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7240(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> buildUnnamed7241() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7241(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 = buildUnnamed7239();
o.suggestedInsertionIds = buildUnnamed7240();
o.suggestedTextStyleChanges = buildUnnamed7241();
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'),
);
checkUnnamed7239(o.suggestedDeletionIds!);
checkUnnamed7240(o.suggestedInsertionIds!);
checkUnnamed7241(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterFootnoteReference--;
}
core.List<api.StructuralElement> buildUnnamed7242() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed7242(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 = buildUnnamed7242();
o.headerId = 'foo';
}
buildCounterHeader--;
return o;
}
void checkHeader(api.Header o) {
buildCounterHeader++;
if (buildCounterHeader < 3) {
checkUnnamed7242(o.content!);
unittest.expect(
o.headerId!,
unittest.equals('foo'),
);
}
buildCounterHeader--;
}
core.List<core.String> buildUnnamed7243() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7243(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> buildUnnamed7244() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7244(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> buildUnnamed7245() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7245(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 = buildUnnamed7243();
o.suggestedInsertionIds = buildUnnamed7244();
o.suggestedTextStyleChanges = buildUnnamed7245();
o.textStyle = buildTextStyle();
}
buildCounterHorizontalRule--;
return o;
}
void checkHorizontalRule(api.HorizontalRule o) {
buildCounterHorizontalRule++;
if (buildCounterHorizontalRule < 3) {
checkUnnamed7243(o.suggestedDeletionIds!);
checkUnnamed7244(o.suggestedInsertionIds!);
checkUnnamed7245(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> buildUnnamed7246() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7246(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> buildUnnamed7247() {
var o = <core.String, api.SuggestedInlineObjectProperties>{};
o['x'] = buildSuggestedInlineObjectProperties();
o['y'] = buildSuggestedInlineObjectProperties();
return o;
}
void checkUnnamed7247(
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 = buildUnnamed7246();
o.suggestedInlineObjectPropertiesChanges = buildUnnamed7247();
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'),
);
checkUnnamed7246(o.suggestedDeletionIds!);
checkUnnamed7247(o.suggestedInlineObjectPropertiesChanges!);
unittest.expect(
o.suggestedInsertionId!,
unittest.equals('foo'),
);
}
buildCounterInlineObject--;
}
core.List<core.String> buildUnnamed7248() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7248(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> buildUnnamed7249() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7249(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> buildUnnamed7250() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7250(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 = buildUnnamed7248();
o.suggestedInsertionIds = buildUnnamed7249();
o.suggestedTextStyleChanges = buildUnnamed7250();
o.textStyle = buildTextStyle();
}
buildCounterInlineObjectElement--;
return o;
}
void checkInlineObjectElement(api.InlineObjectElement o) {
buildCounterInlineObjectElement++;
if (buildCounterInlineObjectElement < 3) {
unittest.expect(
o.inlineObjectId!,
unittest.equals('foo'),
);
checkUnnamed7248(o.suggestedDeletionIds!);
checkUnnamed7249(o.suggestedInsertionIds!);
checkUnnamed7250(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> buildUnnamed7251() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7251(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> buildUnnamed7252() {
var o = <core.String, api.SuggestedListProperties>{};
o['x'] = buildSuggestedListProperties();
o['y'] = buildSuggestedListProperties();
return o;
}
void checkUnnamed7252(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 = buildUnnamed7251();
o.suggestedInsertionId = 'foo';
o.suggestedListPropertiesChanges = buildUnnamed7252();
}
buildCounterList--;
return o;
}
void checkList(api.List o) {
buildCounterList++;
if (buildCounterList < 3) {
checkListProperties(o.listProperties! as api.ListProperties);
checkUnnamed7251(o.suggestedDeletionIds!);
unittest.expect(
o.suggestedInsertionId!,
unittest.equals('foo'),
);
checkUnnamed7252(o.suggestedListPropertiesChanges!);
}
buildCounterList--;
}
core.List<api.NestingLevel> buildUnnamed7253() {
var o = <api.NestingLevel>[];
o.add(buildNestingLevel());
o.add(buildNestingLevel());
return o;
}
void checkUnnamed7253(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 = buildUnnamed7253();
}
buildCounterListProperties--;
return o;
}
void checkListProperties(api.ListProperties o) {
buildCounterListProperties++;
if (buildCounterListProperties < 3) {
checkUnnamed7253(o.nestingLevels!);
}
buildCounterListProperties--;
}
core.List<api.NestingLevelSuggestionState> buildUnnamed7254() {
var o = <api.NestingLevelSuggestionState>[];
o.add(buildNestingLevelSuggestionState());
o.add(buildNestingLevelSuggestionState());
return o;
}
void checkUnnamed7254(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 = buildUnnamed7254();
}
buildCounterListPropertiesSuggestionState--;
return o;
}
void checkListPropertiesSuggestionState(api.ListPropertiesSuggestionState o) {
buildCounterListPropertiesSuggestionState++;
if (buildCounterListPropertiesSuggestionState < 3) {
checkUnnamed7254(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> buildUnnamed7255() {
var o = <api.Range>[];
o.add(buildRange());
o.add(buildRange());
return o;
}
void checkUnnamed7255(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 = buildUnnamed7255();
}
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'),
);
checkUnnamed7255(o.ranges!);
}
buildCounterNamedRange--;
}
core.List<api.NamedRange> buildUnnamed7256() {
var o = <api.NamedRange>[];
o.add(buildNamedRange());
o.add(buildNamedRange());
return o;
}
void checkUnnamed7256(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 = buildUnnamed7256();
}
buildCounterNamedRanges--;
return o;
}
void checkNamedRanges(api.NamedRanges o) {
buildCounterNamedRanges++;
if (buildCounterNamedRanges < 3) {
unittest.expect(
o.name!,
unittest.equals('foo'),
);
checkUnnamed7256(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> buildUnnamed7257() {
var o = <api.NamedStyle>[];
o.add(buildNamedStyle());
o.add(buildNamedStyle());
return o;
}
void checkUnnamed7257(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 = buildUnnamed7257();
}
buildCounterNamedStyles--;
return o;
}
void checkNamedStyles(api.NamedStyles o) {
buildCounterNamedStyles++;
if (buildCounterNamedStyles < 3) {
checkUnnamed7257(o.styles!);
}
buildCounterNamedStyles--;
}
core.List<api.NamedStyleSuggestionState> buildUnnamed7258() {
var o = <api.NamedStyleSuggestionState>[];
o.add(buildNamedStyleSuggestionState());
o.add(buildNamedStyleSuggestionState());
return o;
}
void checkUnnamed7258(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 = buildUnnamed7258();
}
buildCounterNamedStylesSuggestionState--;
return o;
}
void checkNamedStylesSuggestionState(api.NamedStylesSuggestionState o) {
buildCounterNamedStylesSuggestionState++;
if (buildCounterNamedStylesSuggestionState < 3) {
checkUnnamed7258(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> buildUnnamed7259() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7259(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 = buildUnnamed7259();
}
buildCounterObjectReferences--;
return o;
}
void checkObjectReferences(api.ObjectReferences o) {
buildCounterObjectReferences++;
if (buildCounterObjectReferences < 3) {
checkUnnamed7259(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> buildUnnamed7260() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7260(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> buildUnnamed7261() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7261(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> buildUnnamed7262() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7262(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 = buildUnnamed7260();
o.suggestedInsertionIds = buildUnnamed7261();
o.suggestedTextStyleChanges = buildUnnamed7262();
o.textStyle = buildTextStyle();
}
buildCounterPageBreak--;
return o;
}
void checkPageBreak(api.PageBreak o) {
buildCounterPageBreak++;
if (buildCounterPageBreak < 3) {
checkUnnamed7260(o.suggestedDeletionIds!);
checkUnnamed7261(o.suggestedInsertionIds!);
checkUnnamed7262(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterPageBreak--;
}
core.List<api.ParagraphElement> buildUnnamed7263() {
var o = <api.ParagraphElement>[];
o.add(buildParagraphElement());
o.add(buildParagraphElement());
return o;
}
void checkUnnamed7263(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> buildUnnamed7264() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7264(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> buildUnnamed7265() {
var o = <core.String, api.SuggestedBullet>{};
o['x'] = buildSuggestedBullet();
o['y'] = buildSuggestedBullet();
return o;
}
void checkUnnamed7265(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> buildUnnamed7266() {
var o = <core.String, api.SuggestedParagraphStyle>{};
o['x'] = buildSuggestedParagraphStyle();
o['y'] = buildSuggestedParagraphStyle();
return o;
}
void checkUnnamed7266(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> buildUnnamed7267() {
var o = <core.String, api.ObjectReferences>{};
o['x'] = buildObjectReferences();
o['y'] = buildObjectReferences();
return o;
}
void checkUnnamed7267(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 = buildUnnamed7263();
o.paragraphStyle = buildParagraphStyle();
o.positionedObjectIds = buildUnnamed7264();
o.suggestedBulletChanges = buildUnnamed7265();
o.suggestedParagraphStyleChanges = buildUnnamed7266();
o.suggestedPositionedObjectIds = buildUnnamed7267();
}
buildCounterParagraph--;
return o;
}
void checkParagraph(api.Paragraph o) {
buildCounterParagraph++;
if (buildCounterParagraph < 3) {
checkBullet(o.bullet! as api.Bullet);
checkUnnamed7263(o.elements!);
checkParagraphStyle(o.paragraphStyle! as api.ParagraphStyle);
checkUnnamed7264(o.positionedObjectIds!);
checkUnnamed7265(o.suggestedBulletChanges!);
checkUnnamed7266(o.suggestedParagraphStyleChanges!);
checkUnnamed7267(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.person = buildPerson();
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);
checkPerson(o.person! as api.Person);
unittest.expect(
o.startIndex!,
unittest.equals(42),
);
checkTextRun(o.textRun! as api.TextRun);
}
buildCounterParagraphElement--;
}
core.List<api.TabStop> buildUnnamed7268() {
var o = <api.TabStop>[];
o.add(buildTabStop());
o.add(buildTabStop());
return o;
}
void checkUnnamed7268(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 = buildUnnamed7268();
}
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'),
);
checkUnnamed7268(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> buildUnnamed7269() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7269(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> buildUnnamed7270() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7270(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> buildUnnamed7271() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7271(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 buildCounterPerson = 0;
api.Person buildPerson() {
var o = api.Person();
buildCounterPerson++;
if (buildCounterPerson < 3) {
o.personId = 'foo';
o.personProperties = buildPersonProperties();
o.suggestedDeletionIds = buildUnnamed7269();
o.suggestedInsertionIds = buildUnnamed7270();
o.suggestedTextStyleChanges = buildUnnamed7271();
o.textStyle = buildTextStyle();
}
buildCounterPerson--;
return o;
}
void checkPerson(api.Person o) {
buildCounterPerson++;
if (buildCounterPerson < 3) {
unittest.expect(
o.personId!,
unittest.equals('foo'),
);
checkPersonProperties(o.personProperties! as api.PersonProperties);
checkUnnamed7269(o.suggestedDeletionIds!);
checkUnnamed7270(o.suggestedInsertionIds!);
checkUnnamed7271(o.suggestedTextStyleChanges!);
checkTextStyle(o.textStyle! as api.TextStyle);
}
buildCounterPerson--;
}
core.int buildCounterPersonProperties = 0;
api.PersonProperties buildPersonProperties() {
var o = api.PersonProperties();
buildCounterPersonProperties++;
if (buildCounterPersonProperties < 3) {
o.email = 'foo';
o.name = 'foo';
}
buildCounterPersonProperties--;
return o;
}
void checkPersonProperties(api.PersonProperties o) {
buildCounterPersonProperties++;
if (buildCounterPersonProperties < 3) {
unittest.expect(
o.email!,
unittest.equals('foo'),
);
unittest.expect(
o.name!,
unittest.equals('foo'),
);
}
buildCounterPersonProperties--;
}
core.List<core.String> buildUnnamed7272() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7272(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>
buildUnnamed7273() {
var o = <core.String, api.SuggestedPositionedObjectProperties>{};
o['x'] = buildSuggestedPositionedObjectProperties();
o['y'] = buildSuggestedPositionedObjectProperties();
return o;
}
void checkUnnamed7273(
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 = buildUnnamed7272();
o.suggestedInsertionId = 'foo';
o.suggestedPositionedObjectPropertiesChanges = buildUnnamed7273();
}
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);
checkUnnamed7272(o.suggestedDeletionIds!);
unittest.expect(
o.suggestedInsertionId!,
unittest.equals('foo'),
);
checkUnnamed7273(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> buildUnnamed7274() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7274(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> buildUnnamed7275() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7275(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 = buildUnnamed7274();
o.suggestedInsertionIds = buildUnnamed7275();
}
buildCounterSectionBreak--;
return o;
}
void checkSectionBreak(api.SectionBreak o) {
buildCounterSectionBreak++;
if (buildCounterSectionBreak < 3) {
checkSectionStyle(o.sectionStyle! as api.SectionStyle);
checkUnnamed7274(o.suggestedDeletionIds!);
checkUnnamed7275(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> buildUnnamed7276() {
var o = <api.SectionColumnProperties>[];
o.add(buildSectionColumnProperties());
o.add(buildSectionColumnProperties());
return o;
}
void checkUnnamed7276(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 = buildUnnamed7276();
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) {
checkUnnamed7276(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> buildUnnamed7277() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7277(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> buildUnnamed7278() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7278(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> buildUnnamed7279() {
var o = <api.TableRow>[];
o.add(buildTableRow());
o.add(buildTableRow());
return o;
}
void checkUnnamed7279(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 = buildUnnamed7277();
o.suggestedInsertionIds = buildUnnamed7278();
o.tableRows = buildUnnamed7279();
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),
);
checkUnnamed7277(o.suggestedDeletionIds!);
checkUnnamed7278(o.suggestedInsertionIds!);
checkUnnamed7279(o.tableRows!);
checkTableStyle(o.tableStyle! as api.TableStyle);
}
buildCounterTable--;
}
core.List<api.StructuralElement> buildUnnamed7280() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed7280(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> buildUnnamed7281() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7281(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> buildUnnamed7282() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7282(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> buildUnnamed7283() {
var o = <core.String, api.SuggestedTableCellStyle>{};
o['x'] = buildSuggestedTableCellStyle();
o['y'] = buildSuggestedTableCellStyle();
return o;
}
void checkUnnamed7283(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 = buildUnnamed7280();
o.endIndex = 42;
o.startIndex = 42;
o.suggestedDeletionIds = buildUnnamed7281();
o.suggestedInsertionIds = buildUnnamed7282();
o.suggestedTableCellStyleChanges = buildUnnamed7283();
o.tableCellStyle = buildTableCellStyle();
}
buildCounterTableCell--;
return o;
}
void checkTableCell(api.TableCell o) {
buildCounterTableCell++;
if (buildCounterTableCell < 3) {
checkUnnamed7280(o.content!);
unittest.expect(
o.endIndex!,
unittest.equals(42),
);
unittest.expect(
o.startIndex!,
unittest.equals(42),
);
checkUnnamed7281(o.suggestedDeletionIds!);
checkUnnamed7282(o.suggestedInsertionIds!);
checkUnnamed7283(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> buildUnnamed7284() {
var o = <api.StructuralElement>[];
o.add(buildStructuralElement());
o.add(buildStructuralElement());
return o;
}
void checkUnnamed7284(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> buildUnnamed7285() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7285(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> buildUnnamed7286() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7286(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 = buildUnnamed7284();
o.suggestedDeletionIds = buildUnnamed7285();
o.suggestedInsertionIds = buildUnnamed7286();
}
buildCounterTableOfContents--;
return o;
}
void checkTableOfContents(api.TableOfContents o) {
buildCounterTableOfContents++;
if (buildCounterTableOfContents < 3) {
checkUnnamed7284(o.content!);
checkUnnamed7285(o.suggestedDeletionIds!);
checkUnnamed7286(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> buildUnnamed7287() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7287(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> buildUnnamed7288() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7288(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> buildUnnamed7289() {
var o = <core.String, api.SuggestedTableRowStyle>{};
o['x'] = buildSuggestedTableRowStyle();
o['y'] = buildSuggestedTableRowStyle();
return o;
}
void checkUnnamed7289(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> buildUnnamed7290() {
var o = <api.TableCell>[];
o.add(buildTableCell());
o.add(buildTableCell());
return o;
}
void checkUnnamed7290(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 = buildUnnamed7287();
o.suggestedInsertionIds = buildUnnamed7288();
o.suggestedTableRowStyleChanges = buildUnnamed7289();
o.tableCells = buildUnnamed7290();
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),
);
checkUnnamed7287(o.suggestedDeletionIds!);
checkUnnamed7288(o.suggestedInsertionIds!);
checkUnnamed7289(o.suggestedTableRowStyleChanges!);
checkUnnamed7290(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> buildUnnamed7291() {
var o = <api.TableColumnProperties>[];
o.add(buildTableColumnProperties());
o.add(buildTableColumnProperties());
return o;
}
void checkUnnamed7291(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 = buildUnnamed7291();
}
buildCounterTableStyle--;
return o;
}
void checkTableStyle(api.TableStyle o) {
buildCounterTableStyle++;
if (buildCounterTableStyle < 3) {
checkUnnamed7291(o.tableColumnProperties!);
}
buildCounterTableStyle--;
}
core.List<core.String> buildUnnamed7292() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7292(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> buildUnnamed7293() {
var o = <core.String>[];
o.add('foo');
o.add('foo');
return o;
}
void checkUnnamed7293(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> buildUnnamed7294() {
var o = <core.String, api.SuggestedTextStyle>{};
o['x'] = buildSuggestedTextStyle();
o['y'] = buildSuggestedTextStyle();
return o;
}
void checkUnnamed7294(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 = buildUnnamed7292();
o.suggestedInsertionIds = buildUnnamed7293();
o.suggestedTextStyleChanges = buildUnnamed7294();
o.textStyle = buildTextStyle();
}
buildCounterTextRun--;
return o;
}
void checkTextRun(api.TextRun o) {
buildCounterTextRun++;
if (buildCounterTextRun < 3) {
unittest.expect(
o.content!,
unittest.equals('foo'),
);
checkUnnamed7292(o.suggestedDeletionIds!);
checkUnnamed7293(o.suggestedInsertionIds!);
checkUnnamed7294(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> buildUnnamed7295() {
var o = <core.int>[];
o.add(42);
o.add(42);
return o;
}
void checkUnnamed7295(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 = buildUnnamed7295();
o.fields = 'foo';
o.tableColumnProperties = buildTableColumnProperties();
o.tableStartLocation = buildLocation();
}
buildCounterUpdateTableColumnPropertiesRequest--;
return o;
}
void checkUpdateTableColumnPropertiesRequest(
api.UpdateTableColumnPropertiesRequest o) {
buildCounterUpdateTableColumnPropertiesRequest++;
if (buildCounterUpdateTableColumnPropertiesRequest < 3) {
checkUnnamed7295(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> buildUnnamed7296() {
var o = <core.int>[];
o.add(42);
o.add(42);
return o;
}
void checkUnnamed7296(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 = buildUnnamed7296();
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'),
);
checkUnnamed7296(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', () async {
var o = buildAutoText();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.AutoText.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkAutoText(od as api.AutoText);
});
});
unittest.group('obj-schema-Background', () {
unittest.test('to-json--from-json', () async {
var o = buildBackground();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Background.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkBackground(od as api.Background);
});
});
unittest.group('obj-schema-BackgroundSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildBackgroundSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.BackgroundSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkBackgroundSuggestionState(od as api.BackgroundSuggestionState);
});
});
unittest.group('obj-schema-BatchUpdateDocumentRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildBatchUpdateDocumentRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.BatchUpdateDocumentRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkBatchUpdateDocumentRequest(od as api.BatchUpdateDocumentRequest);
});
});
unittest.group('obj-schema-BatchUpdateDocumentResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildBatchUpdateDocumentResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.BatchUpdateDocumentResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkBatchUpdateDocumentResponse(od as api.BatchUpdateDocumentResponse);
});
});
unittest.group('obj-schema-Body', () {
unittest.test('to-json--from-json', () async {
var o = buildBody();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.Body.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkBody(od as api.Body);
});
});
unittest.group('obj-schema-Bullet', () {
unittest.test('to-json--from-json', () async {
var o = buildBullet();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Bullet.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkBullet(od as api.Bullet);
});
});
unittest.group('obj-schema-BulletSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildBulletSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.BulletSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkBulletSuggestionState(od as api.BulletSuggestionState);
});
});
unittest.group('obj-schema-Color', () {
unittest.test('to-json--from-json', () async {
var o = buildColor();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.Color.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkColor(od as api.Color);
});
});
unittest.group('obj-schema-ColumnBreak', () {
unittest.test('to-json--from-json', () async {
var o = buildColumnBreak();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ColumnBreak.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkColumnBreak(od as api.ColumnBreak);
});
});
unittest.group('obj-schema-CreateFooterRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateFooterRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateFooterRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateFooterRequest(od as api.CreateFooterRequest);
});
});
unittest.group('obj-schema-CreateFooterResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateFooterResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateFooterResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateFooterResponse(od as api.CreateFooterResponse);
});
});
unittest.group('obj-schema-CreateFootnoteRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateFootnoteRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateFootnoteRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateFootnoteRequest(od as api.CreateFootnoteRequest);
});
});
unittest.group('obj-schema-CreateFootnoteResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateFootnoteResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateFootnoteResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateFootnoteResponse(od as api.CreateFootnoteResponse);
});
});
unittest.group('obj-schema-CreateHeaderRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateHeaderRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateHeaderRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateHeaderRequest(od as api.CreateHeaderRequest);
});
});
unittest.group('obj-schema-CreateHeaderResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateHeaderResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateHeaderResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateHeaderResponse(od as api.CreateHeaderResponse);
});
});
unittest.group('obj-schema-CreateNamedRangeRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateNamedRangeRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateNamedRangeRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateNamedRangeRequest(od as api.CreateNamedRangeRequest);
});
});
unittest.group('obj-schema-CreateNamedRangeResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateNamedRangeResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateNamedRangeResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateNamedRangeResponse(od as api.CreateNamedRangeResponse);
});
});
unittest.group('obj-schema-CreateParagraphBulletsRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildCreateParagraphBulletsRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CreateParagraphBulletsRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCreateParagraphBulletsRequest(
od as api.CreateParagraphBulletsRequest);
});
});
unittest.group('obj-schema-CropProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildCropProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CropProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCropProperties(od as api.CropProperties);
});
});
unittest.group('obj-schema-CropPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildCropPropertiesSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.CropPropertiesSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkCropPropertiesSuggestionState(
od as api.CropPropertiesSuggestionState);
});
});
unittest.group('obj-schema-DeleteContentRangeRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeleteContentRangeRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeleteContentRangeRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeleteContentRangeRequest(od as api.DeleteContentRangeRequest);
});
});
unittest.group('obj-schema-DeleteFooterRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeleteFooterRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeleteFooterRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeleteFooterRequest(od as api.DeleteFooterRequest);
});
});
unittest.group('obj-schema-DeleteHeaderRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeleteHeaderRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeleteHeaderRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeleteHeaderRequest(od as api.DeleteHeaderRequest);
});
});
unittest.group('obj-schema-DeleteNamedRangeRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeleteNamedRangeRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeleteNamedRangeRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeleteNamedRangeRequest(od as api.DeleteNamedRangeRequest);
});
});
unittest.group('obj-schema-DeleteParagraphBulletsRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeleteParagraphBulletsRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeleteParagraphBulletsRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeleteParagraphBulletsRequest(
od as api.DeleteParagraphBulletsRequest);
});
});
unittest.group('obj-schema-DeletePositionedObjectRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeletePositionedObjectRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeletePositionedObjectRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeletePositionedObjectRequest(
od as api.DeletePositionedObjectRequest);
});
});
unittest.group('obj-schema-DeleteTableColumnRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeleteTableColumnRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeleteTableColumnRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeleteTableColumnRequest(od as api.DeleteTableColumnRequest);
});
});
unittest.group('obj-schema-DeleteTableRowRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildDeleteTableRowRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DeleteTableRowRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDeleteTableRowRequest(od as api.DeleteTableRowRequest);
});
});
unittest.group('obj-schema-Dimension', () {
unittest.test('to-json--from-json', () async {
var o = buildDimension();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Dimension.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkDimension(od as api.Dimension);
});
});
unittest.group('obj-schema-Document', () {
unittest.test('to-json--from-json', () async {
var o = buildDocument();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Document.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkDocument(od as api.Document);
});
});
unittest.group('obj-schema-DocumentStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildDocumentStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DocumentStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDocumentStyle(od as api.DocumentStyle);
});
});
unittest.group('obj-schema-DocumentStyleSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildDocumentStyleSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.DocumentStyleSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkDocumentStyleSuggestionState(od as api.DocumentStyleSuggestionState);
});
});
unittest.group('obj-schema-EmbeddedDrawingProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildEmbeddedDrawingProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.EmbeddedDrawingProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkEmbeddedDrawingProperties(od as api.EmbeddedDrawingProperties);
});
});
unittest.group('obj-schema-EmbeddedDrawingPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildEmbeddedDrawingPropertiesSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.EmbeddedDrawingPropertiesSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkEmbeddedDrawingPropertiesSuggestionState(
od as api.EmbeddedDrawingPropertiesSuggestionState);
});
});
unittest.group('obj-schema-EmbeddedObject', () {
unittest.test('to-json--from-json', () async {
var o = buildEmbeddedObject();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.EmbeddedObject.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkEmbeddedObject(od as api.EmbeddedObject);
});
});
unittest.group('obj-schema-EmbeddedObjectBorder', () {
unittest.test('to-json--from-json', () async {
var o = buildEmbeddedObjectBorder();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.EmbeddedObjectBorder.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkEmbeddedObjectBorder(od as api.EmbeddedObjectBorder);
});
});
unittest.group('obj-schema-EmbeddedObjectBorderSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildEmbeddedObjectBorderSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.EmbeddedObjectBorderSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkEmbeddedObjectBorderSuggestionState(
od as api.EmbeddedObjectBorderSuggestionState);
});
});
unittest.group('obj-schema-EmbeddedObjectSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildEmbeddedObjectSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.EmbeddedObjectSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkEmbeddedObjectSuggestionState(
od as api.EmbeddedObjectSuggestionState);
});
});
unittest.group('obj-schema-EndOfSegmentLocation', () {
unittest.test('to-json--from-json', () async {
var o = buildEndOfSegmentLocation();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.EndOfSegmentLocation.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkEndOfSegmentLocation(od as api.EndOfSegmentLocation);
});
});
unittest.group('obj-schema-Equation', () {
unittest.test('to-json--from-json', () async {
var o = buildEquation();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Equation.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkEquation(od as api.Equation);
});
});
unittest.group('obj-schema-Footer', () {
unittest.test('to-json--from-json', () async {
var o = buildFooter();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Footer.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkFooter(od as api.Footer);
});
});
unittest.group('obj-schema-Footnote', () {
unittest.test('to-json--from-json', () async {
var o = buildFootnote();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Footnote.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkFootnote(od as api.Footnote);
});
});
unittest.group('obj-schema-FootnoteReference', () {
unittest.test('to-json--from-json', () async {
var o = buildFootnoteReference();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.FootnoteReference.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkFootnoteReference(od as api.FootnoteReference);
});
});
unittest.group('obj-schema-Header', () {
unittest.test('to-json--from-json', () async {
var o = buildHeader();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Header.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkHeader(od as api.Header);
});
});
unittest.group('obj-schema-HorizontalRule', () {
unittest.test('to-json--from-json', () async {
var o = buildHorizontalRule();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.HorizontalRule.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkHorizontalRule(od as api.HorizontalRule);
});
});
unittest.group('obj-schema-ImageProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildImageProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ImageProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkImageProperties(od as api.ImageProperties);
});
});
unittest.group('obj-schema-ImagePropertiesSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildImagePropertiesSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ImagePropertiesSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkImagePropertiesSuggestionState(
od as api.ImagePropertiesSuggestionState);
});
});
unittest.group('obj-schema-InlineObject', () {
unittest.test('to-json--from-json', () async {
var o = buildInlineObject();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InlineObject.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInlineObject(od as api.InlineObject);
});
});
unittest.group('obj-schema-InlineObjectElement', () {
unittest.test('to-json--from-json', () async {
var o = buildInlineObjectElement();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InlineObjectElement.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInlineObjectElement(od as api.InlineObjectElement);
});
});
unittest.group('obj-schema-InlineObjectProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildInlineObjectProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InlineObjectProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInlineObjectProperties(od as api.InlineObjectProperties);
});
});
unittest.group('obj-schema-InlineObjectPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildInlineObjectPropertiesSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InlineObjectPropertiesSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInlineObjectPropertiesSuggestionState(
od as api.InlineObjectPropertiesSuggestionState);
});
});
unittest.group('obj-schema-InsertInlineImageRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertInlineImageRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertInlineImageRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertInlineImageRequest(od as api.InsertInlineImageRequest);
});
});
unittest.group('obj-schema-InsertInlineImageResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertInlineImageResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertInlineImageResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertInlineImageResponse(od as api.InsertInlineImageResponse);
});
});
unittest.group('obj-schema-InsertInlineSheetsChartResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertInlineSheetsChartResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertInlineSheetsChartResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertInlineSheetsChartResponse(
od as api.InsertInlineSheetsChartResponse);
});
});
unittest.group('obj-schema-InsertPageBreakRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertPageBreakRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertPageBreakRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertPageBreakRequest(od as api.InsertPageBreakRequest);
});
});
unittest.group('obj-schema-InsertSectionBreakRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertSectionBreakRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertSectionBreakRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertSectionBreakRequest(od as api.InsertSectionBreakRequest);
});
});
unittest.group('obj-schema-InsertTableColumnRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertTableColumnRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertTableColumnRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertTableColumnRequest(od as api.InsertTableColumnRequest);
});
});
unittest.group('obj-schema-InsertTableRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertTableRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertTableRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertTableRequest(od as api.InsertTableRequest);
});
});
unittest.group('obj-schema-InsertTableRowRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertTableRowRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertTableRowRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertTableRowRequest(od as api.InsertTableRowRequest);
});
});
unittest.group('obj-schema-InsertTextRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildInsertTextRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.InsertTextRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkInsertTextRequest(od as api.InsertTextRequest);
});
});
unittest.group('obj-schema-Link', () {
unittest.test('to-json--from-json', () async {
var o = buildLink();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.Link.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkLink(od as api.Link);
});
});
unittest.group('obj-schema-LinkedContentReference', () {
unittest.test('to-json--from-json', () async {
var o = buildLinkedContentReference();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.LinkedContentReference.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkLinkedContentReference(od as api.LinkedContentReference);
});
});
unittest.group('obj-schema-LinkedContentReferenceSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildLinkedContentReferenceSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.LinkedContentReferenceSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkLinkedContentReferenceSuggestionState(
od as api.LinkedContentReferenceSuggestionState);
});
});
unittest.group('obj-schema-List', () {
unittest.test('to-json--from-json', () async {
var o = buildList();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.List.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkList(od as api.List);
});
});
unittest.group('obj-schema-ListProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildListProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ListProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkListProperties(od as api.ListProperties);
});
});
unittest.group('obj-schema-ListPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildListPropertiesSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ListPropertiesSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkListPropertiesSuggestionState(
od as api.ListPropertiesSuggestionState);
});
});
unittest.group('obj-schema-Location', () {
unittest.test('to-json--from-json', () async {
var o = buildLocation();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Location.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkLocation(od as api.Location);
});
});
unittest.group('obj-schema-MergeTableCellsRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildMergeTableCellsRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.MergeTableCellsRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkMergeTableCellsRequest(od as api.MergeTableCellsRequest);
});
});
unittest.group('obj-schema-NamedRange', () {
unittest.test('to-json--from-json', () async {
var o = buildNamedRange();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.NamedRange.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkNamedRange(od as api.NamedRange);
});
});
unittest.group('obj-schema-NamedRanges', () {
unittest.test('to-json--from-json', () async {
var o = buildNamedRanges();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.NamedRanges.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkNamedRanges(od as api.NamedRanges);
});
});
unittest.group('obj-schema-NamedStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildNamedStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.NamedStyle.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkNamedStyle(od as api.NamedStyle);
});
});
unittest.group('obj-schema-NamedStyleSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildNamedStyleSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.NamedStyleSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkNamedStyleSuggestionState(od as api.NamedStyleSuggestionState);
});
});
unittest.group('obj-schema-NamedStyles', () {
unittest.test('to-json--from-json', () async {
var o = buildNamedStyles();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.NamedStyles.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkNamedStyles(od as api.NamedStyles);
});
});
unittest.group('obj-schema-NamedStylesSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildNamedStylesSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.NamedStylesSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkNamedStylesSuggestionState(od as api.NamedStylesSuggestionState);
});
});
unittest.group('obj-schema-NestingLevel', () {
unittest.test('to-json--from-json', () async {
var o = buildNestingLevel();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.NestingLevel.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkNestingLevel(od as api.NestingLevel);
});
});
unittest.group('obj-schema-NestingLevelSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildNestingLevelSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.NestingLevelSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkNestingLevelSuggestionState(od as api.NestingLevelSuggestionState);
});
});
unittest.group('obj-schema-ObjectReferences', () {
unittest.test('to-json--from-json', () async {
var o = buildObjectReferences();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ObjectReferences.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkObjectReferences(od as api.ObjectReferences);
});
});
unittest.group('obj-schema-OptionalColor', () {
unittest.test('to-json--from-json', () async {
var o = buildOptionalColor();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.OptionalColor.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkOptionalColor(od as api.OptionalColor);
});
});
unittest.group('obj-schema-PageBreak', () {
unittest.test('to-json--from-json', () async {
var o = buildPageBreak();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.PageBreak.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkPageBreak(od as api.PageBreak);
});
});
unittest.group('obj-schema-Paragraph', () {
unittest.test('to-json--from-json', () async {
var o = buildParagraph();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Paragraph.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkParagraph(od as api.Paragraph);
});
});
unittest.group('obj-schema-ParagraphBorder', () {
unittest.test('to-json--from-json', () async {
var o = buildParagraphBorder();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ParagraphBorder.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkParagraphBorder(od as api.ParagraphBorder);
});
});
unittest.group('obj-schema-ParagraphElement', () {
unittest.test('to-json--from-json', () async {
var o = buildParagraphElement();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ParagraphElement.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkParagraphElement(od as api.ParagraphElement);
});
});
unittest.group('obj-schema-ParagraphStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildParagraphStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ParagraphStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkParagraphStyle(od as api.ParagraphStyle);
});
});
unittest.group('obj-schema-ParagraphStyleSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildParagraphStyleSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ParagraphStyleSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkParagraphStyleSuggestionState(
od as api.ParagraphStyleSuggestionState);
});
});
unittest.group('obj-schema-Person', () {
unittest.test('to-json--from-json', () async {
var o = buildPerson();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Person.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkPerson(od as api.Person);
});
});
unittest.group('obj-schema-PersonProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildPersonProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.PersonProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkPersonProperties(od as api.PersonProperties);
});
});
unittest.group('obj-schema-PositionedObject', () {
unittest.test('to-json--from-json', () async {
var o = buildPositionedObject();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.PositionedObject.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkPositionedObject(od as api.PositionedObject);
});
});
unittest.group('obj-schema-PositionedObjectPositioning', () {
unittest.test('to-json--from-json', () async {
var o = buildPositionedObjectPositioning();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.PositionedObjectPositioning.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkPositionedObjectPositioning(od as api.PositionedObjectPositioning);
});
});
unittest.group('obj-schema-PositionedObjectPositioningSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildPositionedObjectPositioningSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.PositionedObjectPositioningSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkPositionedObjectPositioningSuggestionState(
od as api.PositionedObjectPositioningSuggestionState);
});
});
unittest.group('obj-schema-PositionedObjectProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildPositionedObjectProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.PositionedObjectProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkPositionedObjectProperties(od as api.PositionedObjectProperties);
});
});
unittest.group('obj-schema-PositionedObjectPropertiesSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildPositionedObjectPropertiesSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.PositionedObjectPropertiesSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkPositionedObjectPropertiesSuggestionState(
od as api.PositionedObjectPropertiesSuggestionState);
});
});
unittest.group('obj-schema-Range', () {
unittest.test('to-json--from-json', () async {
var o = buildRange();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.Range.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkRange(od as api.Range);
});
});
unittest.group('obj-schema-ReplaceAllTextRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildReplaceAllTextRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ReplaceAllTextRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkReplaceAllTextRequest(od as api.ReplaceAllTextRequest);
});
});
unittest.group('obj-schema-ReplaceAllTextResponse', () {
unittest.test('to-json--from-json', () async {
var o = buildReplaceAllTextResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ReplaceAllTextResponse.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkReplaceAllTextResponse(od as api.ReplaceAllTextResponse);
});
});
unittest.group('obj-schema-ReplaceImageRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildReplaceImageRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ReplaceImageRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkReplaceImageRequest(od as api.ReplaceImageRequest);
});
});
unittest.group('obj-schema-ReplaceNamedRangeContentRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildReplaceNamedRangeContentRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ReplaceNamedRangeContentRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkReplaceNamedRangeContentRequest(
od as api.ReplaceNamedRangeContentRequest);
});
});
unittest.group('obj-schema-Request', () {
unittest.test('to-json--from-json', () async {
var o = buildRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Request.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkRequest(od as api.Request);
});
});
unittest.group('obj-schema-Response', () {
unittest.test('to-json--from-json', () async {
var o = buildResponse();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Response.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkResponse(od as api.Response);
});
});
unittest.group('obj-schema-RgbColor', () {
unittest.test('to-json--from-json', () async {
var o = buildRgbColor();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.RgbColor.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkRgbColor(od as api.RgbColor);
});
});
unittest.group('obj-schema-SectionBreak', () {
unittest.test('to-json--from-json', () async {
var o = buildSectionBreak();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SectionBreak.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSectionBreak(od as api.SectionBreak);
});
});
unittest.group('obj-schema-SectionColumnProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildSectionColumnProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SectionColumnProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSectionColumnProperties(od as api.SectionColumnProperties);
});
});
unittest.group('obj-schema-SectionStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildSectionStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SectionStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSectionStyle(od as api.SectionStyle);
});
});
unittest.group('obj-schema-Shading', () {
unittest.test('to-json--from-json', () async {
var o = buildShading();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.Shading.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkShading(od as api.Shading);
});
});
unittest.group('obj-schema-ShadingSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildShadingSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.ShadingSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkShadingSuggestionState(od as api.ShadingSuggestionState);
});
});
unittest.group('obj-schema-SheetsChartReference', () {
unittest.test('to-json--from-json', () async {
var o = buildSheetsChartReference();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SheetsChartReference.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSheetsChartReference(od as api.SheetsChartReference);
});
});
unittest.group('obj-schema-SheetsChartReferenceSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildSheetsChartReferenceSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SheetsChartReferenceSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSheetsChartReferenceSuggestionState(
od as api.SheetsChartReferenceSuggestionState);
});
});
unittest.group('obj-schema-Size', () {
unittest.test('to-json--from-json', () async {
var o = buildSize();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.Size.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkSize(od as api.Size);
});
});
unittest.group('obj-schema-SizeSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildSizeSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SizeSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSizeSuggestionState(od as api.SizeSuggestionState);
});
});
unittest.group('obj-schema-StructuralElement', () {
unittest.test('to-json--from-json', () async {
var o = buildStructuralElement();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.StructuralElement.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkStructuralElement(od as api.StructuralElement);
});
});
unittest.group('obj-schema-SubstringMatchCriteria', () {
unittest.test('to-json--from-json', () async {
var o = buildSubstringMatchCriteria();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SubstringMatchCriteria.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSubstringMatchCriteria(od as api.SubstringMatchCriteria);
});
});
unittest.group('obj-schema-SuggestedBullet', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedBullet();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedBullet.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedBullet(od as api.SuggestedBullet);
});
});
unittest.group('obj-schema-SuggestedDocumentStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedDocumentStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedDocumentStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedDocumentStyle(od as api.SuggestedDocumentStyle);
});
});
unittest.group('obj-schema-SuggestedInlineObjectProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedInlineObjectProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedInlineObjectProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedInlineObjectProperties(
od as api.SuggestedInlineObjectProperties);
});
});
unittest.group('obj-schema-SuggestedListProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedListProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedListProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedListProperties(od as api.SuggestedListProperties);
});
});
unittest.group('obj-schema-SuggestedNamedStyles', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedNamedStyles();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedNamedStyles.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedNamedStyles(od as api.SuggestedNamedStyles);
});
});
unittest.group('obj-schema-SuggestedParagraphStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedParagraphStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedParagraphStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedParagraphStyle(od as api.SuggestedParagraphStyle);
});
});
unittest.group('obj-schema-SuggestedPositionedObjectProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedPositionedObjectProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedPositionedObjectProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedPositionedObjectProperties(
od as api.SuggestedPositionedObjectProperties);
});
});
unittest.group('obj-schema-SuggestedTableCellStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedTableCellStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedTableCellStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedTableCellStyle(od as api.SuggestedTableCellStyle);
});
});
unittest.group('obj-schema-SuggestedTableRowStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedTableRowStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedTableRowStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedTableRowStyle(od as api.SuggestedTableRowStyle);
});
});
unittest.group('obj-schema-SuggestedTextStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildSuggestedTextStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.SuggestedTextStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkSuggestedTextStyle(od as api.SuggestedTextStyle);
});
});
unittest.group('obj-schema-TabStop', () {
unittest.test('to-json--from-json', () async {
var o = buildTabStop();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.TabStop.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTabStop(od as api.TabStop);
});
});
unittest.group('obj-schema-Table', () {
unittest.test('to-json--from-json', () async {
var o = buildTable();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.Table.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTable(od as api.Table);
});
});
unittest.group('obj-schema-TableCell', () {
unittest.test('to-json--from-json', () async {
var o = buildTableCell();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.TableCell.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTableCell(od as api.TableCell);
});
});
unittest.group('obj-schema-TableCellBorder', () {
unittest.test('to-json--from-json', () async {
var o = buildTableCellBorder();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableCellBorder.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableCellBorder(od as api.TableCellBorder);
});
});
unittest.group('obj-schema-TableCellLocation', () {
unittest.test('to-json--from-json', () async {
var o = buildTableCellLocation();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableCellLocation.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableCellLocation(od as api.TableCellLocation);
});
});
unittest.group('obj-schema-TableCellStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildTableCellStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableCellStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableCellStyle(od as api.TableCellStyle);
});
});
unittest.group('obj-schema-TableCellStyleSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildTableCellStyleSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableCellStyleSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableCellStyleSuggestionState(
od as api.TableCellStyleSuggestionState);
});
});
unittest.group('obj-schema-TableColumnProperties', () {
unittest.test('to-json--from-json', () async {
var o = buildTableColumnProperties();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableColumnProperties.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableColumnProperties(od as api.TableColumnProperties);
});
});
unittest.group('obj-schema-TableOfContents', () {
unittest.test('to-json--from-json', () async {
var o = buildTableOfContents();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableOfContents.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableOfContents(od as api.TableOfContents);
});
});
unittest.group('obj-schema-TableRange', () {
unittest.test('to-json--from-json', () async {
var o = buildTableRange();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.TableRange.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTableRange(od as api.TableRange);
});
});
unittest.group('obj-schema-TableRow', () {
unittest.test('to-json--from-json', () async {
var o = buildTableRow();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.TableRow.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTableRow(od as api.TableRow);
});
});
unittest.group('obj-schema-TableRowStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildTableRowStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableRowStyle.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableRowStyle(od as api.TableRowStyle);
});
});
unittest.group('obj-schema-TableRowStyleSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildTableRowStyleSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TableRowStyleSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTableRowStyleSuggestionState(od as api.TableRowStyleSuggestionState);
});
});
unittest.group('obj-schema-TableStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildTableStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.TableStyle.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTableStyle(od as api.TableStyle);
});
});
unittest.group('obj-schema-TextRun', () {
unittest.test('to-json--from-json', () async {
var o = buildTextRun();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.TextRun.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTextRun(od as api.TextRun);
});
});
unittest.group('obj-schema-TextStyle', () {
unittest.test('to-json--from-json', () async {
var o = buildTextStyle();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od =
api.TextStyle.fromJson(oJson as core.Map<core.String, core.dynamic>);
checkTextStyle(od as api.TextStyle);
});
});
unittest.group('obj-schema-TextStyleSuggestionState', () {
unittest.test('to-json--from-json', () async {
var o = buildTextStyleSuggestionState();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.TextStyleSuggestionState.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkTextStyleSuggestionState(od as api.TextStyleSuggestionState);
});
});
unittest.group('obj-schema-UnmergeTableCellsRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUnmergeTableCellsRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UnmergeTableCellsRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUnmergeTableCellsRequest(od as api.UnmergeTableCellsRequest);
});
});
unittest.group('obj-schema-UpdateDocumentStyleRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUpdateDocumentStyleRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UpdateDocumentStyleRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUpdateDocumentStyleRequest(od as api.UpdateDocumentStyleRequest);
});
});
unittest.group('obj-schema-UpdateParagraphStyleRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUpdateParagraphStyleRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UpdateParagraphStyleRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUpdateParagraphStyleRequest(od as api.UpdateParagraphStyleRequest);
});
});
unittest.group('obj-schema-UpdateSectionStyleRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUpdateSectionStyleRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UpdateSectionStyleRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUpdateSectionStyleRequest(od as api.UpdateSectionStyleRequest);
});
});
unittest.group('obj-schema-UpdateTableCellStyleRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUpdateTableCellStyleRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UpdateTableCellStyleRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUpdateTableCellStyleRequest(od as api.UpdateTableCellStyleRequest);
});
});
unittest.group('obj-schema-UpdateTableColumnPropertiesRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUpdateTableColumnPropertiesRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UpdateTableColumnPropertiesRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUpdateTableColumnPropertiesRequest(
od as api.UpdateTableColumnPropertiesRequest);
});
});
unittest.group('obj-schema-UpdateTableRowStyleRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUpdateTableRowStyleRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UpdateTableRowStyleRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUpdateTableRowStyleRequest(od as api.UpdateTableRowStyleRequest);
});
});
unittest.group('obj-schema-UpdateTextStyleRequest', () {
unittest.test('to-json--from-json', () async {
var o = buildUpdateTextStyleRequest();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.UpdateTextStyleRequest.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkUpdateTextStyleRequest(od as api.UpdateTextStyleRequest);
});
});
unittest.group('obj-schema-WeightedFontFamily', () {
unittest.test('to-json--from-json', () async {
var o = buildWeightedFontFamily();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.WeightedFontFamily.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkWeightedFontFamily(od as api.WeightedFontFamily);
});
});
unittest.group('obj-schema-WriteControl', () {
unittest.test('to-json--from-json', () async {
var o = buildWriteControl();
var oJson = convert.jsonDecode(convert.jsonEncode(o));
var od = api.WriteControl.fromJson(
oJson as core.Map<core.String, core.dynamic>);
checkWriteControl(od as api.WriteControl);
});
});
unittest.group('resource-DocumentsResource', () {
unittest.test('method--batchUpdate', () async {
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);
final response = await res.batchUpdate(arg_request, arg_documentId,
$fields: arg_$fields);
checkBatchUpdateDocumentResponse(
response as api.BatchUpdateDocumentResponse);
});
unittest.test('method--create', () async {
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);
final response = await res.create(arg_request, $fields: arg_$fields);
checkDocument(response as api.Document);
});
unittest.test('method--get', () async {
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);
final response = await res.get(arg_documentId,
suggestionsViewMode: arg_suggestionsViewMode, $fields: arg_$fields);
checkDocument(response as api.Document);
});
});
}