def to_proto(self): proto = ProtoRunInfo() proto.run_uuid = self.run_uuid proto.run_id = self.run_id proto.experiment_id = self.experiment_id proto.user_id = self.user_id proto.status = RunStatus.from_string(self.status) proto.start_time = self.start_time if self.end_time: proto.end_time = self.end_time if self.artifact_uri: proto.artifact_uri = self.artifact_uri proto.lifecycle_stage = self.lifecycle_stage return proto
def to_proto(self): proto = ProtoRunInfo() proto.run_uuid = self.run_uuid proto.experiment_id = self.experiment_id proto.name = self.name proto.source_type = self.source_type proto.source_name = self.source_name if self.entry_point_name: proto.entry_point_name = self.entry_point_name proto.user_id = self.user_id proto.status = self.status proto.start_time = self.start_time if self.end_time: proto.end_time = self.end_time if self.source_version: proto.source_version = self.source_version if self.artifact_uri: proto.artifact_uri = self.artifact_uri return proto