@classmethod<EOL><INDENT>def init_topology(mcs, classname, class_dict):<DEDENT>
if classname == '<STR_LIT>':<EOL><INDENT>return<EOL><DEDENT>heron_options = TopologyType.get_heron_options_from_env()<EOL>initial_state = heron_options.get("<STR_LIT>", "<STR_LIT>")<EOL>tmp_directory = heron_options.get("<STR_LIT>")<EOL>if tmp_directory is None:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>topology_name = heron_options.get("<STR_LIT>", classname)<EOL>topology_id = topology_name + str(uuid.uuid4())<EOL>topology = topology_pb2.Topology()<EOL>topology.id = topology_id<EOL>topology.name = topology_name<EOL>topology.state = topology_pb2.TopologyState.Value(initial_state)<EOL>topology.topology_config.CopyFrom(TopologyType.get_topology_config_protobuf(class_dict))<EOL>TopologyType.add_bolts_and_spouts(topology, class_dict)<EOL>class_dict['<STR_LIT>'] = topology_name<EOL>class_dict['<STR_LIT>'] = topology_id<EOL>class_dict['<STR_LIT>'] = topology<EOL>class_dict['<STR_LIT>'] = tmp_directory<EOL>class_dict['<STR_LIT>'] = heron_options<EOL>
Initializes a topology protobuf