|
18 | 18 | # -*- coding: utf-8 -*- |
19 | 19 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
20 | 20 | # source: tensorflow_datasets/proto/tf_example.proto |
21 | | - |
| 21 | +"""Generated protocol buffer code.""" |
| 22 | +from google.protobuf.internal import builder as _builder |
22 | 23 | from google.protobuf import descriptor as _descriptor |
23 | | -from google.protobuf import message as _message |
24 | | -from google.protobuf import reflection as _reflection |
| 24 | +from google.protobuf import descriptor_pool as _descriptor_pool |
25 | 25 | from google.protobuf import symbol_database as _symbol_database |
26 | 26 | # @@protoc_insertion_point(imports) |
27 | 27 |
|
|
31 | 31 | from tensorflow_datasets.proto import tf_feature_generated_pb2 as tensorflow__datasets_dot_proto_dot_tf__feature__pb2 |
32 | 32 |
|
33 | 33 |
|
34 | | -DESCRIPTOR = _descriptor.FileDescriptor( |
35 | | - name='tensorflow_datasets/proto/tf_example.proto', |
36 | | - package='tensorflow_copy', |
37 | | - syntax='proto3', |
38 | | - serialized_options=b'\n\026org.tensorflow.exampleB\rExampleProtosP\001ZSgithub.com/tensorflow/tensorflow/tensorflow/go/core/example/example_protos_go_proto\370\001\001', |
39 | | - serialized_pb=( |
40 | | - b'\n*tensorflow_datasets/proto/tf_example.proto\x12\x0ftensorflow_copy\x1a*tensorflow_datasets/proto/tf_feature.proto"6\n\x07\x45xample\x12+\n\x08\x66\x65\x61tures\x18\x01' |
41 | | - b' \x01(\x0b\x32\x19.tensorflow_copy.Features"s\n\x0fSequenceExample\x12*\n\x07\x63ontext\x18\x01' |
42 | | - b' \x01(\x0b\x32\x19.tensorflow_copy.Features\x12\x34\n\rfeature_lists\x18\x02' |
43 | | - b' \x01(\x0b\x32\x1d.tensorflow_copy.FeatureListsB\x81\x01\n\x16org.tensorflow.exampleB\rExampleProtosP\x01ZSgithub.com/tensorflow/tensorflow/tensorflow/go/core/example/example_protos_go_proto\xf8\x01\x01\x62\x06proto3' |
44 | | - ), |
45 | | - dependencies=[ |
46 | | - tensorflow__datasets_dot_proto_dot_tf__feature__pb2.DESCRIPTOR, |
47 | | - ], |
48 | | -) |
49 | | - |
50 | | - |
51 | | -_EXAMPLE = _descriptor.Descriptor( |
52 | | - name='Example', |
53 | | - full_name='tensorflow_copy.Example', |
54 | | - filename=None, |
55 | | - file=DESCRIPTOR, |
56 | | - containing_type=None, |
57 | | - fields=[ |
58 | | - _descriptor.FieldDescriptor( |
59 | | - name='features', |
60 | | - full_name='tensorflow_copy.Example.features', |
61 | | - index=0, |
62 | | - number=1, |
63 | | - type=11, |
64 | | - cpp_type=10, |
65 | | - label=1, |
66 | | - has_default_value=False, |
67 | | - default_value=None, |
68 | | - message_type=None, |
69 | | - enum_type=None, |
70 | | - containing_type=None, |
71 | | - is_extension=False, |
72 | | - extension_scope=None, |
73 | | - serialized_options=None, |
74 | | - file=DESCRIPTOR, |
75 | | - ), |
76 | | - ], |
77 | | - extensions=[], |
78 | | - nested_types=[], |
79 | | - enum_types=[], |
80 | | - serialized_options=None, |
81 | | - is_extendable=False, |
82 | | - syntax='proto3', |
83 | | - extension_ranges=[], |
84 | | - oneofs=[], |
85 | | - serialized_start=107, |
86 | | - serialized_end=161, |
| 34 | +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( |
| 35 | + b'\n*tensorflow_datasets/proto/tf_example.proto\x12\x0ftensorflow_copy\x1a*tensorflow_datasets/proto/tf_feature.proto"6\n\x07\x45xample\x12+\n\x08\x66\x65\x61tures\x18\x01' |
| 36 | + b' \x01(\x0b\x32\x19.tensorflow_copy.Features"s\n\x0fSequenceExample\x12*\n\x07\x63ontext\x18\x01' |
| 37 | + b' \x01(\x0b\x32\x19.tensorflow_copy.Features\x12\x34\n\rfeature_lists\x18\x02' |
| 38 | + b' \x01(\x0b\x32\x1d.tensorflow_copy.FeatureListsB\x81\x01\n\x16org.tensorflow.exampleB\rExampleProtosP\x01ZSgithub.com/tensorflow/tensorflow/tensorflow/go/core/example/example_protos_go_proto\xf8\x01\x01\x62\x06proto3' |
87 | 39 | ) |
88 | 40 |
|
89 | | - |
90 | | -_SEQUENCEEXAMPLE = _descriptor.Descriptor( |
91 | | - name='SequenceExample', |
92 | | - full_name='tensorflow_copy.SequenceExample', |
93 | | - filename=None, |
94 | | - file=DESCRIPTOR, |
95 | | - containing_type=None, |
96 | | - fields=[ |
97 | | - _descriptor.FieldDescriptor( |
98 | | - name='context', |
99 | | - full_name='tensorflow_copy.SequenceExample.context', |
100 | | - index=0, |
101 | | - number=1, |
102 | | - type=11, |
103 | | - cpp_type=10, |
104 | | - label=1, |
105 | | - has_default_value=False, |
106 | | - default_value=None, |
107 | | - message_type=None, |
108 | | - enum_type=None, |
109 | | - containing_type=None, |
110 | | - is_extension=False, |
111 | | - extension_scope=None, |
112 | | - serialized_options=None, |
113 | | - file=DESCRIPTOR, |
114 | | - ), |
115 | | - _descriptor.FieldDescriptor( |
116 | | - name='feature_lists', |
117 | | - full_name='tensorflow_copy.SequenceExample.feature_lists', |
118 | | - index=1, |
119 | | - number=2, |
120 | | - type=11, |
121 | | - cpp_type=10, |
122 | | - label=1, |
123 | | - has_default_value=False, |
124 | | - default_value=None, |
125 | | - message_type=None, |
126 | | - enum_type=None, |
127 | | - containing_type=None, |
128 | | - is_extension=False, |
129 | | - extension_scope=None, |
130 | | - serialized_options=None, |
131 | | - file=DESCRIPTOR, |
132 | | - ), |
133 | | - ], |
134 | | - extensions=[], |
135 | | - nested_types=[], |
136 | | - enum_types=[], |
137 | | - serialized_options=None, |
138 | | - is_extendable=False, |
139 | | - syntax='proto3', |
140 | | - extension_ranges=[], |
141 | | - oneofs=[], |
142 | | - serialized_start=163, |
143 | | - serialized_end=278, |
144 | | -) |
145 | | - |
146 | | -_EXAMPLE.fields_by_name['features'].message_type = ( |
147 | | - tensorflow__datasets_dot_proto_dot_tf__feature__pb2._FEATURES |
148 | | -) |
149 | | -_SEQUENCEEXAMPLE.fields_by_name['context'].message_type = ( |
150 | | - tensorflow__datasets_dot_proto_dot_tf__feature__pb2._FEATURES |
| 41 | +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) |
| 42 | +_builder.BuildTopDescriptorsAndMessages( |
| 43 | + DESCRIPTOR, 'tensorflow_datasets.proto.tf_example_pb2', globals() |
151 | 44 | ) |
152 | | -_SEQUENCEEXAMPLE.fields_by_name['feature_lists'].message_type = ( |
153 | | - tensorflow__datasets_dot_proto_dot_tf__feature__pb2._FEATURELISTS |
154 | | -) |
155 | | -DESCRIPTOR.message_types_by_name['Example'] = _EXAMPLE |
156 | | -DESCRIPTOR.message_types_by_name['SequenceExample'] = _SEQUENCEEXAMPLE |
157 | | -_sym_db.RegisterFileDescriptor(DESCRIPTOR) |
158 | | - |
159 | | -Example = _reflection.GeneratedProtocolMessageType( |
160 | | - 'Example', |
161 | | - (_message.Message,), |
162 | | - { |
163 | | - 'DESCRIPTOR': _EXAMPLE, |
164 | | - '__module__': 'tensorflow_datasets.proto.tf_example_pb2', |
165 | | - # @@protoc_insertion_point(class_scope:tensorflow_copy.Example) |
166 | | - }, |
167 | | -) |
168 | | -_sym_db.RegisterMessage(Example) |
169 | | - |
170 | | -SequenceExample = _reflection.GeneratedProtocolMessageType( |
171 | | - 'SequenceExample', |
172 | | - (_message.Message,), |
173 | | - { |
174 | | - 'DESCRIPTOR': _SEQUENCEEXAMPLE, |
175 | | - '__module__': 'tensorflow_datasets.proto.tf_example_pb2', |
176 | | - # @@protoc_insertion_point(class_scope:tensorflow_copy.SequenceExample) |
177 | | - }, |
178 | | -) |
179 | | -_sym_db.RegisterMessage(SequenceExample) |
180 | | - |
181 | | - |
182 | | -DESCRIPTOR._options = None |
| 45 | +if _descriptor._USE_C_DESCRIPTORS == False: |
| 46 | + DESCRIPTOR._options = None |
| 47 | + DESCRIPTOR._serialized_options = b'\n\026org.tensorflow.exampleB\rExampleProtosP\001ZSgithub.com/tensorflow/tensorflow/tensorflow/go/core/example/example_protos_go_proto\370\001\001' |
| 48 | + _EXAMPLE._serialized_start = 107 |
| 49 | + _EXAMPLE._serialized_end = 161 |
| 50 | + _SEQUENCEEXAMPLE._serialized_start = 163 |
| 51 | + _SEQUENCEEXAMPLE._serialized_end = 278 |
183 | 52 | # @@protoc_insertion_point(module_scope) |
0 commit comments