Lines Matching refs:proto
138 var empty1 = new proto.jspb.test.Empty([]);
139 var empty2 = new proto.jspb.test.Empty([]);
145 var response = new proto.jspb.test.EnumContainer([]);
146 response.setOuterEnum(proto.jspb.test.OuterEnum.FOO);
147 assertEquals(proto.jspb.test.OuterEnum.FOO, response.getOuterEnum());
151 var data = new proto.jspb.test.DefaultValues([]);
159 var foo = new proto.jspb.test.Complex(data1);
160 var bar = new proto.jspb.test.Complex(data2);
193 var foo = new proto.jspb.test.Complex([
197 var bar = new proto.jspb.test.Complex([
218 var msg = new proto.jspb.test.OuterMessage.Complex();
225 var special = new proto.jspb.test.SpecialCases(
240 var response = new proto.jspb.test.DefaultValues();
255 response = new proto.jspb.test.DefaultValues();
264 return new proto.jspb.test.DefaultValues(values);
333 var s1 = new proto.jspb.test.Simple1(['hi']);
334 assertTrue(jspb.Message.equals(s1, new proto.jspb.test.Simple1(['hi'])));
335 assertFalse(jspb.Message.equals(s1, new proto.jspb.test.Simple1(['bye'])));
336 var s1b = new proto.jspb.test.Simple1(['hi', ['hello']]);
338 s1b, new proto.jspb.test.Simple1(['hi', ['hello']])));
339 assertTrue(jspb.Message.equals(s1b, new proto.jspb.test.Simple1([
343 s1b, new proto.jspb.test.Simple1(['no', ['hello']])));
345 var s2 = new proto.jspb.test.Simple2(['hi']);
350 var s1 = new proto.jspb.test.Simple1(['hi', [], null]);
352 jspb.Message.equals(s1, new proto.jspb.test.Simple1(['hi', []])));
354 var s1b = new proto.jspb.test.Simple1(['hi', [], true]);
356 jspb.Message.equals(s1b, new proto.jspb.test.Simple1(['hi', [], 1])));
364 var c1a = new proto.jspb.test.Complex(data1);
365 var c1b = new proto.jspb.test.Complex(data1);
366 var c2 = new proto.jspb.test.Complex(data2);
367 var c3 = new proto.jspb.test.Complex(data3);
368 var s1 = new proto.jspb.test.Simple1(data4);
378 new proto.jspb.test.HasExtensions([]),
379 new proto.jspb.test.HasExtensions([{}])));
381 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
382 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}])));
384 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
385 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'b'}]}])));
387 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}]),
388 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}])));
390 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}]),
391 new proto.jspb.test.HasExtensions([, , , {100: [{200: 'a'}]}])));
393 new proto.jspb.test.HasExtensions([, , , {100: [{200: 'a'}]}]),
394 new proto.jspb.test.HasExtensions([{100: [{200: 'a'}]}])));
396 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}]),
397 new proto.jspb.test.HasExtensions(['hi', , , {100: [{200: 'a'}]}])));
399 new proto.jspb.test.HasExtensions(['hi', , , {100: [{200: 'a'}]}]),
400 new proto.jspb.test.HasExtensions(['hi', {100: [{200: 'a'}]}])));
425 var msg = new proto.jspb.test.TestLastFieldBeforePivot([null]);
442 var p1 = new proto.jspb.test.Simple1(['k', ['v']]);
443 var p2 = new proto.jspb.test.Simple1(['k1', ['v1', 'v2']]);
445 [p1, p2], proto.jspb.test.Simple1.prototype.getAString,
446 proto.jspb.test.Simple1.prototype.toObject);
450 [p1, p2], proto.jspb.test.Simple1.prototype.getAString);
458 var original = new proto.jspb.test.TestClone();
460 var simple1 = new proto.jspb.test.Simple1(['x1', ['y1', 'z1']]);
461 var simple2 = new proto.jspb.test.Simple1(['x2', ['y2', 'z2']]);
462 var simple3 = new proto.jspb.test.Simple1(['x3', ['y3', 'z3']]);
467 var extension = new proto.jspb.test.CloneExtension();
469 original.setExtension(proto.jspb.test.IsExtension.extField, extension);
479 var simple4 = new proto.jspb.test.Simple1(['a1', ['b1', 'c1']]);
480 var simple5 = new proto.jspb.test.Simple1(['a2', ['b2', 'c2']]);
481 var simple6 = new proto.jspb.test.Simple1(['a3', ['b3', 'c3']]);
490 var newExtension = new proto.jspb.test.CloneExtension();
492 clone.setExtension(proto.jspb.test.CloneExtension.extField, newExtension);
512 var original = new proto.jspb.test.TestClone();
514 var dest = new proto.jspb.test.TestClone();
516 var simple1 = new proto.jspb.test.Simple1(['x1', ['y1', 'z1']]);
517 var simple2 = new proto.jspb.test.Simple1(['x2', ['y2', 'z2']]);
518 var simple3 = new proto.jspb.test.Simple1(['x3', ['y3', 'z3']]);
519 var destSimple1 = new proto.jspb.test.Simple1(['ox1', ['oy1', 'oz1']]);
520 var destSimple2 = new proto.jspb.test.Simple1(['ox2', ['oy2', 'oz2']]);
521 var destSimple3 = new proto.jspb.test.Simple1(['ox3', ['oy3', 'oz3']]);
530 var extension = new proto.jspb.test.CloneExtension();
532 original.setExtension(proto.jspb.test.CloneExtension.extField, extension);
539 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt());
552 dest.getExtension(proto.jspb.test.CloneExtension.extField)
555 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt(),
556 original.getExtension(proto.jspb.test.CloneExtension.extField)
561 var a = new proto.jspb.test.TestClone();
562 var b = new proto.jspb.test.Simple1(['str', ['s1', 's2']]);
571 var extension1 = new proto.jspb.test.IsExtension(['ext1field']);
572 var extension2 = new proto.jspb.test.Simple1(['str', ['s1', 's2']]);
573 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
574 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension1);
576 proto.jspb.test.IndirectExtension.simple, extension2);
577 extendable.setExtension(proto.jspb.test.IndirectExtension.str, 'xyzzy');
579 proto.jspb.test.IndirectExtension.repeatedStrList, ['a', 'b']);
580 var s1 = new proto.jspb.test.Simple1(['foo', ['s1', 's2']]);
581 var s2 = new proto.jspb.test.Simple1(['bar', ['t1', 't2']]);
583 proto.jspb.test.IndirectExtension.repeatedSimpleList, [s1, s2]);
586 extendable.getExtension(proto.jspb.test.IsExtension.extField));
589 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
592 extendable.getExtension(proto.jspb.test.IndirectExtension.str));
596 proto.jspb.test.IndirectExtension.repeatedStrList));
600 proto.jspb.test.IndirectExtension.repeatedSimpleList));
602 extendable.setExtension(proto.jspb.test.IndirectExtension.simple, null);
604 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
605 extendable.setExtension(proto.jspb.test.IndirectExtension.str, null);
606 assertNull(extendable.getExtension(proto.jspb.test.IndirectExtension.str));
610 assertUndefined(proto.jspb.test.IndirectExtension['ignored']);
611 assertUndefined(proto.jspb.test.HasExtensions['ignoredFloating']);
616 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
617 var extension = new proto.jspb.test.Simple1(['foo', ['s1', 's2']]);
618 extendable.setExtension(proto.jspb.test.simple1, extension);
620 extension, extendable.getExtension(proto.jspb.test.simple1));
623 extension = new proto.jspb.test.ExtensionMessage(['s1']);
624 extendable = new proto.jspb.test.TestExtensionsMessage([16]);
625 extendable.setExtension(proto.jspb.test.floatingMsgField, extension);
626 extendable.setExtension(proto.jspb.test.floatingStrField, 's2');
628 extension, extendable.getExtension(proto.jspb.test.floatingMsgField));
630 's2', extendable.getExtension(proto.jspb.test.floatingStrField));
631 assertNotUndefined(proto.jspb.exttest.floatingMsgField);
632 assertNotUndefined(proto.jspb.exttest.floatingMsgFieldTwo);
633 assertNotUndefined(proto.jspb.exttest.beta.floatingStrField);
638 new proto.jspb.exttest.nested.TestNestedExtensionsMessage();
640 new proto.jspb.exttest.nested.TestOuterMessage.NestedExtensionMessage(
643 proto.jspb.exttest.nested.TestOuterMessage.innerExtension, extension);
647 proto.jspb.exttest.nested.TestOuterMessage.innerExtension));
651 var extension1 = new proto.jspb.test.IsExtension(['ext1field']);
652 var extension2 = new proto.jspb.test.Simple1(['str', ['s1', 's2'], true]);
653 var extendable = new proto.jspb.test.HasExtensions(['v1', 'v2', 'v3']);
654 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension1);
656 proto.jspb.test.IndirectExtension.simple, extension2);
657 extendable.setExtension(proto.jspb.test.IndirectExtension.str, 'xyzzy');
659 proto.jspb.test.IndirectExtension.repeatedStrList, ['a', 'b']);
660 var s1 = new proto.jspb.test.Simple1(['foo', ['s1', 's2'], true]);
661 var s2 = new proto.jspb.test.Simple1(['bar', ['t1', 't2'], false]);
663 proto.jspb.test.IndirectExtension.repeatedSimpleList, [s1, s2]);
693 extendable.getExtension(proto.jspb.test.IsExtension.extField)
700 proto.jspb.test.IndirectExtension.simple)
724 var msg = new proto.jspb.test.HasExtensions([]);
729 var msg = new proto.jspb.test.Empty([{1: 'hi'}]);
735 var msg = new proto.jspb.test.Empty([1, {4: 'hi'}]);
741 var msg = new proto.jspb.test.Empty([1, 2, 3, {1: 'hi'}]);
748 new proto.jspb.test.HasExtensions(['str1', {'a_key': 'an_object'}]);
754 new proto.jspb.test.HasExtensions(['str1', {100: ['ext1'], 102: ''}]);
762 var data = new proto.jspb.test.HasExtensions(['str1', {100: ['ext1']}]);
764 var extension = data.getExtension(proto.jspb.test.IsExtension.extField);
770 var data = new proto.jspb.test.HasExtensions();
771 var extensionMessage = new proto.jspb.test.IsExtension(['is_extension']);
772 data.setExtension(proto.jspb.test.IsExtension.extField, extensionMessage);
774 assertNotNull(data.getExtension(proto.jspb.test.IsExtension.extField));
783 var group = new proto.jspb.test.TestGroup();
784 var someGroup = new proto.jspb.test.TestGroup.RepeatedGroup();
803 var group1 = new proto.jspb.test.TestGroup1();
810 var message = new proto.jspb.test.Complex(data);
815 var message = new proto.jspb.test.TestReservedNames();
817 message.setExtension(proto.jspb.test.TestReservedNamesExtension.foo, 12);
821 message.getExtension(proto.jspb.test.TestReservedNamesExtension.foo));
826 var message = new proto.jspb.test.TestMessageWithOneof([]);
828 proto.jspb.test.TestMessageWithOneof.PartialOneofCase
832 proto.jspb.test.TestMessageWithOneof.RecursiveOneofCase
838 var message = new proto.jspb.test.TestMessageWithOneof;
840 proto.jspb.test.TestMessageWithOneof.PartialOneofCase
846 proto.jspb.test.TestMessageWithOneof.PartialOneofCase.PONE,
851 proto.jspb.test.TestMessageWithOneof.PartialOneofCase
863 var message = new proto.jspb.test.FloatingPointFields([
884 var message = new proto.jspb.test.FloatingPointFields([
906 var message = new proto.jspb.test.BooleanFields([1, 1, [true, 1]]);
918 message = new proto.jspb.test.BooleanFields([0, 0, [0, 0]]);
927 new proto.jspb.exttest.reverse.TestExtensionReverseOrderMessage2;
930 proto.jspb.exttest.reverse.TestExtensionReverseOrderMessage1.a, 233);
932 proto.jspb.exttest.reverse.TestExtensionReverseOrderMessage1
935 message2.setExtension(proto.jspb.exttest.reverse.c, 23333);
940 proto.jspb.exttest.reverse.TestExtensionReverseOrderMessage1.a));
944 proto.jspb.exttest.reverse.TestExtensionReverseOrderMessage1
946 assertEquals(23333, message2.getExtension(proto.jspb.exttest.reverse.c));
950 var nestMessage1 = new proto.jspb.circulartest.MessageField1;
951 var nestMessage2 = new proto.jspb.circulartest.MessageField2;
952 var message1 = new proto.jspb.circulartest.MessageField1;
953 var message2 = new proto.jspb.circulartest.MessageField2;
967 var nestMessage1 = new proto.jspb.circulartest.RepeatedMessageField1;
968 var nestMessage2 = new proto.jspb.circulartest.RepeatedMessageField2;
969 var message1 = new proto.jspb.circulartest.RepeatedMessageField1;
970 var message2 = new proto.jspb.circulartest.RepeatedMessageField2;
983 var nestMessage1 = new proto.jspb.circulartest.MapField1;
984 var nestMessage2 = new proto.jspb.circulartest.MapField2;
985 var message1 = new proto.jspb.circulartest.MapField1;
986 var message2 = new proto.jspb.circulartest.MapField2;
1000 new proto.jspb.circulartest.NestedMessage1.NestedNestedMessage;
1001 var nestMessage2 = new proto.jspb.circulartest.NestedMessage2;
1002 var message1 = new proto.jspb.circulartest.NestedMessage1;
1003 var message2 = new proto.jspb.circulartest.NestedMessage2;
1016 var nestMessage2 = new proto.jspb.circulartest.NestedEnum2;
1017 var message1 = new proto.jspb.circulartest.NestedEnum1;
1018 var message2 = new proto.jspb.circulartest.NestedEnum2;
1022 message2.setB(proto.jspb.circulartest.NestedEnum1.NestedNestedEnum.VALUE_1);
1027 proto.jspb.circulartest.NestedEnum1.NestedNestedEnum.VALUE_1,
1032 var nestMessage2 = new proto.jspb.circulartest.ExtensionContainingType2;
1033 var message1 = new proto.jspb.circulartest.ExtensionContainingType1;
1038 proto.jspb.circulartest.ExtensionContainingType2.c, 1);
1045 proto.jspb.circulartest.ExtensionContainingType2.c));
1049 var nestMessage2 = new proto.jspb.circulartest.ExtensionField2;
1050 var message1 = new proto.jspb.circulartest.ExtensionField1;
1051 var message3 = new proto.jspb.circulartest.ExtensionField3;
1055 message3.setExtension(proto.jspb.circulartest.ExtensionField2.c, message1);
1060 message3.getExtension(proto.jspb.circulartest.ExtensionField2.c)
1066 var package1Message = new proto.jspb.filenametest.package1.TestMessage;
1067 var package2Message = new proto.jspb.filenametest.package2.TestMessage;
1069 package1Message.setExtension(proto.jspb.filenametest.package1.a, 10);
1070 package1Message.setExtension(proto.jspb.filenametest.package1.b, 11);
1074 10, package1Message.getExtension(proto.jspb.filenametest.package1.a));
1076 11, package1Message.getExtension(proto.jspb.filenametest.package1.b));
1082 var message = new proto.jspb.test.MessageWithLargeFieldNumbers;