File tree Expand file tree Collapse file tree 1 file changed +30
-18
lines changed
Filter options
packages/google-cloud-dlp/google/cloud/dlp_v2 Expand file tree Collapse file tree 1 file changed +30
-18
lines changed
Original file line number Diff line number Diff line change 15
15
from __future__ import absolute_import
16
16
import sys
17
17
18
- from google .api_core .protobuf_helpers import get_messages
19
-
20
18
from google .api import http_pb2
21
- from google .cloud .dlp_v2 .proto import dlp_pb2
22
- from google .cloud .dlp_v2 .proto import storage_pb2
23
19
from google .protobuf import any_pb2
24
20
from google .protobuf import descriptor_pb2
25
21
from google .protobuf import duration_pb2
30
26
from google .type import date_pb2
31
27
from google .type import timeofday_pb2
32
28
29
+ from google .api_core .protobuf_helpers import get_messages
30
+ from google .cloud .dlp_v2 .proto import dlp_pb2
31
+ from google .cloud .dlp_v2 .proto import storage_pb2
32
+
33
+
34
+ _shared_modules = [
35
+ http_pb2 ,
36
+ any_pb2 ,
37
+ descriptor_pb2 ,
38
+ duration_pb2 ,
39
+ empty_pb2 ,
40
+ field_mask_pb2 ,
41
+ timestamp_pb2 ,
42
+ status_pb2 ,
43
+ date_pb2 ,
44
+ timeofday_pb2 ,
45
+ ]
46
+
47
+ _local_modules = [
48
+ dlp_pb2 ,
49
+ storage_pb2 ,
50
+ ]
51
+
33
52
names = []
34
- for module in (
35
- http_pb2 ,
36
- dlp_pb2 ,
37
- storage_pb2 ,
38
- any_pb2 ,
39
- descriptor_pb2 ,
40
- duration_pb2 ,
41
- empty_pb2 ,
42
- field_mask_pb2 ,
43
- timestamp_pb2 ,
44
- status_pb2 ,
45
- date_pb2 ,
46
- timeofday_pb2 ,
47
- ):
53
+
54
+ for module in _shared_modules :
55
+ for name , message in get_messages (module ).items ():
56
+ setattr (sys .modules [__name__ ], name , message )
57
+ names .append (name )
58
+
59
+ for module in _local_modules :
48
60
for name , message in get_messages (module ).items ():
49
61
message .__module__ = 'google.cloud.dlp_v2.types'
50
62
setattr (sys .modules [__name__ ], name , message )
You can’t perform that action at this time.
0 commit comments