Skip to content

Commit 4d86f07

Browse files
committed
[SP-2874] chore: update all remaining protobufs
1 parent b922a75 commit 4d86f07

20 files changed

+2310
-434
lines changed

src/protoc_gen_swagger/options/annotations_pb2.py

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import builtins
7+
import google.protobuf.descriptor
8+
import google.protobuf.descriptor_pb2
9+
import google.protobuf.internal.extension_dict
10+
import protoc_gen_swagger.options.openapiv2_pb2
11+
12+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
13+
14+
OPENAPIV2_SWAGGER_FIELD_NUMBER: builtins.int
15+
OPENAPIV2_OPERATION_FIELD_NUMBER: builtins.int
16+
OPENAPIV2_SCHEMA_FIELD_NUMBER: builtins.int
17+
OPENAPIV2_TAG_FIELD_NUMBER: builtins.int
18+
OPENAPIV2_FIELD_FIELD_NUMBER: builtins.int
19+
openapiv2_swagger: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, protoc_gen_swagger.options.openapiv2_pb2.Swagger]
20+
"""ID assigned by [email protected] for grpc-gateway project.
21+
22+
All IDs are the same, as assigned. It is okay that they are the same, as they extend
23+
different descriptor messages.
24+
"""
25+
openapiv2_operation: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MethodOptions, protoc_gen_swagger.options.openapiv2_pb2.Operation]
26+
"""ID assigned by [email protected] for grpc-gateway project.
27+
28+
All IDs are the same, as assigned. It is okay that they are the same, as they extend
29+
different descriptor messages.
30+
"""
31+
openapiv2_schema: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, protoc_gen_swagger.options.openapiv2_pb2.Schema]
32+
"""ID assigned by [email protected] for grpc-gateway project.
33+
34+
All IDs are the same, as assigned. It is okay that they are the same, as they extend
35+
different descriptor messages.
36+
"""
37+
openapiv2_tag: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.ServiceOptions, protoc_gen_swagger.options.openapiv2_pb2.Tag]
38+
"""ID assigned by [email protected] for grpc-gateway project.
39+
40+
All IDs are the same, as assigned. It is okay that they are the same, as they extend
41+
different descriptor messages.
42+
"""
43+
openapiv2_field: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, protoc_gen_swagger.options.openapiv2_pb2.JSONSchema]
44+
"""ID assigned by [email protected] for grpc-gateway project.
45+
46+
All IDs are the same, as assigned. It is okay that they are the same, as they extend
47+
different descriptor messages.
48+
"""
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4+
import warnings
45

6+
7+
GRPC_GENERATED_VERSION = '1.73.1'
8+
GRPC_VERSION = grpc.__version__
9+
_version_not_supported = False
10+
11+
try:
12+
from grpc._utilities import first_version_is_lower
13+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14+
except ImportError:
15+
_version_not_supported = True
16+
17+
if _version_not_supported:
18+
raise RuntimeError(
19+
f'The grpc package installed is at version {GRPC_VERSION},'
20+
+ f' but the generated code in protoc_gen_swagger/options/annotations_pb2_grpc.py depends on'
21+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24+
)

0 commit comments

Comments
 (0)