google/protobuf/unittest.pb library

Classes

BarRequest
BarResponse
BoolMessage
FooClientMessage
FooRequest
Test that RPC services work.
FooResponse
FooServerMessage
ForeignEnum
ForeignMessage
Define these after TestAllTypes to make sure the compiler can handle that.
Int32Message
Test int32, uint32, int64, uint64, and bool are all compatible
Int64Message
ManyOptionalString
MoreBytes
MoreString
NestedTestAllTypes
This proto includes a recursively nested message.
OneBytes
OneString
Test String and Bytes: string is for valid UTF-8 strings
OptionalGroup_extension
RepeatedGroup_extension
SparseEnumMessage
TestAllExtensions
TestAllTypes
This proto includes every type of field in both singular and repeated forms.
TestAllTypes_NestedEnum
TestAllTypes_NestedMessage
TestAllTypes_OptionalGroup
TestAllTypes_RepeatedGroup
TestCamelCaseFieldNames
Test message with CamelCase field names. This violates Protocol Buffer standard style.
TestChildExtension
TestChildExtensionData
Emulates wireformat data of TestChildExtension with dynamic extension (DynamicExtension).
TestChildExtensionData_NestedTestAllExtensionsData
TestChildExtensionData_NestedTestAllExtensionsData_NestedDynamicExtensions
TestCommentInjectionMessage
TestDeprecatedFields
TestDeprecatedMessage
TestDupFieldNumber
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.
TestDupFieldNumber_Bar
TestDupFieldNumber_Foo
TestDynamicExtensions
Used by ExtensionSetTest/DynamicExtensions. The test actually builds a set of extensions to TestAllExtensions dynamically, based on the fields of this message type.
TestDynamicExtensions_DynamicEnumType
TestDynamicExtensions_DynamicMessageType
TestEagerMaybeLazy
TestEagerMaybeLazy_NestedMessage
TestEagerMessage
Additional messages for testing lazy fields.
TestEmptyMessage
TestEmptyMessage is used to test unknown field support.
TestEmptyMessageWithExtensions
Like above, but declare all field numbers as potential extensions. No actual extensions should ever be defined for this type.
TestEnumWithDupValue
Test an enum that has multiple values with the same number.
TestExtensionInsideTable
TestExtensionOrderings1
TestExtensionOrderings2
TestExtensionOrderings2_TestExtensionOrderings3
TestExtensionRangeSerialize
TestExtremeDefaultValues
TestFieldOrderings
We list fields out of order, to ensure that we're using field number and not field index to determine serialization order.
TestFieldOrderings_NestedMessage
TestForeignNested
Test that we can use NestedMessage from outside TestAllTypes.
TestGroup
TestGroup_OptionalGroup
TestGroupExtension
TestHugeFieldNumbers
TestHugeFieldNumbers_OptionalGroup
TestIsInitialized
TestIsInitialized_SubMessage
TestIsInitialized_SubMessage_SubGroup
TestJsonName
TestLazyMessage
TestMergeException
Test that the correct exception is thrown by parseFrom in a corner case involving merging, extensions, and required fields.
TestMessageSize
Used to check that the c++ code generator re-orders messages to reduce padding.
TestMultipleExtensionRanges
TestMutualRecursionA
Test that mutual recursion works.
TestMutualRecursionA_SubGroup
TestMutualRecursionA_SubMessage
TestMutualRecursionB
TestNestedChildExtension
TestNestedChildExtensionData
Emulates wireformat data of TestNestedChildExtension with dynamic extension (DynamicExtension).
TestNestedExtension
TestNestedExtension_OptionalGroup_extension
TestNestedGroupExtensionInnerExtension
TestNestedGroupExtensionOuter
NOTE(b/202996544): Intentionally nested to mirror go/glep.
TestNestedGroupExtensionOuter_Layer1OptionalGroup
TestNestedGroupExtensionOuter_Layer1OptionalGroup_Layer2AnotherOptionalRepeatedGroup
TestNestedGroupExtensionOuter_Layer1OptionalGroup_Layer2RepeatedGroup
TestNestedMessageHasBits
Needed for a Python test.
TestNestedMessageHasBits_NestedMessage
TestNestedRequiredForeign
TestOneof
Test oneofs.
TestOneof2
TestOneof2_FooGroup
TestOneof2_NestedEnum
TestOneof2_NestedMessage
TestOneof_FooGroup
TestOneofBackwardsCompatible
TestOneofBackwardsCompatible_FooGroup
TestPackedExtensions
TestPackedTypes
TestParsingMerge
Test that if an optional or required message/group field appears multiple times in the input, they need to be merged.
TestParsingMerge_OptionalGroup
TestParsingMerge_RepeatedFieldsGenerator
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.
TestParsingMerge_RepeatedFieldsGenerator_Group1
TestParsingMerge_RepeatedFieldsGenerator_Group2
TestParsingMerge_RepeatedGroup
TestPickleNestedMessage
Needed for a Python test.
TestPickleNestedMessage_NestedMessage
TestPickleNestedMessage_NestedMessage_NestedNestedMessage
TestReallyLargeTagNumber
Test that really large tag numbers don't break anything.
TestRecursiveMessage
TestRepeatedScalarDifferentTagSizes
TestRequired
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.
TestRequiredForeign
TestRequiredMessage
TestRequiredOneof
TestRequiredOneof_NestedMessage
TestReservedFields
TestSparseEnum
Test an enum with large, unordered values.
TestUnpackedExtensions
TestUnpackedTypes
A message with the same fields as TestPackedTypes, but without packing. Used to test packed <-> unpacked wire compatibility.
TestVerifyBigFieldNumberUint32
TestVerifyBigFieldNumberUint32_Nested
TestVerifyInt32
TestVerifyInt32BigFieldNumber
TestVerifyInt32Simple
TestVerifyMostlyInt32
TestVerifyMostlyInt32BigFieldNumber
TestVerifyOneInt32BigFieldNumber
TestVerifyOneUint32
TestVerifyUint32
TestVerifyUint32BigFieldNumber
TestVerifyUint32Simple
Uint32Message
Uint64Message
Unittest
VeryLargeEnum

Extensions

GeneratedMessageGenericExtensions on T
Extensions on GeneratedMessages.