add google.protobuf.Value test
This commit is contained in:
Binary file not shown.
@@ -31,16 +31,6 @@ FString UTurboLinkTestGameInstance::DumpBytes(const FBytes& Bytes)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void UTurboLinkTestGameInstance::DumpMapMessage(const TMap<FInt64, FGrpcUserRegisterRequestAddress>& Message)
|
||||
{
|
||||
FString temp = "";
|
||||
for (const auto& item : Message)
|
||||
{
|
||||
temp += FString::Printf(TEXT("%s:[%s,%s],"), *UTurboLinkGrpcUtilities::CastInt64ToString(item.Key), *item.Value.Address, *item.Value.PostalCode);
|
||||
}
|
||||
UE_LOG(LogTemp, Warning, TEXT("ExtAddress={%s}"), *temp);
|
||||
}
|
||||
|
||||
void UTurboLinkTestGameInstance::DumpMessage(const FGrpcUserRegisterRequest& Message)
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -23,10 +23,6 @@ public:
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void DumpMessage(const FGrpcUserRegisterRequest& Message);
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void DumpMapMessage(const TMap<FInt64, FGrpcUserRegisterRequestAddress>& Message);
|
||||
|
||||
protected:
|
||||
FString DumpBytes(const FBytes& Bytes);
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ package User;
|
||||
option go_package = "tldemo/services/User";
|
||||
|
||||
import "common.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
|
||||
message RegisterRequest {
|
||||
string name = 1;
|
||||
@@ -24,6 +25,8 @@ message RegisterRequest {
|
||||
map<string, Address> ext_address = 14;
|
||||
map<string, int64> ext_int = 15;
|
||||
|
||||
google.protobuf.Value google_value = 16;
|
||||
|
||||
message Address {
|
||||
string address = 1;
|
||||
string postal_code = 2;
|
||||
|
||||
Reference in New Issue
Block a user