/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | TextFormatTest.java | 42 import com.google.protobuf.TextFormat.Parser.SingularOverwritePolicy; 143 private final TextFormat.Parser parserAllowingUnknownFields = 144 TextFormat.Parser.newBuilder().setAllowUnknownFields(true).build(); 146 private final TextFormat.Parser parserAllowingUnknownExtensions = 147 TextFormat.Parser.newBuilder().setAllowUnknownExtensions(true).build(); 149 private final TextFormat.Parser parserWithOverwriteForbidden = 150 TextFormat.Parser.newBuilder() 154 private final TextFormat.Parser defaultParser = TextFormat.Parser.newBuilder().build(); 158 String javaText = TextFormat.printer().printToString(TestUtil.getAllSet()); in testPrintMessage() 170 String javaText = TextFormat.printer().printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder() [all …]
|
D | UnknownEnumValueTest.java | 42 import com.google.protobuf.TextFormat.ParseException; 237 String textData = TextFormat.printer().printToString(message); in testUnknownEnumValuesInTextFormat() 247 TextFormat.merge(textData, builder); in testUnknownEnumValuesInTextFormat()
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | TextFormatTest.java | 115 String javaText = TextFormat.printToString(TestUtil.getAllSet()); in testPrintMessage() 127 String javaText = TextFormat.printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder() 139 String javaText = TextFormat.printToString(TestUtil.getAllExtensionsSet()); in testPrintExtensions() 203 TextFormat.printToString(message)); in testPrintUnknownFields() 211 TextFormat.printFieldToString(dataField, "test data")); in testPrintField() 219 TextFormat.printFieldToString(optionalField, value)); in testPrintField() 301 TextFormat.merge(allFieldsSetText, builder); in testParse() 307 TextFormat.merge(new StringReader(allFieldsSetText), builder); in testParseReader() 313 TextFormat.merge(allExtensionsSetText, in testParseExtensions() 345 TextFormat.merge(original, builder); in testParseCompatibility() [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | text_format.cc | 87 TextFormat::Printer printer; in DebugString() 98 TextFormat::Printer printer; in ShortDebugString() 114 TextFormat::Printer printer; in Utf8DebugString() 128 void TextFormat::ParseInfoTree::RecordLocation( in RecordLocation() 129 const FieldDescriptor* field, TextFormat::ParseLocation location) { in RecordLocation() 133 TextFormat::ParseInfoTree* TextFormat::ParseInfoTree::CreateNested( in CreateNested() 137 vec.emplace_back(new TextFormat::ParseInfoTree()); in CreateNested() 155 TextFormat::ParseLocation TextFormat::ParseInfoTree::GetLocation( in GetLocation() 162 const std::vector<TextFormat::ParseLocation>* locations = in GetLocation() 165 return TextFormat::ParseLocation(); in GetLocation() [all …]
|
D | text_format_unittest.cc | 162 TextFormat::Printer printer; in TEST_F() 308 TextFormat::Printer printer; in TEST_F() 349 EXPECT_TRUE(TextFormat::PrintUnknownFieldsToString(unknown_fields, &text)); in TEST_F() 389 EXPECT_TRUE(TextFormat::PrintToString(message, &text)); in TEST_F() 402 TextFormat::Printer printer; in TEST_F() 424 TextFormat::Printer printer; in TEST_F() 444 EXPECT_FALSE(TextFormat::Print(message, &output_stream)); in TEST_F() 450 class CustomUInt32FieldValuePrinter : public TextFormat::FieldValuePrinter { 465 TextFormat::Printer printer; in TEST_F() 474 class CustomInt32FieldValuePrinter : public TextFormat::FieldValuePrinter { [all …]
|
D | text_format.h | 70 class PROTOBUF_EXPORT TextFormat { 503 friend class TextFormat; 627 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TextFormat); 630 inline void TextFormat::RecordLocation(ParseInfoTree* info_tree, in RecordLocation() 636 inline TextFormat::ParseInfoTree* TextFormat::CreateNested( in CreateNested()
|
D | proto3_arena_unittest.cc | 426 EXPECT_TRUE(TextFormat::PrintToString(msg, &text)); in TEST() 427 EXPECT_TRUE(TextFormat::ParseFromString(text, &msg2)); in TEST() 438 EXPECT_TRUE(TextFormat::PrintToString(msg, &text)); in TEST() 439 EXPECT_TRUE(TextFormat::ParseFromString(text, &msg2)); in TEST()
|
D | descriptor_unittest.cc | 2690 ASSERT_TRUE(TextFormat::ParseFromString( in SetUp() 2716 TextFormat::ParseFromString("name: 'bar.proto'" in SetUp() 2849 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P() 2873 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P() 2932 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P() 2960 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P() 3155 ASSERT_TRUE(TextFormat::ParseFromString( in TEST() 3222 ASSERT_TRUE(TextFormat::ParseFromString( in TEST() 3299 ASSERT_TRUE(TextFormat::ParseFromString( in TEST() 3379 ASSERT_TRUE(TextFormat::ParseFromString( in TEST() [all …]
|
D | descriptor_database_unittest.cc | 59 EXPECT_TRUE(TextFormat::ParseFromString(file_text, &file_proto)); in AddToDatabase() 164 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabase() 170 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabaseWithError()
|
D | map_test.cc | 2145 TextFormat::PrintToString(*message1, &output1); in TEST() 2146 TextFormat::PrintToString(*message2, &output2); in TEST() 2147 TextFormat::PrintToString(*message3, &output3); in TEST() 2220 TextFormat::PrintToString(message1, &output1); in TEST() 2221 TextFormat::PrintToString(message2, &output2); in TEST() 2471 EXPECT_TRUE(TextFormat::ParseFromString(text, &message)); in TEST() 3351 TextFormat::Printer printer; in TEST() 3353 TextFormat::Parser parser; in TEST() 3421 TextFormat::Printer printer; in TEST() 3457 TextFormat::Printer printer; in TEST() [all …]
|
/third_party/grpc/test/cpp/util/ |
D | config_grpc_cli.h | 40 #define GRPC_CUSTOM_TEXTFORMAT ::google::protobuf::TextFormat 59 typedef GRPC_CUSTOM_TEXTFORMAT TextFormat; typedef
|
D | proto_file_parser.cc | 265 ok = protobuf::TextFormat::ParseFromString(formatted_proto, msg.get()); in GetSerializedProtoFromMessageType() 308 if (!protobuf::TextFormat::PrintToString(*msg.get(), &formatted_string)) { in GetFormattedStringFromMessageType()
|
/third_party/protobuf/conformance/ |
D | ConformanceJava.java | 37 import com.google.protobuf.TextFormat; 297 TextFormat.merge(request.getTextPayload(), builder); in doTest() 299 } catch (TextFormat.ParseException e) { in doTest() 308 TextFormat.merge(request.getTextPayload(), builder); in doTest() 310 } catch (TextFormat.ParseException e) { in doTest() 349 TextFormat.printToString(testMessage)).build(); in doTest()
|
D | conformance_cpp.cc | 50 using google::protobuf::TextFormat; 146 if (!TextFormat::ParseFromString(request.text_payload(), test_message)) { in DoTest() 194 TextFormat::Printer printer; in DoTest()
|
D | text_format_conformance_suite.cc | 45 using google::protobuf::TextFormat; 61 TextFormat::Parser parser; in ParseTextFormatResponse()
|
D | conformance_test.cc | 50 using google::protobuf::TextFormat; 228 GOOGLE_CHECK(TextFormat::ParseFromString(equivalent_text_format, in RunValidInputTest()
|
D | conformance_objc.m | 107 response.skipped = @"ObjC doesn't support parsing TextFormat"; 140 response.skipped = @"ObjC doesn't support generating TextFormat";
|
/third_party/protobuf/ |
D | libprotobuf.map | 5 …"google::protobuf::TextFormat::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<c… 6 …"google::protobuf::TextFormat::PrintToString(google::protobuf::Message const&, std::__cxx11::basic… 35 "google::protobuf::TextFormat::Parser::Parser()"; 36 …"google::protobuf::TextFormat::Parser::Parse(google::protobuf::io::ZeroCopyInputStream*, google::p… 37 "google::protobuf::TextFormat::Parser::~Parser()"; 41 …"google::protobuf::TextFormat::Print(google::protobuf::Message const&, google::protobuf::io::ZeroC… 131 …"google::protobuf::TextFormat::ParseFromString(std::__h::basic_string<char, std::__h::char_traits<… 132 …"google::protobuf::TextFormat::PrintToString(google::protobuf::Message const&, std::__h::basic_str… 137 …"google::protobuf::TextFormat::ParseFromString(std::__1::basic_string<char, std::__1::char_traits<… 138 …"google::protobuf::TextFormat::PrintToString(google::protobuf::Message const&, std::__1::basic_str… [all …]
|
D | CHANGES.txt | 121 * TextFormat.merge() handles Any as top level type. 141 * Avoid printing excess digits for float fields in TextFormat. 297 * Update TextFormat to make use of the new TypeRegistry. 352 …* TextFormat::Parser should use a custom Finder to look up extensions by number if one is provided. 368 * Expose TextFormat.Printer and make it configurable. Deprecate the static methods. 372 * Fix a bug where TextFormat fails to parse Any filed with > 1 embedded message sub-fields. 420 * Fix TextFormat not round-trip correctly when float value is max float. 526 * Small fixes to TextFormat generation for extensions (#5362) 697 * TextFormat now prints unknown length-delimited fields as messages if 811 * Introduced new TextFormat API printUnicodeFieldValue() that prints field [all …]
|
/third_party/mindspore/mindspore/lite/tools/common/ |
D | protobuf_utils.cc | 59 bool status = google::protobuf::TextFormat::Parse(&input, message); in ReadProtoFromText()
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | mock_code_generator.cc | 172 GOOGLE_CHECK(TextFormat::ParseFromString(meta_content, &annotations)); in CheckGeneratedAnnotations() 296 if (!TextFormat::Print(annotations, meta_output.get())) { in Generate()
|
/third_party/protobuf/docs/ |
D | field_presence.md | 35 Protobufs can be represented in human-readable, textual forms. Two notable formats are TextFormat (… 37 …TextFormat more closely mimics the semantics of the wire format, and does, in certain cases, provi… 39 …cter format, however, and cannot validly represent some semantics of the wire format or TextFormat. 41 …dered, and each member must have a unique name. This is different from TextFormat rules for repeat… 46 …ted field values are not valid JSON, so they do not need to be resolved as they are for TextFormat.
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | AbstractMessage.java | 111 return TextFormat.printer().printToString(this); in toString() 471 return TextFormat.printer().printToString(this); in toString()
|
D | Descriptors.java | 1517 defaultValue = TextFormat.parseInt32(proto.getDefaultValue()); in crossLink() 1521 defaultValue = TextFormat.parseUInt32(proto.getDefaultValue()); in crossLink() 1526 defaultValue = TextFormat.parseInt64(proto.getDefaultValue()); in crossLink() 1530 defaultValue = TextFormat.parseUInt64(proto.getDefaultValue()); in crossLink() 1562 defaultValue = TextFormat.unescapeBytes(proto.getDefaultValue()); in crossLink() 1563 } catch (TextFormat.InvalidEscapeSequenceException e) { in crossLink()
|
/third_party/protobuf/src/google/protobuf/util/ |
D | message_differencer_unittest.cc | 1789 TextFormat::MergeFromString("rm { a: 11\n b: 12 }", &msg1); in TEST() 1790 TextFormat::MergeFromString("rm { a: 11\n b: 13 }", &msg2); in TEST() 1800 TextFormat::MergeFromString("rm { a: 11\n m { a: 12\n b: 13\n } }", &msg1); in TEST() 1801 TextFormat::MergeFromString("rm { a: 11\n m { a: 12\n b: 14\n } }", &msg2); in TEST() 3235 TextFormat::Parser parser; in TEST_F() 3251 TextFormat::Parser parser; in TEST_F() 3273 TextFormat::Parser parser; in TEST_F() 3286 TextFormat::Parser parser; in TEST_F() 3318 TextFormat::Parser parser; in TEST_F()
|