Get desktop application:
View/edit binary Protocol Buffers messages
Test that RPC services work.
(message has no fields)
(message has no fields)
(message has no fields)
(message has no fields)
Used in:
, , , ,Define these after TestAllTypes to make sure the compiler can handle that.
Used in:
, , ,Used in:
Used in:
Test String and Bytes: string is for valid UTF-8 strings
(message has no fields)
This proto includes every type of field in both singular and repeated forms.
Singular
Repeated
Singular with defaults
Used in:
Used in:
,The field name "b" fails to compile in proto1 because it conflicts with a local variable named "b" in one of the generated methods. Doh. This file needs to compile in proto1 to test backwards-compatibility.
Used in:
Used in:
Test message with CamelCase field names. This violates Protocol Buffer standard style.
Test that groups have disjoint field numbers from their siblings and parents. This is NOT possible in proto1; only proto2. When attempting to compile with proto1, this will emit an error; so we only include it in protobuf_unittest_proto.
NO_PROTO1
NO_PROTO1
Used in:
Used in:
Used by ExtensionSetTest/DynamicExtensions. The test actually builds a set of extensions to TestAllExtensions dynamically, based on the fields of this message type.
Used in:
Used in:
TestEmptyMessage is used to test unknown field support.
(message has no fields)
Like above, but declare all field numbers as potential extensions. No actual extensions should ever be defined for this type.
(message has no fields)
Test an enum that has multiple values with the same number.
The default value here is UTF-8 for "\u1234". (We could also just type the UTF-8 text directly into this text file rather than escape it, but lots of people use editors that would be confused by this.)
Tests for single-precision floating-point values.
Using exponents
Text for nonfinite floating-point values.
Tests for C++ trigraphs. Trigraphs should be escaped in C++ generated files, but they should not be escaped for other languages. Note that in .proto file, "\?" is a valid way to escape ? in string literals.
We list fields out of order, to ensure that we're using field number and not field index to determine serialization order.
Test that we can use NestedMessage from outside TestAllTypes.
(message has no fields)
Test that mutual recursion works.
Used in:
Used in:
(message has no fields)
Needed for a Python test.
Used in:
(message has no fields)
Test that really large tag numbers don't break anything.
The largest possible tag number is 2^28 - 1, since the wire format uses three bits to communicate wire type.
Parsing repeated fixed size values used to fail. This message needs to be used in order to get a tag of the right size; all of the repeated fields in TestAllTypes didn't trigger the check.
Check for a varint type, just for good measure.
These have two-byte tags.
Three byte tags.
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:
Pad the field count to 32 so that we can test that IsInitialized() properly checks multiple elements of has_bits_.
Test an enum with large, unordered values.
Used in:
A message with the same fields as TestPackedTypes, but without packing. Used to test packed <-> unpacked wire compatibility.