Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about protobuf-python

Read more about protobuf-python

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - protobuf-python

How to get header from grpc responce with python

I am trying to get header of the gRPC response with the following code, and it doesn't work: response = stub.GetAccounts(users_pb2.GetAccountsRequest(), metadata=metadata) header = response.header() ...
test-img

Драбышевский Никита

python

protocol-buffers

grpc-python

protobuf-python

python

protocol-buffers

grpc-python

protobuf-python

Votes: 0

Answers: 1

Latest Answer

I suspect (! don't know) that you can't access the underlying HTTP/2 (response) headers from the (Python) gRPC client. You can configure various environment variables that expose underlying details (s...
test-img

DazWilkin

How can I use protobuf to limit the values passed into it? (python)

I'm creating a python file to read in some json data. Then assigning that data to my protobuf messages. I want to pass in "start_hour": 8 and receive 8 and not EIGHT from my enum. Perhaps I'...
test-img

YourMomsDataEngineer

python

protocol-buffers

protoc

protobuf-python

Votes: 0

Answers: 1

Latest Answer

My guess (!) is that, if you look through the generated classes for HourOfTheDay, there will be a generated method that converts a given enum e.g. HourOfTheDay.EIGHT into its value (8). Update You piq...
test-img

DazWilkin

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved