Home
last modified time | relevance | path

Searched refs:proto2 (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py401 proto2 = unittest_pb2.TestAllTypes()
402 proto2.optional_nested_message.bb = 5
403 proto1.MergeFrom(proto2)
588 proto2 = unittest_pb2.TestRequiredForeign()
589 proto.CopyFrom(proto2)
625 proto2 = unittest_pb2.TestAllTypes()
626 proto2.ParseFromString(proto.SerializeToString())
627 self.assertIsInstance(getattr(proto2, field_name), expected_type)
1291 proto2 = unittest_pb2.TestAllTypes.FromString(string1)
1294 self.assertEqual(proto2, proto1)
[all …]
Dmessage_set_extensions.proto33 syntax = "proto2";
66 // //net/proto2/python/internal/testdata/message_set_message, but is commented
/external/perf_data_converter/src/quipper/
Dperf_stat_parser_test.cc76 PerfStatProto proto2; in TEST() local
77 ASSERT_TRUE(ParsePerfStatFileToProto(input.path(), &proto2)); in TEST()
79 ASSERT_EQ(proto2.line_size(), 2); in TEST()
81 const auto& line3 = proto2.line(0); in TEST()
86 const auto& line4 = proto2.line(1); in TEST()
Dtest_utils.h50 T proto1, proto2; in CompareTextProtoFiles() local
52 ASSERT_TRUE(TextFormat::Parse(&arr2, &proto2)); in CompareTextProtoFiles()
54 EXPECT_TRUE(EqualsProto(proto1, proto2)); in CompareTextProtoFiles()
/external/selinux/libsemanage/src/
Dports_local.c99 int proto2, low2, high2; in hidden_def() local
107 proto2 = semanage_port_get_proto(ports[j]); in hidden_def()
110 proto_str2 = semanage_port_get_proto_str(proto2); in hidden_def()
112 } while (proto != proto2); in hidden_def()
/external/tensorflow/tensorflow/core/framework/
Dfunction_test.cc1118 FunctionDefLibrary proto2; in TEST() local
1119 *proto2.add_function() = test::function::WXPlusB(); in TEST()
1120 *proto2.add_gradient() = MakeGradDef(wx_name, x2_name); in TEST()
1121 *proto2.add_function() = test::function::XTimesFour(); in TEST()
1122 proto2.mutable_function(1)->mutable_signature()->set_name(x2_name); in TEST()
1123 FunctionLibraryDefinition lib_def2(OpRegistry::Global(), proto2); in TEST()
1154 FunctionDefLibrary proto2; in TEST() local
1155 *proto2.add_function() = test::function::WXPlusB(); in TEST()
1156 *proto2.add_gradient() = MakeGradDef(wx_name, x2_name); in TEST()
1157 *proto2.add_function() = test::function::XTimesTwo(); in TEST()
[all …]
Dtensor_slice_test.cc267 TensorSliceProto proto2; in TEST() local
268 ASSERT_TRUE(proto2.ParseFromArray(pb2, sizeof(pb2) - 1)); in TEST()
269 TensorSlice ts2(proto2); in TEST()
/external/protobuf/src/google/protobuf/
Dunittest_no_arena_lite.proto31 syntax = "proto2";
35 // We don't put this in a package within proto2 because we need to make sure
36 // that the generated code doesn't depend on being in the proto2 namespace.
Dunittest_no_field_presence.proto35 // We want to test embedded proto2 messages, so include some proto2 types.
78 // N.B.: proto2-enum-type fields not allowed, because their default values
125 protobuf_unittest.TestRequired proto2 = 1; field
Dmap_proto2_unittest.proto31 syntax = "proto2";
36 // We don't put this in a package within proto2 because we need to make sure
37 // that the generated code doesn't depend on being in the proto2 namespace.
Dunittest_import.proto37 syntax = "proto2";
39 // We don't put this in a package within proto2 because we need to make sure
40 // that the generated code doesn't depend on being in the proto2 namespace.
Dunittest_proto3_arena.proto86 // Omitted (compared to unittest.proto) because proto2 enums are not allowed
87 // inside proto2 messages.
129 // Omitted (compared to unittest.proto) because proto2 enums are not allowed
130 // inside proto2 messages.
Dunittest_proto3_arena_lite.proto87 // Omitted (compared to unittest.proto) because proto2 enums are not allowed
88 // inside proto2 messages.
130 // Omitted (compared to unittest.proto) because proto2 enums are not allowed
131 // inside proto2 messages.
Dunittest_proto3_lite.proto86 // Omitted (compared to unittest.proto) because proto2 enums are not allowed
87 // inside proto2 messages.
129 // Omitted (compared to unittest.proto) because proto2 enums are not allowed
130 // inside proto2 messages.
Dunittest_no_arena.proto39 syntax = "proto2";
42 // See: http://go/proto2-generic-services-default
52 // We don't put this in a package within proto2 because we need to make sure
53 // that the generated code doesn't depend on being in the proto2 namespace.
/external/selinux/libsepol/src/
Dports.c186 int proto2 = c->u.port.protocol; in sepol_port_exists() local
190 if (proto == proto2 && low2 == low && high2 == high) { in sepol_port_exists()
224 int proto2 = c->u.port.protocol; in sepol_port_query() local
228 if (proto == proto2 && low2 == low && high2 == high) { in sepol_port_query()
/external/autotest/site_utils/
Dcloud_console.proto1 syntax = "proto2";
20 // Timestamp is not defined in proto2. We need to define it by ourselves.
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_test_bad_identifiers.proto38 syntax = "proto2";
41 // See: http://go/proto2-generic-services-default
44 // We don't put this in a package within proto2 because we need to make sure
45 // that the generated code doesn't depend on being in the proto2 namespace.
Dcpp_test_large_enum_value.proto31 // Test that proto2 compiler can generate valid code when the enum value
34 syntax = "proto2";
/external/protobuf/benchmarks/
Dbenchmark_messages_proto2.proto1 // Benchmark messages for proto2.
3 syntax = "proto2";
5 package benchmarks.proto2;
/external/perfetto/protos/perfetto/trace/
Dtrusted_packet.proto17 // Use proto3 syntax as an optimization. The difference is that proto2 stores
46 // uid == 0 and uid not set (the writer uses proto2).
/external/protobuf/docs/swift/
DDesignDoc.md6 proto2 and proto3 messages in Apple’s Swift programming language.
78 This section describes how the features of the protocol buffer syntaxes (proto2
152 ### Required fields (proto2 only)
154 Required fields in proto2 messages seem like they could be naturally represented
172 In proto2, fields can have a default value specified that may be a value other
196 to check this. These methods will be public in proto2. In proto3, these methods
314 depending on whether the message being generated is a proto2 or proto3 message.
316 ### proto2 enums
318 For proto2, we do not need to be concerned about unknown enum values, so we can
320 proto2:
[all …]
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dmultiple_files_test.proto35 syntax = "proto2";
38 // See: http://go/proto2-generic-services-default
/external/protobuf/python/google/protobuf/pyext/
DREADME1 This is the 'v2' C++ implementation for python proto2.
/external/perfetto/protos/perfetto/trace/ftrace/
Dipi_entry.proto5 syntax = "proto2";

12345678910>>...20