Home
last modified time | relevance | path

Searched refs:TextFormat (Results 1 – 25 of 155) sorted by relevance

1234567

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java38 import com.google.protobuf.TextFormat.Parser.SingularOverwritePolicy;
135 private final TextFormat.Parser parserAllowingUnknownFields =
136 TextFormat.Parser.newBuilder().setAllowUnknownFields(true).build();
138 private final TextFormat.Parser parserAllowingUnknownExtensions =
139 TextFormat.Parser.newBuilder().setAllowUnknownExtensions(true).build();
141 private final TextFormat.Parser parserWithOverwriteForbidden =
142 TextFormat.Parser.newBuilder()
146 private final TextFormat.Parser defaultParser = TextFormat.Parser.newBuilder().build();
150 String javaText = TextFormat.printer().printToString(TestUtil.getAllSet()); in testPrintMessage()
162 String javaText = TextFormat.printer().printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder()
[all …]
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTextFormatTest.java115 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 …]
/external/protobuf/src/google/protobuf/
Dtext_format.cc90 TextFormat::Printer printer; in DebugString()
101 TextFormat::Printer printer; in ShortDebugString()
117 TextFormat::Printer printer; in Utf8DebugString()
131 TextFormat::ParseInfoTree::ParseInfoTree() {} in ParseInfoTree()
133 TextFormat::ParseInfoTree::~ParseInfoTree() { in ~ParseInfoTree()
140 void TextFormat::ParseInfoTree::RecordLocation( in RecordLocation()
141 const FieldDescriptor* field, TextFormat::ParseLocation location) { in RecordLocation()
145 TextFormat::ParseInfoTree* TextFormat::ParseInfoTree::CreateNested( in CreateNested()
148 TextFormat::ParseInfoTree* instance = new TextFormat::ParseInfoTree(); in CreateNested()
149 std::vector<TextFormat::ParseInfoTree*>* trees = &nested_[field]; in CreateNested()
[all …]
Dtext_format_unittest.cc163 TextFormat::Printer printer; in TEST_F()
309 TextFormat::Printer printer; in TEST_F()
350 EXPECT_TRUE(TextFormat::PrintUnknownFieldsToString(unknown_fields, &text)); in TEST_F()
371 TextFormat::Printer printer; in TEST_F()
393 TextFormat::Printer printer; in TEST_F()
413 EXPECT_FALSE(TextFormat::Print(message, &output_stream)); in TEST_F()
419 class CustomUInt32FieldValuePrinter : public TextFormat::FieldValuePrinter {
434 TextFormat::Printer printer; in TEST_F()
443 class CustomInt32FieldValuePrinter : public TextFormat::FieldValuePrinter {
456 TextFormat::Printer printer; in TEST_F()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dkernel_def_builder_test.cc29 protobuf::TextFormat::ParseFromString("op: 'A' device_type: 'CPU'", in TEST()
41 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
55 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
67 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
82 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
100 protobuf::TextFormat::ParseFromString( in TEST()
123 protobuf::TextFormat::ParseFromString(R"proto( in TEST()
141 protobuf::TextFormat::ParseFromString( in TEST()
165 protobuf::TextFormat::ParseFromString( in TEST()
Dop_gen_lib_test.cc182 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
214 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
251 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
283 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
311 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
341 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
382 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
409 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
442 protobuf::TextFormat::ParseFromString(kTestOpList, &op_list); // NOLINT in TEST()
512 protobuf::TextFormat::ParseFromString(op_list1, &op_list); // NOLINT in TEST()
/external/tensorflow/tensorflow/core/kernels/
Dsummary_op_test.cc44 CHECK(protobuf::TextFormat::ParseFromString(expected_str, &expected)); in EXPECT_SummaryMatches()
186 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
191 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
194 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
220 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
225 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
228 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
254 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
259 ASSERT_TRUE(protobuf::TextFormat::ParseFromString( in TEST_F()
/external/opencensus-java/impl_core/src/jmh/java/io/opencensus/implcore/trace/propagation/
DTextFormatBenchmarkBase.java21 import io.opencensus.trace.propagation.TextFormat;
22 import io.opencensus.trace.propagation.TextFormat.Getter;
23 import io.opencensus.trace.propagation.TextFormat.Setter;
46 private final TextFormat textFormat;
48 TextFormatBenchmarkBase(TextFormat textFormat) { in TextFormatBenchmarkBase()
DB3FormatImplBenchmark.java25 import io.opencensus.trace.propagation.TextFormat;
26 import io.opencensus.trace.propagation.TextFormat.Getter;
27 import io.opencensus.trace.propagation.TextFormat.Setter;
/external/tensorflow/tensorflow/core/graph/
Dvalidate_test.cc45 auto parser = protobuf::TextFormat::Parser(); in TEST()
60 auto parser = protobuf::TextFormat::Parser(); in TEST()
83 auto parser = protobuf::TextFormat::Parser(); in TEST()
105 auto parser = protobuf::TextFormat::Parser(); in TEST()
117 auto parser = protobuf::TextFormat::Parser(); in TEST()
160 auto parser = protobuf::TextFormat::Parser(); in TEST()
175 auto parser = protobuf::TextFormat::Parser(); in TEST()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_stats_test.cc91 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
127 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
163 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
194 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
244 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
278 CHECK(protobuf::TextFormat::ParseFromString( in TEST_F()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/propagation/
DTextFormatTest.java22 import io.opencensus.trace.propagation.TextFormat.Getter;
23 import io.opencensus.trace.propagation.TextFormat.Setter;
32 private static final TextFormat textFormat = TextFormat.getNoopTextFormat();
/external/tensorflow/tensorflow/core/api_def/
Dupdate_api_def_test.cc71 protobuf::TextFormat::ParseFromString(op_text, &op); // NOLINT in TEST()
137 protobuf::TextFormat::ParseFromString(op1_text, &op1); // NOLINT in TEST()
138 protobuf::TextFormat::ParseFromString(op2_text, &op2); // NOLINT in TEST()
139 protobuf::TextFormat::ParseFromString(op3_text, &op3); // NOLINT in TEST()
174 protobuf::TextFormat::ParseFromString(op_text, &op); // NOLINT in TEST()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/propagation/
DPropagationComponent.java50 public abstract TextFormat getB3Format(); in getB3Format()
69 public TextFormat getB3Format() { in getB3Format()
70 return TextFormat.getNoopTextFormat(); in getB3Format()
DTextFormat.java83 public abstract class TextFormat { class
176 static TextFormat getNoopTextFormat() { in getNoopTextFormat()
180 private static final class NoopTextFormat extends TextFormat {
/external/tensorflow/tensorflow/python/framework/
Dpython_op_gen_test.cc122 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); in TEST()
184 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); in TEST()
243 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); in TEST()
304 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); in TEST()
363 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); in TEST()
420 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); in TEST()
469 protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs); in TEST()
/external/libprotobuf-mutator/src/
Dtext_format.cc22 using protobuf::TextFormat;
30 TextFormat::Parser parser; in ParseTextMessage()
53 if (!protobuf::TextFormat::PrintToString(message, &tmp)) return {}; in SaveMessageAsText()
/external/desugar/java/com/google/devtools/common/options/
DInvocationPolicyParser.java21 import com.google.protobuf.TextFormat;
50 TextFormat.merge(policy, builder); in parsePolicy()
53 } catch (InvalidProtocolBufferException | TextFormat.ParseException e) { in parsePolicy()
/external/dagger2/java/dagger/lint/
DDaggerKotlinIssueDetector.kt29 import com.android.tools.lint.detector.api.TextFormat in <lambda>()
185 .getBriefDescription(TextFormat.TEXT), in <lambda>()
210 ISSUE_JVM_STATIC_PROVIDES_IN_OBJECT.getBriefDescription(TextFormat.TEXT), in <lambda>()
230 ISSUE_MODULE_COMPANION_OBJECTS.getBriefDescription(TextFormat.TEXT), in <lambda>()
245 .getBriefDescription(TextFormat.TEXT) in <lambda>()
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DHttpPropagationUtil.java19 import io.opencensus.trace.propagation.TextFormat;
38 public static TextFormat getCloudTraceFormat() { in getCloudTraceFormat()
/external/protobuf/conformance/
DConformanceJava.java7 import com.google.protobuf.TextFormat;
256 TextFormat.merge(request.getTextPayload(), builder); in doTest()
258 } catch (TextFormat.ParseException e) { in doTest()
267 TextFormat.merge(request.getTextPayload(), builder); in doTest()
269 } catch (TextFormat.ParseException e) { in doTest()
308 TextFormat.printToString(testMessage)).build(); in doTest()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DPropagationComponentImpl.java21 import io.opencensus.trace.propagation.TextFormat;
34 public TextFormat getB3Format() { in getB3Format()
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/
DHttpPropagationUtilTest.java21 import io.opencensus.trace.propagation.TextFormat;
32 TextFormat cloudTraceFormat = HttpPropagationUtil.getCloudTraceFormat(); in cloudTraceFormatNotNull()
/external/tensorflow/tensorflow/compiler/xla/tools/
Dhlo_module_loader.cc90 if (!tensorflow::protobuf::TextFormat::ParseFromString(data, &proto) && in LoadModuleFromData()
91 !tensorflow::protobuf::TextFormat::ParseFromString( in LoadModuleFromData()
93 !tensorflow::protobuf::TextFormat::ParseFromString( in LoadModuleFromData()
/external/grpc-grpc/test/cpp/util/
Dconfig_grpc_cli.h40 #define GRPC_CUSTOM_TEXTFORMAT ::google::protobuf::TextFormat
59 typedef GRPC_CUSTOM_TEXTFORMAT TextFormat; typedef

1234567