/third_party/protobuf/src/google/protobuf/ |
D | lite_unittest.cc | 73 std::string data = message.SerializeAsString(); in SetAllTypesInEmptyMessageUnknownFields() 85 std::string data = message.SerializeAsString(); in SetSomeTypesInEmptyMessageUnknownFields() 97 data = message.SerializeAsString(); in TEST() 116 std::string extensions_data = message.SerializeAsString(); in TEST() 136 packed_data = message.SerializeAsString(); in TEST() 152 std::string packed_extensions_data = message.SerializeAsString(); in TEST() 231 data = message.SerializeAsString(); in TEST() 234 data = empty_message.SerializeAsString(); in TEST() 236 data = message2.SerializeAsString(); in TEST() 251 data = message.SerializeAsString(); in TEST() [all …]
|
D | drop_unknown_fields_test.cc | 51 ASSERT_TRUE(foo.ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST() 57 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo.SerializeAsString())); in TEST() 72 ASSERT_TRUE(foo->ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST() 75 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo->SerializeAsString())); in TEST()
|
D | any_test.cc | 46 std::string data = message.SerializeAsString(); in TEST() 75 std::string data = message.SerializeAsString(); in TEST() 111 ASSERT_TRUE(any.ParseFromString(any.SerializeAsString())); in TEST() 117 ASSERT_TRUE(message.ParseFromString(message.SerializeAsString())); in TEST()
|
D | descriptor_database_unittest.cc | 497 std::string data1 = file1.SerializeAsString(); in TEST() 500 std::string data2 = file2b.SerializeAsString() + file2a.SerializeAsString(); in TEST()
|
D | preserve_unknown_enum_test.cc | 111 std::string serialized = orig_message.SerializeAsString(); in TEST() 122 serialized = message->SerializeAsString(); in TEST()
|
D | extension_set_unittest.cc | 660 EXPECT_EQ(unpacked.SerializeAsString().size(), in TEST() 661 destination.SerializeAsString().size()); in TEST() 662 EXPECT_TRUE(EqualsToSerialized(unpacked, destination.SerializeAsString())); in TEST() 684 EXPECT_EQ(packed.SerializeAsString().size(), in TEST() 685 destination.SerializeAsString().size()); in TEST() 686 EXPECT_TRUE(EqualsToSerialized(packed, destination.SerializeAsString())); in TEST() 1278 EqualsToSerialized(dynamic_extension, message.SerializeAsString())); in TEST()
|
D | proto3_arena_lite_unittest.cc | 116 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
|
/third_party/mindspore/tests/ut/cpp/ps/core/ |
D | tcp_message_handler_test.cc | 60 …memcpy_s(result + kHeaderLen, meta.ByteSizeLong(), meta.SerializeAsString().data(), meta.ByteSizeL… 90 …memcpy_s(result + kHeaderLen, meta.ByteSizeLong(), meta.SerializeAsString().data(), meta.ByteSizeL… 95 meta.SerializeAsString().data(), meta.ByteSizeLong()); 126 …memcpy_s(result + kHeaderLen, meta.ByteSizeLong(), meta.SerializeAsString().data(), meta.ByteSizeL… 134 memcpy_s(result + 8, meta.ByteSizeLong(), meta.SerializeAsString().data(), meta.ByteSizeLong()); 164 …memcpy_s(result + kHeaderLen, meta.ByteSizeLong(), meta.SerializeAsString().data(), meta.ByteSizeL… 170 memcpy_s(result, meta.ByteSizeLong(), meta.SerializeAsString().data(), meta.ByteSizeLong());
|
D | tcp_pb_server_test.cc | 84 …client_->SendMessage(message_meta, Protos::RAW, kv_message.SerializeAsString().data(), kv_message.… in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/fl/server/ |
D | distributed_count_service.cc | 206 …if (!communicator_->SendResponse(count_rsp.SerializeAsString().data(), count_rsp.SerializeAsString… in HandleCountRequest() 221 …if (!communicator_->SendResponse(count_rsp.SerializeAsString().data(), count_rsp.SerializeAsString… in HandleCountRequest() 240 …if (!communicator_->SendResponse(count_rsp.SerializeAsString().data(), count_rsp.SerializeAsString… in HandleCountRequest() 263 if (!communicator_->SendResponse(count_reach_threshold_rsp.SerializeAsString().data(), in HandleCountReachThresholdRequest() 264 count_reach_threshold_rsp.SerializeAsString().size(), message)) { in HandleCountReachThresholdRequest()
|
D | iteration.cc | 375 std::string sync_iter_rsp_msg = sync_iter_rsp.SerializeAsString(); in HandleSyncIterationRequest() 413 if (!communicator_->SendResponse(notify_leader_to_next_iter_rsp.SerializeAsString().data(), in HandleNotifyLeaderMoveToNextIterRequest() 414 … notify_leader_to_next_iter_rsp.SerializeAsString().size(), message)) { in HandleNotifyLeaderMoveToNextIterRequest() 489 if (!communicator_->SendResponse(prepare_next_iter_rsp.SerializeAsString().data(), in HandlePrepareForNextIterRequest() 490 prepare_next_iter_rsp.SerializeAsString().size(), message)) { in HandlePrepareForNextIterRequest() 540 if (!communicator_->SendResponse(proceed_to_next_iter_rsp.SerializeAsString().data(), in HandleMoveToNextIterRequest() 541 proceed_to_next_iter_rsp.SerializeAsString().size(), message)) { in HandleMoveToNextIterRequest() 598 if (!communicator_->SendResponse(end_last_iter_rsp.SerializeAsString().data(), in HandleEndLastIterRequest() 599 end_last_iter_rsp.SerializeAsString().size(), message)) { in HandleEndLastIterRequest() 610 if (!communicator_->SendResponse(end_last_iter_rsp.SerializeAsString().data(), in HandleEndLastIterRequest() [all …]
|
/third_party/grpc/test/cpp/util/ |
D | error_details_test.cc | 37 std::string error_details = expected.SerializeAsString(); in TEST() 75 EXPECT_EQ(expected.SerializeAsString(), to.error_details()); in TEST() 96 EXPECT_EQ(expected.SerializeAsString(), to.error_details()); in TEST() 113 EXPECT_EQ(expected.SerializeAsString(), to.error_details()); in TEST()
|
/third_party/mindspore/mindspore/ccsrc/ps/core/ |
D | leader_scaler.cc | 33 …ndMessageSync(client, message_meta, Protos::PROTOBUF, scale_out_message.SerializeAsString().data(), in ScaleOutAsync() 54 …endMessageSync(client, message_meta, Protos::PROTOBUF, scale_in_message.SerializeAsString().data(), in ScaleInAsync()
|
D | abstract_node.cc | 41 …if (!SendMessageSync(client, message_meta, Protos::PROTOBUF, register_message.SerializeAsString().… in Register() 119 … scale_out_done_message.SerializeAsString().data(), scale_out_done_message.ByteSizeLong())) { in set_scale_out_done() 139 … scale_in_done_message.SerializeAsString().data(), scale_in_done_message.ByteSizeLong())) { in set_scale_in_done() 158 …ync(client_to_scheduler_, message_meta, Protos::PROTOBUF, event_message.SerializeAsString().data(), in BroadcastEvent() 543 if (!SendMessageSync(client, meta, Protos::PROTOBUF, heartbeat_message.SerializeAsString().data(), in Heartbeat() 615 if (!SendMessageSync(client, meta, Protos::PROTOBUF, fetch_servers.SerializeAsString().data(), in FetchServers()
|
D | scheduler_node.cc | 72 …if (!server->SendMessage(conn, meta, Protos::PROTOBUF, heartbeat_resp_message.SerializeAsString().… in ProcessHeartbeat() 171 …if (!server->SendMessage(conn, meta, Protos::PROTOBUF, register_resp_message.SerializeAsString().d… in ProcessRegister() 254 …if (!server->SendMessage(conn, meta, Protos::PROTOBUF, fetch_servers_message.SerializeAsString().d… in ProcessFetchMetadata() 355 …sageAsync(client, message_meta, Protos::PROTOBUF, send_metadata_message.SerializeAsString().data(), in SendMetadata() 428 …if (!SendMessageSync(client, message_meta, Protos::PROTOBUF, event_resp_message.SerializeAsString(… in SendEvent()
|
/third_party/protobuf/benchmarks/util/ |
D | gogo_data_scrubber.cc | 64 dataset.set_payload(i, message->SerializeAsString()); in main() 68 ofs << dataset.SerializeAsString(); in main()
|
D | proto3_data_stripper.cc | 64 dataset.set_payload(i, message->SerializeAsString()); in main() 68 ofs << dataset.SerializeAsString(); in main()
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
D | protostream_objectsource_test.cc | 858 nested_any.set_value(m.SerializeAsString()); in TEST_P() 860 any->set_value(nested_any.SerializeAsString()); in TEST_P() 890 second_nested_any.set_value(m.SerializeAsString()); in TEST_P() 891 nested_any.set_value(second_nested_any.SerializeAsString()); in TEST_P() 892 any->set_value(nested_any.SerializeAsString()); in TEST_P() 939 any->set_value(m.SerializeAsString()); in TEST_P() 955 any->set_value(m.SerializeAsString()); in TEST_P() 971 any->set_value(m.SerializeAsString()); in TEST_P()
|
/third_party/grpc/test/cpp/grpclb/ |
D | grpclb_api_test.cc | 87 const std::string encoded_response = response.SerializeAsString(); in TEST_F() 115 const std::string encoded_response = response.SerializeAsString(); in TEST_F()
|
/third_party/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 443 m["options"] = OptionsValue(file_->options().SerializeAsString()); in PrintFileDescriptor() 800 OptionsValue(desc->options().SerializeAsString()); in PrintDescriptor() 1341 std::string file_options = OptionsValue(file_->options().SerializeAsString()); in FixAllDescriptorOptions() 1363 std::string oneof_options = OptionsValue(oneof.options().SerializeAsString()); in FixOptionsForOneof() 1377 OptionsValue(enum_descriptor.options().SerializeAsString()); in FixOptionsForEnum() 1384 OptionsValue(value_descriptor.options().SerializeAsString()); in FixOptionsForEnum() 1397 std::string field_options = OptionsValue(field.options().SerializeAsString()); in FixOptionsForField() 1443 OptionsValue(descriptor.options().SerializeAsString()); in FixOptionsForMessage()
|
/third_party/grpc/include/grpcpp/support/ |
D | error_details.h | 70 *to = grpc::Status(code, from.message(), from.SerializeAsString()); in SetErrorDetails()
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | subprocess.cc | 170 std::string input_data = input.SerializeAsString(); in Communicate() 371 std::string input_data = input.SerializeAsString(); in Communicate()
|
/third_party/mindspore/mindspore/ccsrc/ps/ |
D | worker.cc | 228 std::string kv_data = embedding_table_meta.SerializeAsString(); in InitPSEmbeddingTable() 295 std::string kv_data = messages.at(i).second.SerializeAsString(); in DoPSEmbeddingLookup() 381 std::string kv_data = messages.at(i).second.SerializeAsString(); in UpdateEmbeddingTable() 403 std::string kv_data = kvs.SerializeAsString(); in Finalize() 644 std::string kv_data = kvs.SerializeAsString(); in PushData() 949 std::string kv_data = messages.at(i).second.SerializeAsString(); in SendForPush() 976 std::string kv_data = messages.at(i).second.SerializeAsString(); in SendForPull()
|
/third_party/mindspore/mindspore/ccsrc/ps/core/communicator/ |
D | tcp_client.cc | 289 …if (bufferevent_write(buffer_event_, message.pb_meta().SerializeAsString().data(), meta_size) == -… in SendMessage() 318 …if (bufferevent_write(buffer_event_, meta->SerializeAsString().data(), meta->ByteSizeLong()) == -1… in SendMessage()
|
D | tcp_communicator.h | 84 const std::string &msg_str = pb_msg.SerializeAsString();
|