Skip to content

Commit 482515d

Browse files
fix: regenerate pb2 files using the latest version of grpcio-tools (#95)
* fix: regenerate pb2 files using the latest version of grpcio-tools * add basic test * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add constraints for py37 py38 py39 * remove constraint for grpcio * fix(deps): require protobuf >= 3.15.0 * revert change * revert change * add tests_local session Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ba9ede6 commit 482515d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1058
-14190
lines changed

packages/googleapis-common-protos/google/api/annotations_pb2.py

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# source: google/api/annotations.proto
1919
"""Generated protocol buffer code."""
2020
from google.protobuf import descriptor as _descriptor
21+
from google.protobuf import descriptor_pool as _descriptor_pool
2122
from google.protobuf import message as _message
2223
from google.protobuf import reflection as _reflection
2324
from google.protobuf import symbol_database as _symbol_database
@@ -31,46 +32,17 @@
3132
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
3233

3334

34-
DESCRIPTOR = _descriptor.FileDescriptor(
35-
name="google/api/annotations.proto",
36-
package="google.api",
37-
syntax="proto3",
38-
serialized_options=b"\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI",
39-
create_key=_descriptor._internal_create_key,
40-
serialized_pb=b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3',
41-
dependencies=[
42-
google_dot_api_dot_http__pb2.DESCRIPTOR,
43-
google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,
44-
],
35+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
36+
b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3'
4537
)
4638

4739

4840
HTTP_FIELD_NUMBER = 72295728
49-
http = _descriptor.FieldDescriptor(
50-
name="http",
51-
full_name="google.api.http",
52-
index=0,
53-
number=72295728,
54-
type=11,
55-
cpp_type=10,
56-
label=1,
57-
has_default_value=False,
58-
default_value=None,
59-
message_type=None,
60-
enum_type=None,
61-
containing_type=None,
62-
is_extension=True,
63-
extension_scope=None,
64-
serialized_options=None,
65-
file=DESCRIPTOR,
66-
create_key=_descriptor._internal_create_key,
67-
)
68-
69-
DESCRIPTOR.extensions_by_name["http"] = http
70-
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
41+
http = DESCRIPTOR.extensions_by_name["http"]
7142

72-
http.message_type = google_dot_api_dot_http__pb2._HTTPRULE
73-
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http)
43+
if _descriptor._USE_C_DESCRIPTORS == False:
44+
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(http)
7445

75-
DESCRIPTOR._options = None
46+
DESCRIPTOR._options = None
47+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
7648
# @@protoc_insertion_point(module_scope)

0 commit comments

Comments
 (0)