Hello Mates,
I am working API development, we are using GRPC.
Which protobuf has CultureInfo? I need define in message in proto file?
message GetExpDatRequest
{
string Id
cultureInfo cultureInfo_ = 1
}
Hello Mates,
I am working API development, we are using GRPC.
Which protobuf has CultureInfo? I need define in message in proto file?
message GetExpDatRequest
{
string Id
cultureInfo cultureInfo_ = 1
}
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jayraj ChhayaRank #304 · 8.2K reputationPosted Feb 1, 2024, 4:39 AM EST
In GRPC Protobufs, there is no built-in protobuf message type for CultureInfo. However, you can still include CultureInfo information in your GRPC Protobuf messages by using a string field to represent the culture identifier.
To define CultureInfo in your proto file, you can modify your
GetExpDatRequestmessage as follows:message GetExpDatRequest { string Id = 1; string cultureInfo = 2; }Rajanikant HawaldarRank #110 · 20.2K reputationPosted Feb 1, 2024, 5:35 AM EST
Hi Jayraj,
Currently I am using string only
Tuhin PaulRank #7 · 71.9K reputationPosted Feb 1, 2024, 12:55 PM EST
enum CultureCode { CULTURE_UNSPECIFIED = 0; EN_US = 1; FR_FR = 2; // ... other supported cultures } message GetExpDatRequest { string Id = 1; CultureCode culture_code = 2; }