Home
last modified time | relevance | path

Searched refs:SerializeAsString (Results 1 – 25 of 64) sorted by relevance

123

/third_party/protobuf/src/google/protobuf/
Dlite_unittest.cc73 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 …]
Ddrop_unknown_fields_test.cc51 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()
Dany_test.cc46 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()
Ddescriptor_database_unittest.cc497 std::string data1 = file1.SerializeAsString(); in TEST()
500 std::string data2 = file2b.SerializeAsString() + file2a.SerializeAsString(); in TEST()
Dpreserve_unknown_enum_test.cc111 std::string serialized = orig_message.SerializeAsString(); in TEST()
122 serialized = message->SerializeAsString(); in TEST()
Dextension_set_unittest.cc660 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()
Dproto3_arena_lite_unittest.cc116 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
/third_party/mindspore/tests/ut/cpp/ps/core/
Dtcp_message_handler_test.cc60 …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());
Dtcp_pb_server_test.cc84 …client_->SendMessage(message_meta, Protos::RAW, kv_message.SerializeAsString().data(), kv_message.… in TEST_F()
/third_party/mindspore/mindspore/ccsrc/fl/server/
Ddistributed_count_service.cc206 …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()
Diteration.cc375 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/
Derror_details_test.cc37 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/
Dleader_scaler.cc33 …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()
Dabstract_node.cc41 …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()
Dscheduler_node.cc72 …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/
Dgogo_data_scrubber.cc64 dataset.set_payload(i, message->SerializeAsString()); in main()
68 ofs << dataset.SerializeAsString(); in main()
Dproto3_data_stripper.cc64 dataset.set_payload(i, message->SerializeAsString()); in main()
68 ofs << dataset.SerializeAsString(); in main()
/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource_test.cc858 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/
Dgrpclb_api_test.cc87 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/
Dpython_generator.cc443 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/
Derror_details.h70 *to = grpc::Status(code, from.message(), from.SerializeAsString()); in SetErrorDetails()
/third_party/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc170 std::string input_data = input.SerializeAsString(); in Communicate()
371 std::string input_data = input.SerializeAsString(); in Communicate()
/third_party/mindspore/mindspore/ccsrc/ps/
Dworker.cc228 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/
Dtcp_client.cc289 …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()
Dtcp_communicator.h84 const std::string &msg_str = pb_msg.SerializeAsString();

123