Home
last modified time | relevance | path

Searched refs:TextFormat (Results 1 - 25 of 31) sorted by relevance

12

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DTextFormatTest.java42 import com.google.protobuf.TextFormat.Parser.SingularOverwritePolicy;
64 * Test case for {@link TextFormat}.
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
[all...]
H A DUnknownEnumValueTest.java42 import com.google.protobuf.TextFormat.ParseException;
237 String textData = TextFormat.printer().printToString(message); in testUnknownEnumValuesInTextFormat()
247 TextFormat.merge(textData, builder); in testUnknownEnumValuesInTextFormat()
H A DMapTest.java860 String textData = TextFormat.printer().printToString(message); in testTextFormat()
863 TextFormat.merge(textData, builder); in testTextFormat()
/third_party/protobuf/src/google/protobuf/
H A Dtext_format.cc87 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
[all...]
H A Dtext_format_unittest.cc162 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
[all...]
H A Dtext_format.h70 class PROTOBUF_EXPORT TextFormat { class
248 // Like TextFormat::Print
250 // Like TextFormat::PrintUnknownFields
253 // Like TextFormat::PrintToString
255 // Like TextFormat::PrintUnknownFieldsToString
258 // Like TextFormat::PrintFieldValueToString
341 // property of TextFormat::Printer. That is, from the printed message, we
450 // google::protobuf::TextFormat::Print().
503 friend class TextFormat;
531 // Like TextFormat
[all...]
H A Dproto3_arena_unittest.cc252 // We test this more deeply elsewhere by parsing/serializing TextFormat (which in TEST()
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()
H A Ddescriptor_database_unittest.cc59 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()
H A Ddescriptor_unittest.cc2690 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 in TEST()
[all...]
H A Dmap_test.cc2145 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 in TEST()
[all...]
H A Dmessage.h924 friend class TextFormat;
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
H A DTextFormatTest.java49 * Test case for {@link TextFormat}.
115 String javaText = TextFormat.printToString(TestUtil.getAllSet()); in testPrintMessage()
119 // C++ and Java TextFormat classes, so we need to conform. in testPrintMessage()
127 String javaText = TextFormat.printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder()
131 // C++ and Java TextFormat classes, so we need to conform. in testPrintMessageBuilder()
139 String javaText = TextFormat.printToString(TestUtil.getAllExtensionsSet()); in testPrintExtensions()
143 // C++ and Java TextFormat classes, so we need to conform. in testPrintExtensions()
203 TextFormat.printToString(message)); in testPrintUnknownFields()
211 TextFormat.printFieldToString(dataField, "test data")); in testPrintField()
219 TextFormat in testPrintField()
[all...]
/third_party/protobuf/conformance/
H A DConformanceJava.java37 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()
H A Dconformance_cpp.cc50 using google::protobuf::TextFormat;
146 if (!TextFormat::ParseFromString(request.text_payload(), test_message)) { in DoTest()
194 TextFormat::Printer printer; in DoTest()
H A Dtext_format_conformance_suite.cc45 using google::protobuf::TextFormat;
61 TextFormat::Parser parser; in ParseTextFormatResponse()
H A Dconformance_test.cc50 using google::protobuf::TextFormat;
228 GOOGLE_CHECK(TextFormat::ParseFromString(equivalent_text_format, in RunValidInputTest()
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/finitestatematcher/compiler/
H A DCompilerRegressionTest.java41 import com.google.protobuf.TextFormat;
65 TextFormat.merge(new InputStreamReader(data, StandardCharsets.UTF_8), tests); in testCompiledBytesEqualExpectedMatcherBytes()
104 TextFormat.merge(new InputStreamReader(data, StandardCharsets.UTF_8), tests); in testExpectedMatcherBytesMatchRanges()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DAbstractMessage.java111 return TextFormat.printer().printToString(this); in toString()
471 return TextFormat.printer().printToString(this); in toString()
H A DDescriptors.java1517 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()
H A DTextFormat.java57 public final class TextFormat { class
58 private TextFormat() {} in TextFormat() method in TextFormat
60 private static final Logger logger = Logger.getLogger(TextFormat.class.getName());
111 * {@link TextFormat.Printer#shortDebugString(MessageOrBuilder)}.
1519 * <p>Use {@link TextFormat#getParser()} to obtain the default parser, or {@link Builder} to
1582 * Sets the TypeRegistry for resolving Any. If this is not set, TextFormat will not be able to
2398 * Thrown by {@link TextFormat#unescapeBytes} and {@link TextFormat#unescapeText} when an invalid
H A DUnknownFieldSet.java137 * around {@link TextFormat.Printer#printToString(UnknownFieldSet)}.
141 return TextFormat.printer().printToString(this); in toString()
/third_party/protobuf/src/google/protobuf/compiler/
H A Dmock_code_generator.cc172 GOOGLE_CHECK(TextFormat::ParseFromString(meta_content, &annotations)); in CheckGeneratedAnnotations()
296 if (!TextFormat::Print(annotations, meta_output.get())) { in Generate()
H A Dcommand_line_interface.cc626 if (!TextFormat::ParseFromString(encoded_data, &metadata)) { in UpdateMetadata()
646 TextFormat::PrintToString(metadata, &encoded_data); in UpdateMetadata()
2286 TextFormat::Parser parser; in EncodeOrDecode()
2315 if (!TextFormat::Print(*message, &out)) { in EncodeOrDecode()
/third_party/protobuf/src/google/protobuf/util/
H A Dmessage_differencer_unittest.cc1789 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()
/third_party/protobuf/python/google/protobuf/pyext/
H A Dmessage.cc1790 class PythonFieldValuePrinter : public TextFormat::FastFieldValuePrinter {
1803 TextFormat::BaseTextGenerator* generator) const override {
1807 TextFormat::BaseTextGenerator* generator) const override {
1831 TextFormat::Printer printer; in ToStr()

Completed in 66 milliseconds

12