package protobuf_unittest

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service TestService

unittest.proto:897

message BoolMessage

unittest.proto:635

message FooClientMessage

unittest.proto:894

(message has no fields)

message FooServerMessage

unittest.proto:895

(message has no fields)

enum ForeignEnum

unittest.proto:204

Used in: TestAllTypes, TestCamelCaseFieldNames, TestDynamicExtensions, TestPackedTypes, TestUnpackedTypes

message ForeignMessage

unittest.proto:200

Define these after TestAllTypes to make sure the compiler can handle that.

Used in: TestAllTypes, TestCamelCaseFieldNames, TestDynamicExtensions, TestNestedMessageHasBits.NestedMessage

message Int32Message

unittest.proto:619

Test int32, uint32, int64, uint64, and bool are all compatible

message Int64Message

unittest.proto:627

message MoreBytes

unittest.proto:614

message MoreString

unittest.proto:606

message NestedTestAllTypes

unittest.proto:188

This proto includes a recusively nested message.

message OneBytes

unittest.proto:610

message OneString

unittest.proto:602

Test String and Bytes: string is for valid UTF-8 strings

message SparseEnumMessage

unittest.proto:597

message TestAllExtensions

unittest.proto:215

(message has no fields)

message TestAllTypes

unittest.proto:62

This proto includes every type of field in both singular and repeated forms.

Used in: NestedTestAllTypes, TestEagerMessage, TestLazyMessage, TestOneof, TestOneofBackwardsCompatible, TestParsingMerge, TestParsingMerge.RepeatedFieldsGenerator

enum TestAllTypes.NestedEnum

unittest.proto:70

Used in: TestAllTypes

message TestAllTypes.NestedMessage

unittest.proto:63

Used in: TestAllTypes, TestForeignNested

message TestCamelCaseFieldNames

unittest.proto:501

Test message with CamelCase field names. This violates Protocol Buffer standard style.

message TestCommentInjectionMessage

unittest.proto:884

message TestDeprecatedFields

unittest.proto:194

message TestDupFieldNumber

unittest.proto:451

Test that groups have disjoint field numbers from their siblings and parents. This is NOT possible in proto1; only google.protobuf. When attempting to compile with proto1, this will emit an error; so we only include it in protobuf_unittest_proto.

NO_PROTO1

message TestDynamicExtensions

unittest.proto:805

Used by ExtensionSetTest/DynamicExtensions. The test actually builds a set of extensions to TestAllExtensions dynamically, based on the fields of this message type.

enum TestDynamicExtensions.DynamicEnumType

unittest.proto:806

Used in: TestDynamicExtensions

message TestDynamicExtensions.DynamicMessageType

unittest.proto:811

Used in: TestDynamicExtensions

message TestEagerMessage

unittest.proto:460

Additional messages for testing lazy fields.

message TestEmptyMessage

unittest.proto:409

TestEmptyMessage is used to test unknown field support.

(message has no fields)

message TestEmptyMessageWithExtensions

unittest.proto:414

Like above, but declare all field numbers as potential extensions. No actual extensions should ever be defined for this type.

(message has no fields)

enum TestEnumWithDupValue

unittest.proto:478

Test an enum that has multiple values with the same number.

message TestExtremeDefaultValues

unittest.proto:544

message TestFieldOrderings

unittest.proto:520

We list fields out of order, to ensure that we're using field number and not field index to determine serialization order.

message TestFieldOrderings.NestedMessage

unittest.proto:526

Used in: TestFieldOrderings

message TestForeignNested

unittest.proto:404

Test that we can use NestedMessage from outside TestAllTypes.

message TestLazyMessage

unittest.proto:463

message TestMultipleExtensionRanges

unittest.proto:418

(message has no fields)

message TestMutualRecursionA

unittest.proto:438

Test that mutual recursion works.

Used in: TestMutualRecursionB

message TestMutualRecursionB

unittest.proto:442

Used in: TestMutualRecursionA

message TestNestedExtension

unittest.proto:336

(message has no fields)

message TestNestedMessageHasBits

unittest.proto:468

Needed for a Python test.

message TestNestedMessageHasBits.NestedMessage

unittest.proto:469

Used in: TestNestedMessageHasBits

message TestOneof

unittest.proto:640

Test oneofs.

message TestOneof2

unittest.proto:666

enum TestOneof2.NestedEnum

unittest.proto:703

Used in: TestOneof2

message TestOneof2.NestedMessage

unittest.proto:698

Used in: TestOneof2

message TestOneofBackwardsCompatible

unittest.proto:654

message TestPackedExtensions

unittest.proto:760

(message has no fields)

message TestPackedTypes

unittest.proto:724

message TestParsingMerge

unittest.proto:845

Test that if an optional or required message/group field appears multiple times in the input, they need to be merged.

message TestParsingMerge.RepeatedFieldsGenerator

unittest.proto:851

RepeatedFieldsGenerator defines matching field types as TestParsingMerge, except that all fields are repeated. In the tests, we will serialize the RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge. Repeated fields in RepeatedFieldsGenerator are expected to be merged into the corresponding required/optional fields in TestParsingMerge.

message TestReallyLargeTagNumber

unittest.proto:425

Test that really large tag numbers don't break anything.

message TestRecursiveMessage

unittest.proto:432

message TestRepeatedScalarDifferentTagSizes

unittest.proto:826

message TestRequired

unittest.proto:352

We have separate messages for testing required fields because it's annoying to have to fill in required fields in TestProto in order to do anything with it. Note that we don't need to test every type of required filed because the code output is basically identical to optional fields for all types.

Used in: TestRequiredForeign

message TestRequiredForeign

unittest.proto:397

message TestRequiredOneof

unittest.proto:710

message TestRequiredOneof.NestedMessage

unittest.proto:716

Used in: TestRequiredOneof

message TestReservedFields

unittest.proto:210

(message has no fields)

enum TestSparseEnum

unittest.proto:489

Test an enum with large, unordered values.

Used in: SparseEnumMessage

message TestUnpackedExtensions

unittest.proto:781

(message has no fields)

message TestUnpackedTypes

unittest.proto:743

A message with the same fields as TestPackedTypes, but without packing. Used to test packed <-> unpacked wire compatibility.

message Uint32Message

unittest.proto:623

message Uint64Message

unittest.proto:631