|
19 | 19 | """Generated protocol buffer code.""" |
20 | 20 | from google.protobuf import descriptor as _descriptor |
21 | 21 | from google.protobuf import descriptor_pool as _descriptor_pool |
22 | | -from google.protobuf import message as _message |
23 | | -from google.protobuf import reflection as _reflection |
24 | 22 | from google.protobuf import symbol_database as _symbol_database |
| 23 | +from google.protobuf.internal import builder as _builder |
25 | 24 |
|
26 | 25 | # @@protoc_insertion_point(imports) |
27 | 26 |
|
|
30 | 29 |
|
31 | 30 | from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 |
32 | 31 |
|
33 | | - |
34 | 32 | DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( |
35 | 33 | b'\n)google/cloud/orgpolicy/v1/orgpolicy.proto\x12\x19google.cloud.orgpolicy.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x8b\x05\n\x06Policy\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x12\n\nconstraint\x18\x02 \x01(\t\x12\x0c\n\x04\x65tag\x18\x03 \x01(\x0c\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x0blist_policy\x18\x05 \x01(\x0b\x32,.google.cloud.orgpolicy.v1.Policy.ListPolicyH\x00\x12I\n\x0e\x62oolean_policy\x18\x06 \x01(\x0b\x32/.google.cloud.orgpolicy.v1.Policy.BooleanPolicyH\x00\x12K\n\x0frestore_default\x18\x07 \x01(\x0b\x32\x30.google.cloud.orgpolicy.v1.Policy.RestoreDefaultH\x00\x1a\xfb\x01\n\nListPolicy\x12\x16\n\x0e\x61llowed_values\x18\x01 \x03(\t\x12\x15\n\rdenied_values\x18\x02 \x03(\t\x12J\n\nall_values\x18\x03 \x01(\x0e\x32\x36.google.cloud.orgpolicy.v1.Policy.ListPolicy.AllValues\x12\x17\n\x0fsuggested_value\x18\x04 \x01(\t\x12\x1b\n\x13inherit_from_parent\x18\x05 \x01(\x08"<\n\tAllValues\x12\x1a\n\x16\x41LL_VALUES_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02\x1a!\n\rBooleanPolicy\x12\x10\n\x08\x65nforced\x18\x01 \x01(\x08\x1a\x10\n\x0eRestoreDefaultB\r\n\x0bpolicy_typeB\xc5\x01\n\x1d\x63om.google.cloud.orgpolicy.v1B\x0eOrgPolicyProtoP\x01Z;cloud.google.com/go/orgpolicy/apiv1/orgpolicypb;orgpolicypb\xaa\x02\x19Google.Cloud.OrgPolicy.V1\xca\x02\x19Google\\Cloud\\OrgPolicy\\V1\xea\x02\x1cGoogle::Cloud::OrgPolicy::V1b\x06proto3' |
36 | 34 | ) |
37 | 35 |
|
38 | | - |
39 | | -_POLICY = DESCRIPTOR.message_types_by_name["Policy"] |
40 | | -_POLICY_LISTPOLICY = _POLICY.nested_types_by_name["ListPolicy"] |
41 | | -_POLICY_BOOLEANPOLICY = _POLICY.nested_types_by_name["BooleanPolicy"] |
42 | | -_POLICY_RESTOREDEFAULT = _POLICY.nested_types_by_name["RestoreDefault"] |
43 | | -_POLICY_LISTPOLICY_ALLVALUES = _POLICY_LISTPOLICY.enum_types_by_name["AllValues"] |
44 | | -Policy = _reflection.GeneratedProtocolMessageType( |
45 | | - "Policy", |
46 | | - (_message.Message,), |
47 | | - { |
48 | | - "ListPolicy": _reflection.GeneratedProtocolMessageType( |
49 | | - "ListPolicy", |
50 | | - (_message.Message,), |
51 | | - { |
52 | | - "DESCRIPTOR": _POLICY_LISTPOLICY, |
53 | | - "__module__": "google.cloud.orgpolicy.v1.orgpolicy_pb2" |
54 | | - # @@protoc_insertion_point(class_scope:google.cloud.orgpolicy.v1.Policy.ListPolicy) |
55 | | - }, |
56 | | - ), |
57 | | - "BooleanPolicy": _reflection.GeneratedProtocolMessageType( |
58 | | - "BooleanPolicy", |
59 | | - (_message.Message,), |
60 | | - { |
61 | | - "DESCRIPTOR": _POLICY_BOOLEANPOLICY, |
62 | | - "__module__": "google.cloud.orgpolicy.v1.orgpolicy_pb2" |
63 | | - # @@protoc_insertion_point(class_scope:google.cloud.orgpolicy.v1.Policy.BooleanPolicy) |
64 | | - }, |
65 | | - ), |
66 | | - "RestoreDefault": _reflection.GeneratedProtocolMessageType( |
67 | | - "RestoreDefault", |
68 | | - (_message.Message,), |
69 | | - { |
70 | | - "DESCRIPTOR": _POLICY_RESTOREDEFAULT, |
71 | | - "__module__": "google.cloud.orgpolicy.v1.orgpolicy_pb2" |
72 | | - # @@protoc_insertion_point(class_scope:google.cloud.orgpolicy.v1.Policy.RestoreDefault) |
73 | | - }, |
74 | | - ), |
75 | | - "DESCRIPTOR": _POLICY, |
76 | | - "__module__": "google.cloud.orgpolicy.v1.orgpolicy_pb2" |
77 | | - # @@protoc_insertion_point(class_scope:google.cloud.orgpolicy.v1.Policy) |
78 | | - }, |
| 36 | +_globals = globals() |
| 37 | +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) |
| 38 | +_builder.BuildTopDescriptorsAndMessages( |
| 39 | + DESCRIPTOR, "google.cloud.orgpolicy.v1.orgpolicy_pb2", _globals |
79 | 40 | ) |
80 | | -_sym_db.RegisterMessage(Policy) |
81 | | -_sym_db.RegisterMessage(Policy.ListPolicy) |
82 | | -_sym_db.RegisterMessage(Policy.BooleanPolicy) |
83 | | -_sym_db.RegisterMessage(Policy.RestoreDefault) |
84 | | - |
85 | 41 | if _descriptor._USE_C_DESCRIPTORS == False: |
86 | | - |
87 | 42 | DESCRIPTOR._options = None |
88 | 43 | DESCRIPTOR._serialized_options = b"\n\035com.google.cloud.orgpolicy.v1B\016OrgPolicyProtoP\001Z;cloud.google.com/go/orgpolicy/apiv1/orgpolicypb;orgpolicypb\252\002\031Google.Cloud.OrgPolicy.V1\312\002\031Google\\Cloud\\OrgPolicy\\V1\352\002\034Google::Cloud::OrgPolicy::V1" |
89 | | - _POLICY._serialized_start = 106 |
90 | | - _POLICY._serialized_end = 757 |
91 | | - _POLICY_LISTPOLICY._serialized_start = 438 |
92 | | - _POLICY_LISTPOLICY._serialized_end = 689 |
93 | | - _POLICY_LISTPOLICY_ALLVALUES._serialized_start = 629 |
94 | | - _POLICY_LISTPOLICY_ALLVALUES._serialized_end = 689 |
95 | | - _POLICY_BOOLEANPOLICY._serialized_start = 691 |
96 | | - _POLICY_BOOLEANPOLICY._serialized_end = 724 |
97 | | - _POLICY_RESTOREDEFAULT._serialized_start = 726 |
98 | | - _POLICY_RESTOREDEFAULT._serialized_end = 742 |
| 44 | + _globals["_POLICY"]._serialized_start = 106 |
| 45 | + _globals["_POLICY"]._serialized_end = 757 |
| 46 | + _globals["_POLICY_LISTPOLICY"]._serialized_start = 438 |
| 47 | + _globals["_POLICY_LISTPOLICY"]._serialized_end = 689 |
| 48 | + _globals["_POLICY_LISTPOLICY_ALLVALUES"]._serialized_start = 629 |
| 49 | + _globals["_POLICY_LISTPOLICY_ALLVALUES"]._serialized_end = 689 |
| 50 | + _globals["_POLICY_BOOLEANPOLICY"]._serialized_start = 691 |
| 51 | + _globals["_POLICY_BOOLEANPOLICY"]._serialized_end = 724 |
| 52 | + _globals["_POLICY_RESTOREDEFAULT"]._serialized_start = 726 |
| 53 | + _globals["_POLICY_RESTOREDEFAULT"]._serialized_end = 742 |
99 | 54 | # @@protoc_insertion_point(module_scope) |
0 commit comments