@@ -33,61 +33,68 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33
33
See the License for the specific language governing permissions and
34
34
limitations under the License.
35
35
"""
36
-
37
36
import builtins
38
37
import google .protobuf .descriptor
39
38
import google .protobuf .message
40
39
import pyspark .sql .connect .proto .expressions_pb2
41
40
import pyspark .sql .connect .proto .relations_pb2
42
- import typing
41
+ import sys
42
+
43
+ if sys .version_info >= (3 , 8 ):
44
+ import typing as typing_extensions
45
+ else :
46
+ import typing_extensions
43
47
44
48
DESCRIPTOR : google .protobuf .descriptor .FileDescriptor
45
49
46
- @typing .final
47
50
class ExamplePluginRelation (google .protobuf .message .Message ):
48
51
DESCRIPTOR : google .protobuf .descriptor .Descriptor
49
52
50
53
INPUT_FIELD_NUMBER : builtins .int
51
54
CUSTOM_FIELD_FIELD_NUMBER : builtins .int
52
- custom_field : builtins .str
53
55
@property
54
56
def input (self ) -> pyspark .sql .connect .proto .relations_pb2 .Relation : ...
57
+ custom_field : builtins .str
55
58
def __init__ (
56
59
self ,
57
60
* ,
58
61
input : pyspark .sql .connect .proto .relations_pb2 .Relation | None = ...,
59
62
custom_field : builtins .str = ...,
60
63
) -> None : ...
61
- def HasField (self , field_name : typing .Literal ["input" , b"input" ]) -> builtins .bool : ...
64
+ def HasField (
65
+ self , field_name : typing_extensions .Literal ["input" , b"input" ]
66
+ ) -> builtins .bool : ...
62
67
def ClearField (
63
- self , field_name : typing .Literal ["custom_field" , b"custom_field" , "input" , b"input" ]
68
+ self ,
69
+ field_name : typing_extensions .Literal ["custom_field" , b"custom_field" , "input" , b"input" ],
64
70
) -> None : ...
65
71
66
72
global___ExamplePluginRelation = ExamplePluginRelation
67
73
68
- @typing .final
69
74
class ExamplePluginExpression (google .protobuf .message .Message ):
70
75
DESCRIPTOR : google .protobuf .descriptor .Descriptor
71
76
72
77
CHILD_FIELD_NUMBER : builtins .int
73
78
CUSTOM_FIELD_FIELD_NUMBER : builtins .int
74
- custom_field : builtins .str
75
79
@property
76
80
def child (self ) -> pyspark .sql .connect .proto .expressions_pb2 .Expression : ...
81
+ custom_field : builtins .str
77
82
def __init__ (
78
83
self ,
79
84
* ,
80
85
child : pyspark .sql .connect .proto .expressions_pb2 .Expression | None = ...,
81
86
custom_field : builtins .str = ...,
82
87
) -> None : ...
83
- def HasField (self , field_name : typing .Literal ["child" , b"child" ]) -> builtins .bool : ...
88
+ def HasField (
89
+ self , field_name : typing_extensions .Literal ["child" , b"child" ]
90
+ ) -> builtins .bool : ...
84
91
def ClearField (
85
- self , field_name : typing .Literal ["child" , b"child" , "custom_field" , b"custom_field" ]
92
+ self ,
93
+ field_name : typing_extensions .Literal ["child" , b"child" , "custom_field" , b"custom_field" ],
86
94
) -> None : ...
87
95
88
96
global___ExamplePluginExpression = ExamplePluginExpression
89
97
90
- @typing .final
91
98
class ExamplePluginCommand (google .protobuf .message .Message ):
92
99
DESCRIPTOR : google .protobuf .descriptor .Descriptor
93
100
@@ -98,6 +105,8 @@ class ExamplePluginCommand(google.protobuf.message.Message):
98
105
* ,
99
106
custom_field : builtins .str = ...,
100
107
) -> None : ...
101
- def ClearField (self , field_name : typing .Literal ["custom_field" , b"custom_field" ]) -> None : ...
108
+ def ClearField (
109
+ self , field_name : typing_extensions .Literal ["custom_field" , b"custom_field" ]
110
+ ) -> None : ...
102
111
103
112
global___ExamplePluginCommand = ExamplePluginCommand
0 commit comments