diff options
author | Xuan Wang <xuanwn@google.com> | 2023-02-03 14:11:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 14:11:27 -0800 |
commit | a190831789b514e9f740a78b0dcd03fe79bfdd50 (patch) | |
tree | e02423b2072ead564e7ba88d3ee51de3d88d8a10 /examples/python/health_checking/helloworld_pb2.py | |
parent | 1f960697c5020db85743a68b3533b8ef45a9629e (diff) | |
download | grpc-grpc-a190831789b514e9f740a78b0dcd03fe79bfdd50.tar.gz |
Add examples for timeout, kepp_alive, reflection and health_checking (#32243)
* Add timeout example
* Add pb2 file to example
* Remove .proto file
* Add keep_alive example
* Add refelction client
* fixes
* Add example for health_check
* Changes based on comments
* Fix pylint
Diffstat (limited to 'examples/python/health_checking/helloworld_pb2.py')
-rw-r--r-- | examples/python/health_checking/helloworld_pb2.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/python/health_checking/helloworld_pb2.py b/examples/python/health_checking/helloworld_pb2.py new file mode 100644 index 0000000000..f5b4f2d27d --- /dev/null +++ b/examples/python/health_checking/helloworld_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: helloworld.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10helloworld.proto\x12\nhelloworld\"\x1c\n\x0cHelloRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1d\n\nHelloReply\x12\x0f\n\x07message\x18\x01 \x01(\t2I\n\x07Greeter\x12>\n\x08SayHello\x12\x18.helloworld.HelloRequest\x1a\x16.helloworld.HelloReply\"\x00\x42\x36\n\x1bio.grpc.examples.helloworldB\x0fHelloWorldProtoP\x01\xa2\x02\x03HLWb\x06proto3') + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'helloworld_pb2', globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\033io.grpc.examples.helloworldB\017HelloWorldProtoP\001\242\002\003HLW' + _HELLOREQUEST._serialized_start=32 + _HELLOREQUEST._serialized_end=60 + _HELLOREPLY._serialized_start=62 + _HELLOREPLY._serialized_end=91 + _GREETER._serialized_start=93 + _GREETER._serialized_end=166 +# @@protoc_insertion_point(module_scope) |