Skip to content

Commit 6714f74

Browse files
committed
Update CodeGeneratorResponse
Add Feature enum and supported_features. These are related to the optional proto3 fields introduced in 3.12.0, see https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.0 and https://github.com/protocolbuffers/protobuf/blob/214c77e1b76e63e512bd675d1c300c80438642b6/src/google/protobuf/compiler/plugin.proto#L112
1 parent 10d3c6c commit 6714f74

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

third_party/2and3/google/protobuf/compiler/plugin_pb2.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ from typing import Iterable, Optional, Text
22

33
from google.protobuf.descriptor_pb2 import FileDescriptorProto
44
from google.protobuf.internal.containers import RepeatedCompositeFieldContainer, RepeatedScalarFieldContainer
5+
from google.protobuf.internal.enum_type_wrapper import EnumTypeWrapper
56
from google.protobuf.message import Message
67

78
class Version(Message):
@@ -36,6 +37,13 @@ class CodeGeneratorResponse(Message):
3637
def __init__(
3738
self, name: Optional[Text] = ..., insertion_point: Optional[Text] = ..., content: Optional[Text] = ...
3839
) -> None: ...
40+
class _Feature(EnumTypeWrapper):
41+
FEATURE_NONE: int
42+
FEATURE_PROTO_3_OPTIONAL: int
43+
Feature: CodeGeneratorResponse._Feature
44+
FEATURE_NONE: int
45+
FEATURE_PROTO_3_OPTIONAL: int
46+
supported_features: int
3947
error: Text
4048
@property
4149
def file(self) -> RepeatedCompositeFieldContainer[CodeGeneratorResponse.File]: ...

0 commit comments

Comments
 (0)